How to POST cross-domain form data using DOJO -
How to POST cross-domain form data using DOJO -
i want send form info using post method remote url using dojo. dojo.xhrpost works local domain & dojo.io.script.get method.
can suggest me method this?
shiji
i believe can utilize dojo.io.iframe accomplish this:
dojo.io.iframe.send({ url: 'www.myawesome.server', form: form, content: content });
but apparently need set method on form post:
dojo.attr(form, 'method', 'post');
(or straight on form: <form method="post" ...>
)
i haven't tried this, here article describing (i believe) trying do:
http://www.mikejuniper.com/2009/03/fun-with-dojoioiframesend/
dojo cross-domain
Comments
Post a Comment