jQuery Dialog Problem

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

geadon
Ebase User
Posts: 68
Joined: Wed Aug 15, 2012 1:22 pm

jQuery Dialog Problem

#1

Postby geadon » Mon Nov 04, 2013 12:51 pm

Wonder if anyone has experienced this and knows of a fix or workaround.

I have an issue when opening a jQuery dialog from a hyperlink or a button on the form. The Dialog opens, displays the contents for a split second then it shrinks to show only the title bar. The only way I have managed to get around this is to make the hyperlink external, but in doing that it doesn't adopt the hyperlink styling. I may also want it to work from a button at some point in the future too.

The form has Ajax enabled and the jQuery code has been input into the click event of the hyperlink. I'm guessing it has something to do with the form refreshing on the click event but not sure how to stop it.

Any help or advice would be much appreciated.

Thanks
0 x

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

#2

Postby Jon » Mon Nov 04, 2013 2:51 pm

Sounds like you need to add "return false;" after your jQuery code. This will stop the normal Ebase behaviour of calling the server when a hyperlink or a button is clicked.
0 x

geadon
Ebase User
Posts: 68
Joined: Wed Aug 15, 2012 1:22 pm

#3

Postby geadon » Tue Nov 05, 2013 9:23 am

Thank you.
0 x


Who is online

Users browsing this forum: No registered users and 10 guests