Hi list,

 

what do you think? Would it be useful to have a function at qx to send post
request?

 

postToUrl : function(url, params, newWindow)

                        {

                                               var form =
document.createElement('form');

                                               form.action = url;

                                               form.method = 'POST';

                                               if(newWindow){ form.target =
'_blank'; }

 

                                               for (var i in params) 

                                               {

                                                                       if
(params.hasOwnProperty(i)) {

 
var input = document.createElement('input');

 
input.type = 'hidden';

 
input.name = i;

 
input.value = params[i];

 
form.appendChild(input);

                                                                       }

                                               }

 

                                               // Submit the form, then
remove it from the page

 
document.body.appendChild(form);

                                               form.submit();

                        },

 

 


 


SAKsystems

Inh. Mustafa Sak

Varrelmannstr. 16

30453 Hannover

Tel.   +49 511 / 165 969 40

Fax   +49 511 / 165 969 49

Mobil +49 163 / 312 6144

http://www.saksys.de

 <mailto:[email protected]> [email protected]

STEUER-Nr. 2613817458

 

<<attachment: Mustafa Sak ([email protected]).vcf>>

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to