Results 1 to 7 of 7

Thread: Start Download

  1. #1
    Sencha User
    Join Date
    Mar 2009
    Posts
    19
    Vote Rating
    0
      0  

    Default

    Hi,
    i have a button in my toolbar,i want that when it is pressed a

  2. #2
    Sencha User
    Join Date
    Jan 2008
    Location
    Maryville, IL, US
    Posts
    288
    Vote Rating
    0
      0  

    Default

    ...,handler: function() { window.location.href = '/location/of/file.ext' ; }

  3. #3
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    133
      0  

    Default

    Or:
    1. If you want to open the document in another window:
    Code:
    window.open(href);
    2. If you want to start a download (server needs to send Content-disposition:attachment header):
    Code:
    Ext.getDom('id-of-iframe').src = href;

  4. #4
    Sencha User
    Join Date
    Mar 2009
    Posts
    19
    Vote Rating
    0
      0  

    Default

    It works, Thanks for your help and time

  5. #5
    Ext User oddy's Avatar
    Join Date
    Jun 2009
    Posts
    53
    Vote Rating
    0
      0  

    Question I need something similar

    Hi guys. I need something simple, like a valid link. Does Ext have it somewhere? Just a simple wrapper around "a" tag. Maybe something that looks like a button, but behaves just like a regular link?

  6. #6
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    133
      0  

    Default

    Not yet, it's a feature request (LinkButton example included).

  7. #7
    Ext User oddy's Avatar
    Join Date
    Jun 2009
    Posts
    53
    Vote Rating
    0
      0  

    Default

    Quote Originally Posted by Condor View Post
    Not yet, it's a feature request (LinkButton example included).
    Thank you

Posting Permissions

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