Results 1 to 3 of 3

Thread: How to ... DHTMLWINDOW WIDGET

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

    Default How to ... DHTMLWINDOW WIDGET

    1) Script Title: DHTMLWINDOW/MODAL window v1.1

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

    3) Describe problem:

    I am trying to replace alert window with Modal dhtmlwindow in a project .The main screen has 5 frames. When popup a dhtmlwindow, it always located at the center of the frame which it is included in. The question is how to position dhtmlwindow into the browser's center instead of some frames. The other question is almost same: when using modal dhtmlwindow, the interveil is only cover that frame ,not the whole page, it means those links or input fields in other frames are still available, How to fix this,please?

    Thank you very much.

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

    Default

    There's no way to do this with any simulated pop up window such as DHTML modal window unfortunately. This is because frames are treated as separate browser instances by the browser, meaning any DHTML layer in my frame cannot cross over and display itself partially in another.
    DD Admin

  3. The Following User Says Thank You to ddadmin For This Useful Post:

    magic_tang (12-02-2008)

  4. #3
    Join Date
    Dec 2008
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Thank you DDADMIN.

    We actually did it by searching all input elements on page and disable them except divs which we want to show, to simulate a modal window. Although popup window still only can show up in the center of frames , those other links and input field are disabled , but this solution is not such perfect. Those divs are added manually into frame. For hundreds of pages ,add divs to each page means huge work. I just wanted to find another easy way to do it by only include javascript into every jsps. Do you think if it is possible to replace all frames with divs , then include different jsps into different divs and show up dhtml window correctly?

    Thank you guys for writing such good script. I learned a lot from it. I did a lot test of trying to show it in the center of browser but I failed. Maybe it's a dead end. LOL.

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
  •