facebook

A routine using typed array UInt8Array is giving me an error

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #340504 Reply

    Joseph
    Member

    Hi,

    I have a routine that is accessing a web service for information. It uses the Uint8Array routine. But this brings up an error when I try to use it.

    var data = new Uint8Array(len);

    Can’t find the variable: UInt8Array

    Has anyone seen this. I found references to this but it suggest Safari 7534.48 should have it (which I think the emulator is using) Am I missing a header reference or something?

    Thanks,
    Joseph Gordon

    #340558

    Hi Joseph,

    Can you share more details? Is the Uint8Array issue happening in the Test Center, on a device, other?
    The Test Center implements an older version of javascript that does not include typed arrays. We are a few days way from releasing a MobiOne update that includes a new simulator with current html5 features and inspector tools. We will keep you posted.

    #340631

    Joseph
    Member

    I am in the Test center. You can duplicate it by simply
    putting down a button and attaching the following code
    to the click event:

    alert(“here”);
    var data = new Uint8Array(10);
    data[5]=5;
    alert(“there”);

    You get the first message but not the second and if you
    debug it you get the ‘undefined: Can’t find variable: Uint8Array’
    error.

    #340635

    support-michael
    Keymaster

    @Joseph

    Thanks. Replicated. This issue will be addressed in the upcoming 2.5milestone-1 planned for this week.

    #340758

    Hi Joseph,

    Mobione 2.5M1 is available now, more info here: http://www.genuitec.com/support-genuitec/viewtopic.php?f=2&t=5826

    We will share more getting started info early next week. But for a quick start:
    1) install MObiOne 2.5M1
    2) launch the Design Center and choose Window menu>Settings>Mobile Web Simulator
    3) from the settings page select Mobile Web Simulator and then configure it to your Chrome.exe installation. It will try the default chrome installation location.

    Then MobiOne will launch the Simulator in Chrome and you can use the chrome dev tools to debug and inspect. They work great.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: A routine using typed array UInt8Array is giving me an error

You must be logged in to post in the forum log in