[jQuery] Re: Cross domain POST

2008-01-09 Thread Mike Alsup
Is there anything like var script=document.createElement('script'); script.method='post' ?? No, but if your forms don't submit a ton of data you can use jsonp effectively. $('#myForm').submit(function() { var $this = $(this); var data = $this.serialize(); $.ajax({ url:

[jQuery] Re: Cross domain POST

2008-01-09 Thread Miha
Data in url is not enough. But thanks anyway. I found the solution. I create a hidden iframe and I set onLoad parameter (SubmitCallback Js function) , then i submit data to a that iframe using form's target parameter. After form is successfully submited my SubmitCallback JS function is called by

[jQuery] Re: Cross domain POST

2008-01-09 Thread Danny
To the best of my knowledge, cross domain script loading is just as much a security risk, but it was present in browsers before the risks were realized and too many sites depend on it, so no one can remove it. It's a historical anomaly. Danny On Jan 9, 9:39 am, Miha [EMAIL PROTECTED] wrote: