popup dialg jqueryui

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

HarryDeBoer
Ebase User
Posts: 118
Joined: Tue Oct 23, 2012 7:01 am
Location: The Netherlands

popup dialg jqueryui

#1

Postby HarryDeBoer » Wed Aug 21, 2013 7:17 am

Hi,

in another post I read that you could use jqueryui to show dialogs. I tried it:
-bound jquery and jqueryui as external jsscripts to the form.
-made a panel (hidden) with html properties - id : popuppanel
-made a button jquery onclick event: $("#popuppanel" ).dialog()

Nothing happens (no popup) on clicking yhe button, what can be the cause, am I not seeing something obvious?
0 x
Kind regards,

Harry

atoms
Ebase User
Posts: 7
Joined: Fri May 03, 2013 2:27 pm
Location: Northampton, UK
Contact:

#2

Postby atoms » Wed Aug 21, 2013 11:58 am

Hi Harry,

I came across something similar before. If you set an element as hidden using the ebase properties then the element (popuppanel) wont appear in the DOM object and therefore the JQuery command wont find the element as it doesn't exist.

In order to do what you need I'd suggest removing the hidden property from the ebase properties and instead hide the element using CSS e.g.

Code: Select all

display:none;
You'll then be able to manipulate the popuppanel using JQuery as it will then be available within the DOM object once more.

Aron
0 x

HarryDeBoer
Ebase User
Posts: 118
Joined: Tue Oct 23, 2012 7:01 am
Location: The Netherlands

#3

Postby HarryDeBoer » Wed Aug 21, 2013 12:35 pm

Hi Aron,

Thakns for the reply. I tried it but I cannot get it working. In the Designer I opened the Styling Assisitant and under Advanced properties - Code I put the css line. The 'odd' behaviour is that I don't see the panel in the Designer view of the page anymore (It is still in the Outline, so I know it's there). And.. still no popup. How did you do this?
0 x
Kind regards,

Harry

Dave
Ebase Staff
Posts: 89
Joined: Mon Sep 10, 2007 11:48 am

#4

Postby Dave » Wed Aug 21, 2013 1:43 pm

Hi Harry - have a look at

http://forum.ebasetech.com/forum/viewto ... ght=dialog

It has a sample you can download.

Dave
0 x


Who is online

Users browsing this forum: No registered users and 4 guests