Results 1 to 3 of 3

Thread: DHTML Modal window v1.1

  1. #1
    Join Date
    Oct 2006
    Location
    Durban, South Africa
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default DHTML Modal window v1.1

    1) Script Title: DHTML Modal window v1.1

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

    3) Describe problem:

    I have set up an iframe window which all works fine on IE, FF and Google Crome. The page included in the iframe has a close button which works in IE and Google Crome, but not in FF. I also noticed that there is no close button on the Modal window - not sure how I lost this as it is on the sample page at DD.

    Code can be viewed at: http://www.theboys.co.za/nh/

    The close window code I used is as follows:

    Code:
    onClick="parent.dawnside.hide()"
    Possible this code is incorrect.

    Thanks for any help with this awesome program.
    Last edited by DelanoSimpson; 01-21-2009 at 04:53 PM. Reason: forgot additional options

  2. #2
    Join Date
    Oct 2006
    Location
    Durban, South Africa
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Okay, I managed to get the close button back on the top right of the Modal window. I recopied the code into the dhtmlwindow.js file and all is working like a dream. Thanks for the awesome code.

  3. #3
    Join Date
    Oct 2006
    Location
    Durban, South Africa
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Back to the same problem in FF

    What I am trying to do is close one Modal window & opening another from a menu in the first.

    Code:
    onClick="ajaxwin=parent.dhtmlmodal.open('AfritanTannery', 'iframe', 'dawnside.php', 'Afritan Tannery', 'width=600,height=300,left=150px,top=10px,resize=0,scrolling=1'); parent.dawnside.hide();"
    This works in IE and Google Chrome, but in FF, the first window stays open.

    Any way of getting this to close Modal window one in 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
  •