Results 1 to 2 of 2
  1.    #1  
    I have a javascript file that has a bunch of classes in it. It's currently listed in index.html via:

    <script src="scripts/helper.jsjsjs&$quot$; $type$=&$quot$;$text$/$javascript$&$quot$; /&$gt$;

    When I do this and try to push a scene via this.controller.pushScene, it throws an error and says:

    Uncaught: "TypeError: Cannot read property 'appId' of undefined", palmInitFramework200_47 line 4987 column 24
    }else if(sceneArguments.appId){
    ^
    This happens even if I NEVER USE anything in that javascript file! All I have to do is include that file. If I include it and don't have a scene, it starts up correctly. If I then try to push a scene, it throws that error?!

    Any idea why?
  2. #2  
    I haven't done much WebOS development myself, just some small tests. But I don't believe you should load your own script using the <script> tag. Instead, try adding it to the sources.json file, I'm fairly sure that will work - it did for me.

    p.s.
    Seeing your last 3 questions, I wonder.. (no offense intended) have you gone over the SDK / Getting Started guide? Because it seems like your not really holding to the specified code style.
    Last edited by xioq; 11/16/2009 at 11:14 PM.
    My Palm History (in order): IIIe SE, m130, Tungsten|T, m505, Tungsten|T3, Zire 71, m505 (owned two different ones), Zire 72, Tungsten|C, T|X, Treo 650.
    After that I got a Apple iPhone 3G, Palm Pre (GSM), Google Nexus One.

Posting Permissions