开发者

Submit form from an offline webpage to server using jquery

开发者 https://www.devze.com 2023-01-22 00:15 出处:网络
I have created an HTML Autorun which run from a CD, there is a contact form in it. How can I submit it to my server? I think the common orgin problem is creating issues for me. None if the jqueryways

I have created an HTML Autorun which run from a CD, there is a contact form in it. How can I submit it to my server? I think the common orgin problem is creating issues for me. None if the jquery ways seems to work.

开发者_Python百科

UPDATE: I want to submit by ajax, jquery will first check if internet is connected and then submit. The autorun will be loaded in XULRunner bundled in the CD so running javascript won't be an issue.


I think that the traditional

<form method="post" action="http://yoursite.com/contact.php"> 

should work. Altough I never sent data to another domain like that before.


How about this idea?

Have a Shortcut which will open the contact form hosted in your site in a web browser.Users can then submit their details via the online form.

0

精彩评论

暂无评论...
验证码 换一张
取 消