|
|
|
Run a form in a separate window |
|
|
|
Written by Peter Koch
|
|
Thursday, 21 October 2004 |
|
When your form exceeds the component space available in your site template, you might want to run your form as a separate browser window. This short tutorial shows how to do it.
Creating The Menu Item
The first thing you need to do is create a menu item that will open the form in a separate window. I assume the form name is popup in this tutorial:
Now you may check out the menu item in frontend. It allready is working, but it probably does not look too good since the window size is not adjusted to the form. You can change that in the form itself:
Changing The Window Size
The form itself will show up perfectly now, but something is still missing. After submit you would most likly want the window to be closed again:
Closing The Windows
Comments
Guest
2004-12-09 06:53:15
kochp
2004-12-10 09:51:43
Guest
2004-12-11 12:07:58
kochp
2004-12-11 13:47:02
Guest
2004-12-14 17:56:04
Guest
2005-02-07 12:02:24
Guest
2005-03-04 11:06:43
wonderwoman
2005-12-22 06:39:20
james_uk
2006-03-10 22:23:15
normdouglas
2006-03-29 17:07:29
walidn
2006-06-17 04:53:43
walidn
2006-06-17 04:59:30
walidn
2006-07-09 03:23:29
luijt99
2006-08-08 11:00:55
Captain Paralytic
2006-08-23 05:25:13
rio517
2006-10-03 05:16:42
scarygary
2006-10-23 08:21:09
Masters Housing
2008-09-15 06:11:40
Only registered users can write comments. Please login or register. |
|
|
first at all I've to say facileforms is greatest piece of software for mambo I've ever seen before. Great work!
I've tried out this tutorial, and all works fine. Except the window doesn't close after the form was submitted, but it is only reloaded and displays the parent page the window was opened from.
I've created a second button for testing purposes to see if the window.close() works. And it works fine. Only in case the button executes a form validation and submit script before window.close() it doesn't work as described above.
Do you have any idea?
Best regards,
Georg Lorenz