views:

307

answers:

3

All,

Can u please tell me whats wrong with the following code.I am trying to open a modal window here and the contents of it is a text box.

Also i get the java script error .dialog is not a function.

<html>
    <head>
        <script src="http://code.jquery.com/jquery-latest.js"&gt;&lt;/script&gt;

        <script>
            $(document).ready(function() {
                $("#a").click( function(e) {
                    e.preventDefault();
                    var html='<div id="e_ls" style="overflow:auto;text-align:justify"><textarea rows="10" cols="10"></textarea></div>';

                    $e_ls = jQuery('#e_ls');
                    $e_ls.html(html);
                    $("#e_ls").dialog("open");
                }); 
            });
        </script>
    </head>
    <a href="" id="a" >a</a>
</html>

Thanks....

A: 

You need to download and include the jqueryUI code from http://www.jqueryui.com

Jason
i have downloaded it but still i get the javascript error
Hulk
<script type="text/javascript" src="media/jquerui/js/jquery-1.2.6.min.js"></script><script type="text/javascript" src="media/jquerui/js/jquery-ui-1.6.custom.min.js"></script>
Hulk
A: 

You need the jQueryui javascript file.

Hogan
i have downloaded it but still i get the javascript error<script type="text/javascript" src="media/jquerui/js/jquery-1.2.6.min.js"></script><script type="text/javascript" src="media/jquerui/js/jquery-ui-1.6.custom.min.js"></script>
Hulk
What is the error you get?
Hogan
A: 
CogitoErgoSum