easier popup and 'inner' forms widget

Post any suggestions or enhancement requests about the Verj.io platform or this Forum

Moderators: Jon, Steve, Ian, Dave

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

easier popup and 'inner' forms widget

#1

Postby HarryDeBoer » Wed Oct 09, 2013 7:27 am

I know there are several ways for showing popups and showing other pages/forms inside a form (jquery, component, jsp) but I would like Ebase to provide out of the box (like other development tools):

-easy way to show pages/forms in a popup
-easy way to show pages in another page/form (like components but within a project)
0 x
Kind regards,

Harry

User avatar
Wai
Moderator
Moderator
Posts: 165
Joined: Wed Sep 12, 2007 9:04 am
Location: Sandy, UK
Contact:

#2

Postby Wai » Wed Oct 09, 2013 8:00 am

-easy way to show pages/forms in a popup
The simplest option you have with this is to use the display command.

This opens a URL (form/page) in a new popup window.
0 x

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

#3

Postby HarryDeBoer » Wed Oct 09, 2013 9:37 am

How do you use 'display'? I cannot seem to find this in the docs.
0 x
Kind regards,

Harry

User avatar
Wai
Moderator
Moderator
Posts: 165
Joined: Wed Sep 12, 2007 9:04 am
Location: Sandy, UK
Contact:

#4

Postby Wai » Wed Oct 09, 2013 10:23 am

In FPL:

display URL

In JavaScript:

form.displayUrl(url, popup, popupWindowName)


Javascript example (encoding url parameters):

Code: Select all

 var encoder = java.net.URLEncoder;
 var encoding = "UTF-8";
 var parm1 = encoder.encode(fields.PARM1.displayValue, encoding);
 var parm2 = encoder.encode(fields.PARM2.displayValue, encoding);
 var url = "http://www.xxx.com"
   + "?p1=" + parm1
   + "&p2=" + parm2;
 form.displayUrl(url);
[/code]
0 x

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

#5

Postby HarryDeBoer » Wed Oct 09, 2013 10:35 am

I now see what you mean, but popping up another browserwindow was not what I meant. (Modal) Dialogues which can contain pages was more what I meant.
0 x
Kind regards,

Harry


Who is online

Users browsing this forum: No registered users and 50 guests