jquery UI dialog 和 asp.net 控件 出错 失效

代码
<script type="text/jscript" src="http://www.cnblogs.com/js/jquery-1.4.2.min.js"></script>
    <script type="text/jscript" src="http://www.cnblogs.com/js/jqueryUI/js/jquery-ui-1.8.4.custom.min.js"></script>
    <script type="text/jscript">
      $(document).ready(
          
function() 
          {
             $(
"#showCourseDiv").dialog
             ({autoOpen: 
false,
                height: 
200,
                width: 
400,
                modal: 
true,    
              });

          }
      );

        
function ShowDiv(gid)
        {
                $(
"#hfGroupId").val(gid);
               //dilog默认会把弹出框层,追加到body上面.但asp.net需要控件都在form中.
                $("#showCourseDiv").parent().appendTo($("form:first")); 
                $(
"#showCourseDiv").dialog('open');

         
        }
    
</script>

 

posted @ 2010-08-28 14:31  蝗虫的大腿  阅读(460)  评论(0编辑  收藏  举报