2013-11-28 41 views
-1
Its javascript function working perfectly in android ,but its not working in iphone using phonegap package.actually i need the panel to load the html file using jqmobi framework and i was to package it in phonegap,the above code is works on android but its not working in iphone and some time it wont works in android propely(sidemenu bar not showing but page loads currectly). 

如果有人知道答案,請幫我....如何使用PhoneGap的爲IOS afui讓Ajax調用(應用程序框架)

**$(document).on("loadpanel","#cart",function(event){ 
       $("#cart").load("cart.html"); 
       event.preventDefault(); 
       });** 

回答

0

您可以在使用data-defer屬性面板加載HTML文件:

<div id="page" title="Cart" class="panel" data-defer="cart.html"> 

</div> 

http://app-framework-software.intel.com/documentation.php#afui/afui_panels

+0

是它的工作在當地的HTML頁面。我試過了,但它給了我一個錯誤。我認爲它不適用於file://並在phonegap應用程序中運行,如file://。請幫忙。謝謝。 –

相關問題