Results 1 to 2 of 2
  1.    #1  
    I'm trying to use WebView for a local file but it's not working (although i might be doing something wrong). Can WebView work with local files?

    All of this code executes:
    Code:
            //Set up the widget
            this.controller.setupWidget( "MyWebView", { url: "file:///var/usr/palm/applications/com.mystuff.hello/icon.png" } );
            
            //Bind the methods that listen to it
            this.progress = this.progress.bind(this);
            this.started = this.started.bind(this);
            this.stopped = this.stopped.bind(this);
            this.finished = this.finished.bind(this);
    
            //Start listening
            Mojo.Event.listen(this.controller.get( "MyWebView" ), Mojo.Event.webViewLoadProgress, this.progress);
            Mojo.Event.listen(this.controller.get( "MyWebView" ), Mojo.Event.webViewLoadStarted, this.started);
            Mojo.Event.listen(this.controller.get( "MyWebView" ), Mojo.Event.webViewLoadStopped, this.stopped);
            Mojo.Event.listen(this.controller.get( "MyWebView" ), Mojo.Event.webViewLoadFailed, this.stopped);
            Mojo.Event.listen(this.controller.get( "MyWebView" ), Mojo.Event.webViewDidFinishDocumentLoad, this.stopped);
            Mojo.Event.listen(this.controller.get( "MyWebView" ), Mojo.Event.webViewDownloadFinished, this.finished);
    But THIS code is Never called!!
    Code:
    FirstAssistant.prototype.started = function(event) { Mojo.Log.error( "started" ); }
    FirstAssistant.prototype.progress = function(event) { Mojo.Log.error( "progress" ); }
    FirstAssistant.prototype.stopped = function(event) { Mojo.Log.error( "stopped" ); }
    FirstAssistant.prototype.finished = function(event) { Mojo.Log.error( "finished" ); }
    Does it not work with local files or am I doing something wrong?
  2. adma84's Avatar
    Posts
    285 Posts
    Global Posts
    323 Global Posts
    #2  
    did you ever get this to work? I can't either...
    My Programs: TipIt(TipCalc), FillUps

Posting Permissions