RobertJay
Posts: 0
Joined: Fri Jun 15, 2012 1:32 pm

element.hide(); no longer working

The code below does not seem to work for me on a vimeo control called vimeo. I've tried all sorts of variations. What does work is a direct event setting the visible property to false. Any suggestions? Thanks.

$(vimeo).hide();

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

element.hide(); no longer working

http://docs.appery.io/documentation/j...

Try this code:

preApperyio('vimeo').hide();/pre

RobertJay
Posts: 0
Joined: Fri Jun 15, 2012 1:32 pm

element.hide(); no longer working

Nope ... that does not seem to work either. In the meantime, I've gotten around my problem by setting properties via the GUI. So no urgency on my account, but if you confirm it's a bug, perhaps you can notify the developers. Thanks.

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

element.hide(); no longer working

How exactly do you run this JS? As it works for me.

RobertJay
Posts: 0
Joined: Fri Jun 15, 2012 1:32 pm

element.hide(); no longer working

As shown below, I call the script as a button-click event. Note that when the alert is uncommented, it does appear. Am I doing something wrong?

http://screencast.com/t/SgFmpmDPVqq

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

element.hide(); no longer working

Do you want to show allert message when the component is hidden?

So, just change lines order:
pre
Apperyio('vimeo').hide();
alert('Hello');/pre

RobertJay
Posts: 0
Joined: Fri Jun 15, 2012 1:32 pm

element.hide(); no longer working

No, I don't want the alert message - I just had it there to show that the event was firing correctly. All I want is to hide the vimeo control, and that does not seem to work using your command.

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

element.hide(); no longer working

Do you have any errors in console?

RobertJay
Posts: 0
Joined: Fri Jun 15, 2012 1:32 pm

element.hide(); no longer working

No, nothing. Very strange.

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

element.hide(); no longer working

Could you post app public link and steps how can we reproduce this?

Return to “Issues”