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
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