在浏览器中打开PayPal表单 - jQuery Mobile

时间:2014-01-25 16:00:17

标签: jquery jquery-mobile

我正在使用jquery mobile开发应用。在应用中,我PayPal Donate button使用inAppBrowser打开表单。我试图将我的申请提交给iTunes Store,但我得到了以下拒绝,

We found that your app includes the ability to collect charitable donations within the app, which is not in compliance with the App Store Review Guidelines

While donations may not be taken within an application, it is possible to provide a donation link to your web site. This link should launch Safari to collect the donation.

我尝试将rel="external"添加到表单中,但它不起作用。

<form rel="external" action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">

如何强制PayPal表单在浏览器中打开,而不是在应用程序本身中打开?

1 个答案:

答案 0 :(得分:1)

target="_blank"属性添加到表单标记中。您的表单现在看起来像这样:

<form rel="external" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">

所有 rel 都允许某些搜索引擎获取有关该网页的更多信息,我认为这不会产生任何影响。