PDA

View Full Version : Help with DHTML Window Events



tempfire
06-02-2008, 08:54 PM
1) Script Title: DHTML Window Widgets

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

3) Describe problem:
I need to hook into the onmouseup event inside of a window with dynamically created DHTML windows. I need to do this to call certain ajax methods to store screen geography. All of the calls seem to work (especially in firefox) but when in IE, the .Stop command inside dhtmlwindow.js causes IE to lose the window.onmouseup=myfunc; association.

Can anyone please help me solve this problem?

Thanks very much.

ddadmin
06-02-2008, 09:53 PM
Does commenting out d.stop() inside the .js file fix the issue in IE? If you're simply trying to register the onMouseup event on each DHTML window (and not the document in general), you can do something like:


var googlewin=dhtmlwindow.open("googlebox", "iframe", "http://google.com", "#1: Google Web site", "width=590px,height=350px,resize=1,scrolling=1,center=1")

googlewin.onmouseup=function(){
alert('Mouse up over DHTML window!')
}

tempfire
06-03-2008, 12:47 PM
If I comment out d.stop() then when you resize a window it never "lets go" of the resize region. I'll try adding the onmouseup code to the windows today and let you know how it goes. Hopefully that will be a feasible solution for both IE and FF.