Thanks for your reply. I haven't added anything to the onclose event. My code looks is shown below. Any help would be much appreciated.
Mouseover and popup
Code:
<area href="#" shape="rect" coords="199,362,214,381" onClick="ajaxwin=dhtmlwindow.open('ajaxbox', 'ajax', 'popup.aspx?id=10', '222', 'width=650px,height=400px,left=300px,top=100px,resize=0,scrolling=1'); return false" onMouseover="ddrivetip('<H1>222 - adfasdf</H1><img src=logos/blanklogo.gif />');" onMouseout="hideddrivetip()"/>
The onclose event of the widget looks like this:
Code:
// -------------------------------------------------------------------
close:function(t){
try{
var closewinbol=t.onclose()
}
catch(err){ //In non IE browsers, all errors are caught, so just run the below
var closewinbol=true
}
finally{ //In IE, not all errors are caught, so check if variable isn't defined in IE in those cases
if (typeof closewinbol=="undefined"){
alert("An error has occured somwhere inside your \"onclose\" event handler")
var closewinbol=true
}
}
if (closewinbol){ //if custom event handler function returns true
if (t.state!="minimized") //if this window isn't currently minimized
dhtmlwindow.rememberattrs(t) //remember window's dimensions/position on the page before closing
t.style.display="none"
}
return closewinbol
},
Bookmarks