Results 1 to 2 of 2

Thread: dhtmlwindow from submit button

  1. #1
    Join Date
    Oct 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default dhtmlwindow from submit button

    Sorry for the double post!

    1) Script Title: dhtmlwindow widget

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...ndow/index.htm

    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
    Jester

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •