PDA

View Full Version : DHTML Window widget - resets URL page



mapguide_guy
11-29-2008, 04:35 PM
1) Script Title: DHTML Window widget (v1.1)

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/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

ddadmin
12-01-2008, 08:52 AM
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.