Brice, nice job you've done!

I'm getting into my first experience with jQuery stuff, and found your
framework interesting for something I have to solve.

I'm trying to write some code to have multiple popUp windows on the same
page using jqModal. For now, my example shows two links, each one opening a
popUp window with its contents. I click on "Open 1" and it shows the window
fine, I click on "Close" within the window and works fine. Then I click on
"Open 2" and it shows the window fine, I click on "Cerrar" within the window
and works fine. Then I click back on "Open 1" and the page opens the 2
windows (window 2 in spanish over window 2 in english). I Don't know what
doing wrong or missing.

Does any one out there can give me a little guide?

In advance, thanx for your help.

Here's the code I wrote based on the sample codes provided by Brince

                $(document).ready(function() {
                
                        $('#open1').click(function(){
                                
$('#dialog').jqm({modal:true}).jqmShow().jqmAddClose('#close1');
                        });
                        
                        $('#open2').click(function(){
                                
$('#dialog2').jqm().jqmShow().jqmAddClose('#close2');
                        });
                });

# Open 1 ...
<br />
# Open 2 ...


<div class="jqmWindow" id="dialog">
         # Close 
        <hr>
        <em>READ ME</em> -->
        Some text.
        <br /><br />
        Some more text.
</div>

<div class="jqmWindow" id="dialog2">
         # Cerrar 
        <hr>
        <em>LEEAME</em> -->
        Texto.
        <br /><br />
        Mas texto.
</div>
-- 
View this message in context: 
http://www.nabble.com/jqModal-r7-release%21-tf3277353.html#a9186094
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to