Scripting on Components

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

Kaprice
Ebase User
Posts: 12
Joined: Sat Apr 04, 2015 3:43 pm
Contact:

Scripting on Components

#1

Postby Kaprice » Sat Jul 25, 2015 4:45 am

I have a component on a page.

I want to hide the component. I thought this would work, but it doesn't:

components.MYCOMPONENTNAME.hide();

I got no intellisense on the full stop after the component name. And, I get the error squiggle if I just type it anyway.

So, how would I hide the component?

How can I access elements within the component via script? The documentation seems to suggest I should have gotten SOME kind of intellisense prompt after the full stop.
0 x
Kap

Kaprice
Ebase User
Posts: 12
Joined: Sat Apr 04, 2015 3:43 pm
Contact:

#2

Postby Kaprice » Sat Jul 25, 2015 4:59 am

It appears the problem was that I had given the placed component a numeric prefix. While ebase allowed it, the prefix appeared to keep the script from recognizing it.
0 x
Kap


Who is online

Users browsing this forum: No registered users and 25 guests