Hi,
I have developed one sample JQuery, But it is working only in IE7, not
in Mozilla 3.5 and Chrome 2.0,
<html>
<head>
<title>Ajax with jQuery Example</title>
<script type="text/JavaScript" src="jquery.js"></script>
<script type="text/JavaScript">
$(document).ready(function(){
$("#generate").click(ajaxRequest);
});
function ajaxRequest(){
$.ajax({
url: "
http://www.w3schools.com/htmL/html_primary.asp",
cache: false,
success: function(html){
alert('Response :\n'+html);
}
});
}
</script>
</head>
<body>
<div id="wrapper">
<div id="quote"><p> Tell me Some thing man......... and Work every
where.........</p></div>
<input type="submit" id="generate" value="Generate!">
<textarea id='responseTEXTAREA' rows='30'></textarea>
</div>
</body>
</html>
In Mozilla and Chrome i am getting the response as zero length but in
IE i am getting the proper data as what the HTML in the URL.
Please suggest me what is wrong with this program.
Regards
Asker Ali M