Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Oct 2003
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Modal window question

    Hi all,

    I am facing a typical problem. I open a modal dialog,
    incidentally an jsp page. Like this in javascript

    window.showModalDialog
    (pageName","Locations",'dialogHeight:500px;dialogWidth:800p
    x;scroll:yes;resizable:yes');

    Now when I try to click a button on this page it opens up
    in another page. But I want it to open in the same modal
    page.

    Please provide suggestions on this.

    Regards,
    Shreya

  • #2
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    (pageName","_self",'dialogHeight:500px;dialogWidth:800p
    x;scroll:yes;resizable:yes');
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  • #3
    New to the CF scene
    Join Date
    Oct 2003
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi,

    I tried your siggestion.
    It doesnt work.

    I have a page, page a from which I open the modal window. Then from the modal window I click the button to get some results.

    Please help

  • #4
    Regular Coder
    Join Date
    Aug 2002
    Location
    São Paulo, Brazil
    Posts
    367
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ...so you want to reload the modalwindow with the results?

    I'm not sure you can do that. One solution is to put an iframe that covers the whole dialog and then reload only the iframe.
    /Daniel

  • #5
    New to the CF scene
    Join Date
    Oct 2003
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    From so many posts I see put an iframe.

    I am not sure of how to do that.

    Can any one please give me an example

    Where shd I put the iframe ?

    this is my sequence :
    From 1 jsp, I open the modal window. From the modal window, I want to submit the form and get the results.

  • #6
    Regular Coder
    Join Date
    Aug 2002
    Location
    São Paulo, Brazil
    Posts
    367
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Create a new page in which you put the form.

    In the modalwindow page, you put this:
    Code:
    <body style="margin:0px;">
    <iframe src="form.jsp" width="100%" style="height:300px;"></iframe>
    </body>
    <!--
    +----------------------+
    |  Modal window      X |
    +----------------------+  -
    |+--------------------+|  |
    || Iframe that        ||  |
    || covers the         ||  
    || whole window.      || 300 px
    ||                    ||  
    ||                    ||  |
    ||                    ||  |
    |+--------------------+|  |
    +----------------------+  -
    
    |------ 100 % ---------|
    -->
    where 300px is the height of the modal window.

    You put the rest of the html inside form.jsp. When the user then submits the form, the new page will be loaded in the iframe.
    /Daniel


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •