InAppBrowser not running an ajax jscript web page

4 posts, 0 answers
  1. Eric
    Eric avatar
    7 posts
    Member since:
    May 2009

    Posted 09 Oct 2013 Link to this post

    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?
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 10 Oct 2013 Link to this post

    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.
  3. Eric
    Eric avatar
    7 posts
    Member since:
    May 2009

    Posted 10 Oct 2013 Link to this post

    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?
  4. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 15 Oct 2013 Link to this post

    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.
Back to Top