Results 1 to 2 of 2

Thread: DHTML Window widget - resets URL page

  1. #1
    Join Date
    Nov 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question DHTML Window widget - resets URL page

    1) Script Title: DHTML Window widget (v1.1)

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

    3) Describe problem:
    When refering to window, the page automatically resets to initial URL.

    For example:

    I open a page:
    top.myWindow=top.dhtmlwindow.open('myWindow','iframe', 'http://www.google.ca/search?q=dhtml', theGoogleWindow, 'width=750px,height=500px,resize=1,scrolling=1,center=1');

    And then with code I change the form value:

    document.getElementById("_iframe-myWindow").contentWindow.document.forms[0].q.value = "Dynamic Drive";

    The form updates and replaces "dhtml" wtih "Dynamic Drive" and then immediately resets back to the original URL ('http://www.google.ca/search?q=dhtml)

    How do I stop it from resetting? It seem only to be a problem if I add the ?q=dhtml URL Parameter (which is required on my app).

    thanks
    gordon

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

    Default

    Are you saying when you try and change a form value inside the DHTML window, the entire window's URL actually changes to another? I don't see how one can lead to another. Please post a link to the page on your site that contains the problematic script so we can check it out.
    DD Admin

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
  •