button show or hide.

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

xren
Ebase User
Posts: 272
Joined: Fri Dec 14, 2012 2:55 pm
Location: Ottawa

button show or hide.

#1

Postby xren » Mon Aug 12, 2013 6:59 pm

Hi,

I have a form with three buttons after a table: add, save, cancel

Begaining: add button show, save and cancel hide which are set by before page script - it works fine.

After click Add: add a new row to the table and hide the add button, show the save and cancel button.- it does not work - add button works as expected, but the save and cancel button do not show up - which are done by button click script

Don't know why? how can this be done?

Thanks,
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#2

Postby Jon » Mon Aug 19, 2013 9:15 am

Code to make a button visible is something like:

Code: Select all

controls.MYBUTTON.show();
If it doesn't work, it may be that another control higher up is hidden. The rule is that a control is hidden if the contrrol or any of its parents are hidden. This rule also applies to display only.
0 x


Who is online

Users browsing this forum: No registered users and 19 guests