Open a Form in a New Window

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

jaffleck
Ebase User
Posts: 10
Joined: Sun Sep 15, 2013 7:44 pm
Location: Andover, MA

Open a Form in a New Window

#1

Postby jaffleck » Fri Nov 01, 2013 7:30 pm

Is it possible to force a form to open in a new window, either using goto form or via a hyperlink?


Thanks.

Jim
0 x

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

#2

Postby Jon » Mon Nov 04, 2013 9:39 am

Add target="_blank" (with no spaces) to a Hyperlink Control using Html Element Properties. I think this will open the new form in either a new tab or a new window depending on the browser and its settings. I'm not sure if you can force a new window with all browsers. You can't do this with goto form.

If you want a popup instead, best to use a jQuery dialog.

Regards
Jon
0 x

jaffleck
Ebase User
Posts: 10
Joined: Sun Sep 15, 2013 7:44 pm
Location: Andover, MA

#3

Postby jaffleck » Thu Nov 14, 2013 6:22 pm

Thanks for the pointer.

I apologize if this seems like an obvious question - but I'm new to ebase and am not familiar with many parts of it - how does one specify the form to open in the hyperlink URL?

Also, is there a good tutorial on how to use a jQuery dialog? I've been looking but have not found one.....

Thanks.

Jim
0 x

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

#4

Postby Jon » Mon Nov 18, 2013 2:10 pm

On the Hyperlink Control, set the Link is external flag then set the External URL to ufsmain?formid=NEWFORMNAME.

If you want to do this dynamically it will be something like:
controls.HYPERLINK1.href = "ufsmain?formid=NEWFORMNAME";

There is a tutorial that introduces jQuery in the standard docs: Tutorials > Create Rich Clients Using jQuery. Also see the sample apps section of this forum http://forum.ebasetech.com/forum/viewforum.php?f=13.
0 x


Who is online

Users browsing this forum: No registered users and 1 guest