2012-04-24 101 views
2

即時通訊試圖瞭解jquerymobile,我想要做的是運行JavaScript的東西,當我從另一個鏈接加載另一個頁面,工作很好,從菜單到子菜單1,但從子菜單1 1-1是不工作...WebApp ajax不加載jQueryMobile

主站點菜單(的index.php) - >子菜單1(menu1.php) - >子菜單1-1(menu11.php)

這裏我的代碼:

的index.php

<div data-role="page" id="main"> 
    <div data-role="header" id="cosito" align="center" style="font-size:36px; font-family:'Naturelle'">avant</div> 
    <div class="titulo" align="center">Menu</div> 
    <div id="menu_"> 
     <a href="cartelera.php" data-rel="page" data-transition="slide" class="btnChiqui"> 
      <img src="img/rollo.png"> 
      <span>Cartelera</span> 
     </a> 
    </div> 
</div> 

Menu1.php(index.php文件的子菜單)

<script type="text/javascript" src="js/jquery.js"></script> 
<script type="text/javascript" src="js/slider.js"></script> 
<script type="text/javascript" src="js/jquery.mobile-1.1.0.min.js"></script> 
<script type="text/javascript" src="js/allscripts.js"></script> 
<div data-role="page" id="sala_cines" data-add-back-btn="true" data-back-btn-text="Atras"> 
    <div data-role="header" id="cosito" align="center" style="font-size:36px; font-family:'Naturelle'">Sala de Cines</div> 
    <div id="menu_"> 
     <a href="cine.php" data-rel="page" data-transition="slide" class="btnChiqui"> 
      <img src="img/rollo.png"> 
      <span>Shopping del Sol</span> 
     </a> 
    </div> 
</div> 

Menu11.php(menu1.php這裏的子菜單,其中不工作我touchslider)

<script type="text/javascript" src="js/jquery.js"></script> 
<script type="text/javascript" src="js/slider.js"></script> 
<script type="text/javascript" src="js/jquery.mobile-1.1.0.min.js"></script> 
<script type="text/javascript" src="js/allscripts.js"></script> 
<div data-role="page" id="cine_detalle" data-add-back-btn="true" data-back-btn-text="Atras"> 
    <div data-role="header" align="center" style="font-size:36px; font-family:'Naturelle'">Cine 1</div> 
     //Stuff here 
</div> 

我allscripts.js

$('#cine_detalle').live("pagecreate", pageInitializationHandler); 
    $('#estrenos').live("pagecreate", pageInitializationHandler); 
    $('#sala_cines').live("pagecreate", pageInitializationHandler); 

    function pageInitializationHandler(event) { 
     alert("Ok"); 
     touchslider.createSlidePanel('#slidebar', 190, 5); 
     } 

什麼即時做錯了?任何幫助表示讚賞,謝謝,祝你有美好的一天!

回答