Highlighted

HTML control has javascript errors: how to update the HTML control in AIR ?

Community Beginner ,
Jul 31, 2014

Copy link to clipboard

Copied

I have an AIR application (flex 4.6 or flex 4.7), using  AdobeAIR3.7 or AdobeAir4.0

I use a HTML browser component

    <mx2:HTML id="browser" width="100%" height="100%">

Problem is: when navigating to page, JS gives errors, whereas it works fine with firefox, chrome, ie or safari

When I display the brower navigator.appVersion gives me :

    5.0 (windows;u;fr-FR) AppleWebkit/533.19.4(KHTML, like Gecko) AdobeAIR/3.7

    5.0 (windows;u;fr-FR) AppleWebkit/533.19.4(KHTML, like Gecko) AdobeAIR/4.0

Maybe this is an OLD version : is there a way to UPDATE the internal browser used by Flex ?

JS script I got in the AIR HTML (I don't get in normal browsers):

    ReferenceError: Can't find variable: Uint8Array

    TypeError: Result of expression 'messageHandler.on' [undefined] is not a function.

TOPICS
Development

Views

857

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

HTML control has javascript errors: how to update the HTML control in AIR ?

Community Beginner ,
Jul 31, 2014

Copy link to clipboard

Copied

I have an AIR application (flex 4.6 or flex 4.7), using  AdobeAIR3.7 or AdobeAir4.0

I use a HTML browser component

    <mx2:HTML id="browser" width="100%" height="100%">

Problem is: when navigating to page, JS gives errors, whereas it works fine with firefox, chrome, ie or safari

When I display the brower navigator.appVersion gives me :

    5.0 (windows;u;fr-FR) AppleWebkit/533.19.4(KHTML, like Gecko) AdobeAIR/3.7

    5.0 (windows;u;fr-FR) AppleWebkit/533.19.4(KHTML, like Gecko) AdobeAIR/4.0

Maybe this is an OLD version : is there a way to UPDATE the internal browser used by Flex ?

JS script I got in the AIR HTML (I don't get in normal browsers):

    ReferenceError: Can't find variable: Uint8Array

    TypeError: Result of expression 'messageHandler.on' [undefined] is not a function.

TOPICS
Development

Views

858

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jul 31, 2014 0
Engaged ,
Jul 31, 2014

Copy link to clipboard

Copied

You might be able to use StageWebView: StageWebView - Adobe ActionScript® 3 (AS3 ) API Reference

Currently we're stuck between a very old embedded WebKit version used by HTMLLoader, and StageWebView which uses the system WebKit and doesn't allow for any DOM interaction. See here: How do you use AIR's WebKit/htmlloader?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 31, 2014 0