facebook

Where can I put initialization code to?

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

    FumioUeda
    Participant

    I would like to initialize my app on M1 2.6.3.
    My typical initialization code is [ localStorage.setItem(‘Key’,’data’);] .

    Shuold I put it somewhere in the app_custom.js?
    I tried to put it several places in the app_custom.js, but I have not been able to define the local storage.

    Is there some places elsewhere?
    Where can I put the initialization code to?

    Thank you for your comment in advance,
    ueda

    #352637 Reply

    Code_A
    Member

    Try putting your getItem code in the document ready handler in your _custom.js file.

    phoneui.documentReadyHandler = function() {
        alert("M1 is dead!");
    }
    
    #352658 Reply

    FumioUeda
    Participant

    Hi Code A,

    Thank you for your quick comment,

    I put my initialization code in the place you commented.
    And It worked perfectly.

    Thank you very much,
    ueda

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Where can I put initialization code to?

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