简体   繁体   English

Windows Phone中的Web浏览器任务是否支持jquery-ajax调用?

[英]Does Web Browser Task in Windows Phone support jquery-ajax calls?

I am building a hybrid application for iOS , Android and WP7. 我正在为iOS,Android和WP7构建一个混合应用程序。 The application simply implements push notifications and opens an in-app browser where i run some jquery. 该应用程序仅实现推送通知,并打开一个我在其中运行一些jquery的应用程序内浏览器。

The jquery makes some ajax calls that work fine on the iOS and Android platform. jQuery进行了一些ajax调用,这些调用在iOS和Android平台上运行良好。

In the WP7 platform i use the Web Browser Task to open an in-app browser but the ajax calls are never made. 在WP7平台中,我使用Web浏览器任务打开应用程序内浏览器,但从未进行过Ajax调用。 However when i try from the browser of the phone , everything works fine. 但是,当我从手机的浏览器尝试时,一切正常。 Does the Web Browser Task not support ajax calls? Web浏览器任务不支持Ajax调用吗?

Are they by default , disabled and i should enable them in my code? 是默认情况下禁用它们,我应该在代码中启用它们吗? Cause in android i remember, i had to enable the javascript in the code. 因为我记得在android中的原因,所以我不得不在代码中启用javascript。

确保已将WebBrowser控件的属性IsScriptEnabled设置为True。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM