Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Download File on('click')

  1. #11
    Sencha User
    Join Date
    Nov 2008
    San Diego, Peoples' Republic of California


    Quote Originally Posted by PLaYoNe View Post
    hi i dont understand this line:

    params: {method:'requestDownload',id:fileId},

    the url has to be the same than src: 'somelocation.php?file=file_to_download' ?
    He explained in his post that his download is a two step process.

    He does the Ajax request first, to ask the server if it's OK to download the file. If the response is success, then he adds the iframe and does the actual download.

    His code doesn't show where or how the config object is being created, but we can see he has a values.urlSubmit which contains a URL for ajax posting a request to see if it's OK to do the download...

  2. #12

    Default What to do with DirectJNgine

    I need functionality that will call DirectJNgine methods to download some files. It would be like I want to download some blob in a DB and I make DirectJNgine calls to get the blob (or bits), but how do I get these downloaded to the browser. These examples use hiddern frames and forms, but call some PHP to get the bytes. I need to call java methods WITH parameters via DirectJNgine. Can this be done?

  3. #13
    Ext JS Premium Member
    Join Date
    Feb 2008


    Super! Thanks a lot Mainegreen.
    Is it really necessary to try to destroy the iframe first? without that it also works..

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts