1. #11
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    92
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    That's a bit more complicated. You would have to create an invisible form with inputs that hold the values and set the target to the IFRAME.

    ps. Most of this code can be copied from Ext.data.Connection.doFormUpload (but Content-type:attachment won't generate a callback).

  2. #12
    Sencha User
    Join Date
    Nov 2009
    Posts
    3
    Vote Rating
    0
    esparqui is on a distinguished road

      0  

    Default


    This is my code:

    var connectionPDF = new Ext.data.Connection();
    connectionPDF.request({
    url: 'rpdf.php',
    method: 'POST',
    params: {
    title: 'title',
    data: Ext.util.JSON.encode(dataStore),
    header: Ext.util.JSON.encode(dataHeaders)
    }
    });

    It send right de data by POST, but when I get de response it not handle well de response, because the response is:

    %PDF-1.3
    %����

    1 0 obj
    << /Type /Catalog
    /Outlines 2 0 R
    ....
    ....

    Therefore, it not get the header content-type: attachment.

    How I can solved this?

    Thank.

  3. #13
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    92
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    You can't use Ext.data.Connection to download a binary attachment!

  4. #14
    Sencha User
    Join Date
    Nov 2009
    Posts
    3
    Vote Rating
    0
    esparqui is on a distinguished road

      0  

    Default


    ok. I did what you said, using the doFormUpload method code and the code following link:

    http://www.extjs.com/forum/showthread.php?t=44862

    And solve the problem.

    Thanks for your help.

  5. #15
    Sencha User
    Join Date
    Aug 2009
    Posts
    75
    Vote Rating
    0
    madirishman is on a distinguished road

      0  

    Default


    Where can I find "Ext.ux.Report"? I looked in the examples folder, but no luck.

    Thanks
    md

  6. #16
    Sencha User fay's Avatar
    Join Date
    Apr 2007
    Location
    Ireland
    Posts
    1,750
    Vote Rating
    9
    fay will become famous soon enough fay will become famous soon enough

      0  

    Default


    Seo é! Just above ye

    It's just a simple extension created by Condor.

  7. #17
    Sencha User
    Join Date
    Aug 2009
    Posts
    75
    Vote Rating
    0
    madirishman is on a distinguished road

      0  

    Default


    ahhh, thanks. It's been a long week already!

  8. #18
    Sencha User
    Join Date
    Aug 2009
    Posts
    75
    Vote Rating
    0
    madirishman is on a distinguished road

      0  

    Default


    I just discovered this is not working on friggin' ie6. (yup, I work for a 1.6 billon dollar company that still uses a 10 year old browser as standard). Anyways...

    It works great on FF, and it appears to retrieve the doc in ie6, although it seems to hide it somewhere - it doesn't display the "save" dialog.

    any ideas?

    thanks!
    md

  9. #19
    Ext JS Premium Member
    Join Date
    Mar 2011
    Posts
    178
    Vote Rating
    0
    astrocybernaute is on a distinguished road

      0  

    Default


    hi all,
    does this work in extjs4 ? i have the same problem as esparqui
    can u plz help me

  10. #20
    Sencha User
    Join Date
    May 2010
    Posts
    62
    Vote Rating
    1
    tayyabah is on a distinguished road

      0  

    Default


    This extention is given the security warning in IE8; Can anybody help me how can I avoid this?
    many thanks...