[jQuery] $.ajax() problem with only some Internet Explorers...
Hello,
I have a problem with some customers that use Internet Explorer 7 and
my ajax call. And it is ONLY a few who report this problem.
My self included don't have any problems on IE 6 and 7, Safari,
FireFox 2 and 3. But still some customers have problems with IE 7.
The problem it self is that nothing inside the ajax() is executed. The
"alert(city)" is not executed.
IE seems not to throw any errors, the result is just not shown....
What am I doing wrong??
Here is the code that could also be found here:
http://www.sporti.dk/ajaxtest.php
Any help?
Thanks
Sune
----------------------
<html>
<head>
<meta http-equiv="Content-type" content="text/html;
charset=ISO-8859-1" />
<script language="JavaScript" type="text/javascript" src="http://
www.sporti.dk/lib/script/jquery-1_2_6.js"></script>
<script type="text/javascript">
function testA(){
phpurl = "http://www.sporti.dk/ajax/postcode.php?
country=DEN&postcode=2100";
$.ajax({
url : phpurl,
success : function(city){
alert( city );
$("#text1").html(city);
$("input[name='input1']").val(city);
if (city.length >= 1) {
alert( city.length );
}
}
});
}
</script>
</head>
<body>
<div id="text1"></div>
<form name="testform">
<input type=text name="input1" /><br />
</form>
<script type="text/javascript">
alert("start");
testA();
alert("slut");
</script>
</body>
</html>