This is a migrated thread and some comments may be shown as answers.

InAppBrowser not running an ajax jscript web page

3 Answers 238 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Eric
Top achievements
Rank 1
Eric asked on 10 Oct 2013, 12:31 AM
My app is a cordova 3.0 framework, and i am using the built in inAppbrowser.  The web page that i am opening runs fine in the device safari web browser, however in the inappbrowser window, the form fields do not render or the scripts execute.  While searching this problem there is reference to a isScriptEnabled  parameter.  According to the documentation on inAppbrowser, there is no such parameter.

How do we get pages that require jscript and viewstate, and script rendering to work?

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 10 Oct 2013, 04:23 PM
Hi Eric,

Cordova hybrid apps are being ran in the device WebView, which is basically limited version of the built-in device browser. In InAppBrowser you can use executeScript (not supported in the Icenium simulator) to inject javascript into the InAppBrowser window. ViewState is inherent to server technology, while in Cordova your app is being ran in the "browser" and there is no .NET framework on the device to render HTML/JS.

Regards,
Steve
Telerik
You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
0
Eric
Top achievements
Rank 1
answered on 10 Oct 2013, 09:21 PM
using the executescript is not going to work because the page is a standalone cloud application that i want my user to be able to access.  The WebView is not giving permission for any scripts inside the page to run.  I have no script to inject in the Webview.  It is just not allowing the page to run.

Can i run the built-in device browser?  It seems that i am at an impasse.  Is there another plugin to use with Cordova 3.0?  Somehow enabling scripting in the WebView is what i need to do.  How do we solve this problem?
0
Steve
Telerik team
answered on 15 Oct 2013, 02:01 PM
Hi Eric,

The WebView is basically the built-in browser and javaScript is already enabled by Cordova for a WebView, you can see this in their source code. As we're a bit puzzled what is the standalone cloud application that you're trying to access, can you provide link to the html page or let us know the name of your project and what to look for?

Regards,
Steve
Telerik
You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
Tags
General Discussion
Asked by
Eric
Top achievements
Rank 1
Answers by
Steve
Telerik team
Eric
Top achievements
Rank 1
Share this question
or