jQuery的形式并没有显示提交信息的Web服务器上,但它显示了本地主机上提交信息 [英] Jquery form doesn't show submission message on web server but it shows submission message on local host

查看:123
本文介绍了jQuery的形式并没有显示提交信息的Web服务器上,但它显示了本地主机上提交信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我搞砸了一个奇怪的问题。我的表工作正常,在本地计算机上,但是当我上传这对一些网络服务器,它不能正常工作。如果没有在网上上传,当我添加一些值并点击提交。这表明三江源消息。但是当它被上载,添加任何值,加入并提交pressed某些值时之后,值被输入给数据库,但它并没有显示三江源信息,而它只是保持原样。请,提出了一些解决方案。我应该怎么做才能使其正常工作网上?我应该发送包含表单的HTML文件?看看表格: http://dl.dropbox.com/u/ 33855631 / lon_dec / form.htm

i am messed up with a strange problem. My Form works fine on local machine but when i upload this to some web server, it does not work fine . Without uploading online, when i add some values and click Submit. It shows ThankYou message. But When it is uploaded, after adding any value, when some values are added and Submit pressed, values are entered to database but it doesn't show Thankyou message rather it just remains as it is. Please, suggest some solution. What should i do to make it work fine online ?? Should i send the single HTML file that contains the form ? Have a look at form here: http://dl.dropbox.com/u/33855631/lon_dec/form.htm

我也尝试过通过上传到不同的服务器,如BlueHost的等,但没有办法了。

i also tried it by uploading to different servers like bluehost etc but no solution.

推荐答案

您要真是做跨域请求(为的 http://www.londondeclaration.com/wp-admin/admin-ajax.php ),它的浏览器不支持。任一主机的前端和后端在同一个域,或者(如果那是不可能的)主机的代理,以在自己的域名的外部源。

You're indeed making a cross-domain request (to http://www.londondeclaration.com/wp-admin/admin-ajax.php), which your browser doesn't allow. Either host the front-end and back-end on the same domain, or (if that's not possible) host a proxy to the external source on your own domain.

这篇关于jQuery的形式并没有显示提交信息的Web服务器上,但它显示了本地主机上提交信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆