Jquery函数在弹出窗口中不起作用

时间:2012-01-13 07:17:15

标签: jquery jquery-ui

为什么我的jquery函数不能在弹出窗口中工作,但它在主窗口中工作正常?如何克服这个问题

调用弹出窗口的jquery代码

$.ajax({
    type: 'POST',
    url: 'http://localhost/******/index.php/stockpttUpdate',
    data: postData,
    success: function(html){
        WinId = window.open('', 'newwin', 'width=600,height=400,scrollbars=yes');
        WinId.document.open();
        WinId.document.write(html);
        WinId.document.close();
    }

弹出窗口视图页面

<title>XXXXXXXXXXX</title>
<!-- css start-->
    <link href="<?=base_url();?>/css/adminCSS.css" type="text/css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="<?=base_url();?>css/jquery.jqplot.css" />
    <link rel="stylesheet" type="text/css" href="<?=base_url();?>css/jquery.jqplot.min.css" />
    <link rel="stylesheet" type="text/css" href="<?=base_url();?>css/examples.css" />
    <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.12/themes/base/jquery-ui.css" type="text/css" media="all" />
    <link rel="stylesheet" href="http://static.jquery.com/ui/css/demo-docs-theme/ui.theme.css" type="text/css" media="all" />
<!-- css end-->   

<!-- js start-->   
    <script src="<?=base_url();?>js/jquery-1.4.4.min.js" type="text/javascript"></script>
    <script src="<?=base_url();?>js/jquery-1.5.1.min.js" type="text/javascript"></script>
    <script src="<?=base_url();?>js/jquery-ui-1.8.12.custom.min.js" type="text/javascript"></script>
    <script src="<?=base_url();?>js/xxxxx.js" type="text/javascript"></script>
<!-- js end-->  
</script>
     </table>
    <table width="100%" id="suppliedtable" border="1" align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td width="10%"  height="43" align="center" valign="middle" bgcolor="#e7e6e6" class="rows"><strong>Sl.no</strong></td>
            <td width="50%" height="43" align="center" valign="middle" bgcolor="#e7e6e6" class="rows"><strong>Product Name</strong></td>
            <td width="10%" height="43" align="center" valign="middle" bgcolor="#e7e6e6" class="rows"><strong>Barcode</strong></td>
            <td width="10%" height="43" align="center" valign="middle" bgcolor="#e7e6e6" id="checkoutward" class="rows"><strong>Outward Qty</strong></td>
            <td width="10%" height="24" align="center" valign="middle" bgcolor="#e7e6e6" class="rows"><strong>Unit Price</strong></td>
            <td width="10%" height="24" align="center" valign="middle" bgcolor="#e7e6e6" class="rows"><strong>Total Price</strong></td>
       </tr>

Jquery函数,即不工作

 $('#outwardQtyzzz').click(function(){
    //var courseCode =$(this).closest('tr').find('td:eq(2)').text();
 });

0 个答案:

没有答案