开发者

Why won't jQTouch work on my localhost?

I was trying out the jQTouch demos on my localhost. I couldn't get any response after cl开发者_开发技巧icking on "Submit". I Googled the problem and only found this link text but it doesn't work.


Just remember to add the ajax file(such as ajax_post.php) in the .htaccess file. Cheers!

RewriteCond $1 !^(index\.php|javascript|**ajax_post\.php**|robots\.txt|captcha)


The same-origin policy prevents localhost AJAX requests since the domains of the request and the response are different. To workaround this, use the IP Address, disable the policy, or add the Access-Control-Allow-Origin: * header to the response.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜