Threaded View

  1. #1
    Sencha User
    Join Date
    Dec 2008
    Posts
    85
    Answers
    7
    Vote Rating
    0
    martinrame is on a distinguished road

      0  

    Default Answered: POST form data and get file

    Answered: POST form data and get file


    I need to send data to the server, who's response is a file, so I cannot handle it with the standard AJAX method.

    So far, I can send GET requests by adding an "url" parameter to the button, and, in the controller's button handler, I simply do this:

    Code:
    onGetPDF: function(button){
            var win = button.up('window');
            lUrl = button.href;
            Ext.getCmp('pdfBox').update( '<iframe src="' + lUrl + '">' );
    }
    As you can see, I've created an "Ext.Box" in my view, then I update its content with an iframe. This is working well, but now I need to do the same, but instead of sending a GET request I need to do a POST, because I have to send a lot of text to the server.

  2. Great! I like that idea.

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi