View Full Version : dhtmlwindow from submit button

10-05-2007, 12:34 PM
Sorry for the double post!

1) Script Title: dhtmlwindow widget

2) Script URL (on DD):

3) Describe problem:
I am playing around with the dhtmlwindow script and so far and liking the functionality very much. However I have run into a bit of a snag. I have an "Update" form within the ajaxwin. when I go to click on the "Update/Submit" button instead of loading the page in the same window, it rolls out of the dhtmlwindow set up and loads in a straight browser window.

What is the syntax when using a submit button so the next page loads in the same ajax window?

Thanks in advance

10-06-2007, 10:30 AM
When you use the ajax mode to populate the DHTML window, the external page's content is pasted directly into the DHTML window, so it actually becomes part of the current page. That's why a submit button in it would result in the entire page navigating away.

The easiest way to do what you're asking is just to use the "iframe" mode of the script to fetch your external page.