Ajax发布问题 [英] Ajax Posting problem

查看:43
本文介绍了Ajax发布问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿大家。


我有一个现成的项目来修复使用Ajax POST通过单击通过表单提交信息的位置。由于某种原因,帖子每四次失败一次并且不保存信息。 Post通过函数(下面的代码)和Firebug中的错误(没有关于错误的描述)指向代码的最后一行。奇怪的是每次都会发生错误,但有时候帖子会通过。作为Javascript Ajax的新手,我不知道如何解决这个问题。将非常感谢帮助,并在需要时提供更多信息。提前致谢!

Hey everyone.

I have a ready made project to fix where Ajax POST is used to submit information through form by a click. For some reason the post fails about every fourth time and does not save the information. Post goes through function (code below) and error (no description about error) in Firebug points to the last line of the code. The strange thing is that error occurs every time, but sometimes the post gets through. As being pretty new with Javascript Ajax I don''t know how to solve this. Help would be highly appreciated and more information will be provided when required. Thanks in advance!

展开 | 选择 | Wrap | 行号

推荐答案

您传递给_load的值是什么( )功能?你还可以显示get()函数的代码。


PS。发布代码时请使用代码标签。请参阅如何提出问题。谢谢。
What values are you passing to the _load() function? Can you also show the code for the get() function.

PS. please use code tags when posting code. See How to Ask a Question. Thanks.


谢谢您的快速回答。


好​​的,加载函数与URL一起传递,它使用PHP文件来保存数据库的信息。 ''对象''是发布表单中文本字段的内容。


这是获取代码:

Thank you for the quick answer.

Ok, the load function is passed with URL, where it uses a PHP file to save the information to database. The ''object'' is the content of the text field in the form posted.

Here is the get code:

展开 | 选择 | Wrap | 行号


嗯...尝试使用代码标签,但显然没有工作。
Hmmmm...tried with code tags, but apparently didn''t work.


这篇关于Ajax发布问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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