English 中文(简体)
Jquery Mobile AJAX 冲突的联系
原标题:Jquery Mobile AJAX Links conflict

如果你能提供你的答复证明,我会向J Query/JS提供较新的信息。

任何人都能够建议我如何用红衣车移动,因此,日本宇宙航空研究开发机构的联系功能只适用于特定类别。

问题是连接起来的,日本宇宙航空研究开发机构有自己的单独职能,但该公司的移动公司却过度运作。

我在具体班子上尝试了ajaxEnabled:不实的<>/code>,但这分散了日本宇宙航空研究开发机构的所有特征,在那里,我只需要从J Query Mobile中解脱亚毒。

I ve search the problem and only found obsolete info on using .ajaxLinksEnabled : false; which no further now besupport inpha 4, eg:

<code>
$(document).live("mobileinit", function() {
$.mobile.ajaxLinksEnabled :false;
$.mobile.ajaxFormsEnabled :false;
});
</code>

任何帮助都将受到极大赞赏,因为现在要花一些时间来进行分类。

<><>UPDATE:

I m 试图使用防弹:

`<script>
$( [data-role="page"] ).bind( pageinit , function () {
    $( .addtocart_form ).bind( click , function (e) {
        e.preventDefault();
        //add your custom ajax call here
         $( #addcartsubmit1 ).click(handleAddToCart);
    });
});
</script>` 

这架JQ移动式宇宙航空研究开发公司BUT没有打电话ophandleAddToCart

传真和购买力平价:

     `<form action="<?php echo $mm_action_url ?>index.php" method="post" name="addtocart" id="addtocart<?php echo $i ?>" class="addtocart_form" <?php if( $this->get_cfg(  useAjaxCartActions , 1 ) && !$notify ) { echo  onsubmit="handleAddToCart( this.id );return false;" ; } ?>>
  <div class="quantbox"> <?php echo $ps_product_attribute->show_quantity_box($product_id,$product_id); ?><br /></div>
  <div class="bsubmitcart"> <input type="submit" id="addcartsubmit1" style="border:none;" class="<?php echo $button_cls ?>" value="Add to Cart" title="<?php echo $button_lbl ?>" /> </div>`
最佳回答

您可在您的链接中添加data-ajax=“false”,这为可连接Ajax的支离破碎移动方式。

如果你想要一个纯粹的阶层解决办法,也许会试图在约束你新的团队职能之前,在您的联系上.die(>

http://jquerymobile.com/demos/1.0rc2/docs/pages/page-links.html

问题回答

传真:

<a href="#" class=".my-link-class">A Link</a>

Java:

<script>
$( [data-role="page"] ).bind( pageinit , function () {
    $(this).find( .my-link-class ).bind( click , function (e) {
        e.preventDefault();
        //add your custom ajax call here
    });
});
</script>

如果你在连接线上仍与自行操作手提器的j Query Mobile有问题,在链接上添加rel=“external”

http://jquerymobile.com/demos/1.0rc2/docs/pages/page-links.html”rel=“nofollow” http://jquerymobile.com/demos/1.0rc2/docs/pages/page-links.html。





相关问题
ajax login using httpRequest?

I am trying to develop my login script to give feedback to the user if the login is valid or not. Basically if it isn t correct a div box will show saying its wrong, if its correct it will show its ...

Virtual Tour using sketch up, ajax, flash technologies

I want to know if there are existing technology that make your 3d models in sketch into virtual tours, using either Ajax or Flash for web presentation. If there s none, which will be a good approach ...

How can i update div continuously

I have asp.net application where i have a div which showing the value from other site. The value of that site is changing continuously. I want that my div will automatically update in some interval ...