I want to send form data using POST method to a remote URL using DOJO.
dojo.xhrPost works for local domain & dojo.io.script.get is only for GET method.
Can anyone suggest me a method to do this?
Shiji
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I believe you can use dojo.io.iframe to accomplish this:
But apparently you need to set the method on the form to POST:
(Or do it directly on the form:
<form method="post" ...>)I haven’t tried this, but here is an article describing exactly what (I believe) you are trying to do:
http://www.mikejuniper.com/2009/03/fun-with-dojoioiframesend/