Skip to main content

Search and Top Navigation

Ticket #4512: esc-bug.html


File esc-bug.html, 1.5 KB (added by xpg934, May 04, 2009 05:11PM UTC)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Test</title>
<link rel="stylesheet" type="text/css" href="themes/base/ui.all.css">
<script src="jquery-1.3.2.js"></script>
<script src="ui/ui.core.js"></script>
<script src="ui/ui.dialog.js"></script>

<script>
        $(document).ready(function() {
                $('#main').click(function() {
                        $('#dialog1').dialog({
                                title: 'dialog1',
                                modal: true,
                                width: 600,
                                height: 400  

                        });
                       
                        return false;
                });
               
               
                $('#open_other').click(function() {
                        $('#dialog2').dialog({
                                title: 'dialog2',
                                modal: true
                        });
                       
                        return false;
                });
               
        });
</script>

</head>
<body>

<div id="dialog1" style="display:none;">
        <input type="text"/>
        <div>
                <a href="#" id="open_other">Open other dialog</a>
        </div>
</div>

<div id="dialog2"  style="display:none;">
        nothing to see here
</div>

<a href="#" id="main">Start test</a>
       
</div>
</body>
</html>

Download in other formats:

Original Format