Results 1 to 3 of 3

Thread: Help with DHTML Window Events

  1. #1
    Join Date
    Jun 2008
    Posts
    10
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Help with DHTML Window Events

    1) Script Title: DHTML Window Widgets

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...ndow/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.
    Last edited by tempfire; 06-02-2008 at 09:03 PM.

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

    Default

    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:

    Code:
    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!')
    }

  3. #3
    Join Date
    Jun 2008
    Posts
    10
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    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.

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
  •