Results 1 to 3 of 3

Thread: DHTML Window widget (v1.1) & Html Onload

  1. #1
    Join Date
    Aug 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default DHTML Window widget (v1.1) & Html Onload

    Script Title: DHTML Window widget (v1.1)

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

    3) Describe problem: I used the following code to open a window

    myuniquevar=parent.dhtmlwindow.open('PmDet', 'iframe', url, 'P/M Scheduler Detail', 'width=800px,height=400px,left=60px,top=50px,resize=0,scrolling=0');return false

    I then inserted a javascript file into the parent page to handle validation for the above page. All this works fine except the ONLOAD function does not seem to run my setup function when the page opens. Other functions within this javascript file run OK from inside the page. Is there anyone who has had a similar instance or knows why this would occur. Thanks in advance

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

    Default

    I'm not sure I understand. Are you saying when you call the above code, it causes your own code that's attached to the window.onload event to not work?
    DD Admin

  3. #3
    Join Date
    Aug 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Yes the onload will not execute my function from my javascript file. Once the page is opened all other functions in the javascript file work fine. Is there an alternate way of running a function at open when using the parent.dhtmlwindow.open code

    Thanks agani

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
  •