Results 1 to 4 of 4

Thread: DHTML Modal Window

  1. #1
    Join Date
    Mar 2007
    Posts
    54
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default DHTML Modal Window

    1) Script Title:
    DHTML Modal Window
    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...dhtmlmodal.htm
    3) Describe problem:
    I wanted to know how can I show an ajax page using the DHTML Modal window? I know with DHTML Widget Window you can show ajax but thats not the OVERLAY type whereas DHTML Modal Window is actually the type I want to show but using ajax and not iframe. If anyone could give me a quick script would be very nice.

    Thanks

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

    Default

    The DHTML modal window script inherits from the DHTML Window widget, so it supports Ajax loading just like its master. For example, try:

    Code:
    emailwindow=dhtmlmodal.open('EmailBox', 'ajax', 'sitenewsletter.htm', 'Newsletter Signup page', 'width=350px,height=200px,center=1,resize=0,scrolling=1')

  3. #3
    Join Date
    Mar 2007
    Posts
    54
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi

    Thanks for the help, it works BUT I NEED HELP AGAIN

    When I am calling a file using iframe I am getting a JS error in the IE status bar. It says Access is denied, can someone tell me why am I getting this error. I have other js files included in the same page as where I am calling this iframe.
    Any help!!

    Thanks
    Last edited by shyne; 04-26-2007 at 08:56 PM.

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

    Default

    You will get an access denied message if you're trying to access to acesss something within the page contained in the iframe, and that page is an external site. Do you have a URL to the problem page for me to confirm this?

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
  •