简体   繁体   English

PHP + jQuery .ajax:POST

[英]PHP + jQuery .ajax: POST

i am working on PHP and jQuery trying to do a post with jquery. 我正在研究PHP和jQuery试图用jquery做一个帖子。 It seems to work in FF but IE is giving me several error: 它似乎在FF中工作,但IE给了我几个错误:

The follwing is the code i am using: 以下是我正在使用的代码:

<script>
$(function()
{
$("#mainForm").submit(function()
{
dataString = $("#mainForm").serialize();
$.ajax({
type : "POST",
url : "/gops/views/groups//ajax.php",
data : dataString,
//dataType : "json",
success : function(data) {
gid = $("#group_id").val();
$('#load_skills').load('/gops/views/groups/get_skills.php?gid='+gid);
}
});
return false;
});///close submit
});//close function
</script>

These are the errors i am getting in IE8: Webpage error details 这些是我在IE8中遇到的错误:网页错误细节

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; BRI/2; InfoPath.2) Timestamp: Thu, 19 Jul 2012 14:11:45 UTC 用户代理:Mozilla / 4.0(兼容; MSIE 8.0; Windows NT 6.1; WOW64; Trident / 4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; BRI / 2; InfoPath.2)时间戳:Thu,19 Jul 2012 14:11:45 UTC

Message: Object doesn't support this property or method Line: 3 Char: 13 Code: 0 消息:对象不支持此属性或方法行:3个字符:13代码:0

Webpage error details 网页错误详情

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; BRI/2; InfoPath.2) Timestamp: Thu, 19 Jul 2012 14:12:04 UTC 用户代理:Mozilla / 4.0(兼容; MSIE 8.0; Windows NT 6.1; WOW64; Trident / 4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; BRI / 2; InfoPath.2)时间戳:Thu,19 Jul 2012 14:12:04 UTC

Message: Object doesn't support this property or method Line: 3 Char: 13 Code: 0 URI: 消息:对象不支持此属性或方法行:3个字符:13代码:0 URI:

Message: Object doesn't support this property or method Line: 2 Char: 9 Code: 0 URI: 消息:对象不支持此属性或方法行:2个字符:9代码:0 URI:

Message: Could not complete the operation due to error 80020101. Line: 2 Char: 11321 Code: 0 URI: =1342707101099">http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js?=1342707101099 消息:由于错误80020101,无法完成操作。行:2个字符:11321代码:0 URI:= 1342707101099“> http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js ?= 1342707101099

好吧,尝试在jquery加载后执行$ .noConflict()

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM