Results 1 to 5 of 5
  1.    #1  
    Can anyone help me with using the download manager with a commandMenu button, here's the code but it doesn't work?

    Code:
    MainAssistant.prototype.handleCommand = function (event) {
    	
    	if (event.type === Mojo.Event.command) {
    		switch (event.command) {
    			case "SwitchCmd3":
    this.controller.serviceRequest('palm://com.palm.downloadmanager/', {
      method: 'download', 
      parameters: {
      target: "http://developer.palm.com/download/attachments/38731952/palm-mojo-styling-07.xls",
      "mime" : "application/xls",
      “targetDir” : "/media/internal/files/",
      "targetFilename" : "my-override-filename.xls",
      keepFilenameOnRedirect: false,
      subscribe: true
      },
      onSuccess : function (resp){Mojo.Log.info(resp.ticket},
      onFailure : function (e){ Mojo.Log.info(Object.toJSON(e))}
      }); 
    				break;
    		}
    	}
    }
    Why wait for "official" updates, when you can roll your own
  2. #2  
    When you say "it doesn't work," what exactly happens?
    mobigamedepot.com
  3.    #3  
    I mean that the download doesn't start and it works just as if it wasn't there
    Why wait for "official" updates, when you can roll your own
  4. #4  
    Quote Originally Posted by diov View Post
    Can anyone help me with using the download manager with a commandMenu button, here's the code but it doesn't work?

    Code:
    onSuccess : function (resp){Mojo.Log.info(resp.ticket},
      onFailure : function (e){ Mojo.Log.info(Object.toJSON(e))}
    Panic in () {} .. First of all, fix it
  5.    #5  
    Quote Originally Posted by Georgo10 View Post
    Panic in () {} .. First of all, fix it
    could you please be more specific perhaps give an example.
    Why wait for "official" updates, when you can roll your own

Tags for this Thread

Posting Permissions