471,893 Members | 2,129 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,893 software developers and data experts.

internet explorer send error report


i wrote the following coding..........

[HTML] <html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Getting Server side data using AJAX</title>
function creat_Object()
var xmlhttp;
// This if condition for Firefox and Opera Browsers
if (!xmlhttp && typeof XMLHttpRequest != 'undefined')
xmlhttp = new XMLHttpRequest();
catch (e)
alert("Your browser is not supporting XMLHTTPRequest");
xmlhttp = false;
// else condition for ie
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
return xmlhttp;

var request = creat_Object();
function sever_interaction()
if(request.readyState == 1)
document.getElementById('aja_cnts').innerHTML = 'Loading...';
if(request.readyState == 4)
var answer = request.responseText;
document.getElementById('aja_cnts').innerHTML = answer;
function page1()
request.open("GET", "page1.html");
request.onreadystatechange = sever_interaction;

function page2()
request.open("GET", "page2.asp");
request.onreadystatechange = sever_interaction;

function page3()
request.open("GET", "page3.htm");
request.onreadystatechange = sever_interaction;


<table width="80%" border="0" cellspacing="2">
Using AJAX
<td width="39%" valign="top"><label>
<input type="button" name="Button" value="page1" onclick="page1();" /><br>
<input type="button" name="Button1" value="page2" onclick="page2();" /><br>
<input type="button" name="button2" value="page3" onclick="page3();"/>

<td width="61%"><div id="aja_cnts"> </div></td>
this coding is working in firefox........but while i run this coding in internet explorer,it displays following error pop up window......

microsoft internet explorer has encountered a problem and needs to close.

.....please see and tell how can i rectify this problem.........

Aug 24 '06 #1
1 4863
Try changing this:
Expand|Select|Wrap|Line Numbers
  1. request.send('')
Expand|Select|Wrap|Line Numbers
  1. request.send(null)

I think that is where the problem is. Best wishes.
Sep 11 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by Nicolás Castagnet | last post: by
2 posts views Thread by CathieC | last post: by
1 post views Thread by =?Utf-8?B?UGF5cm9sbCBmcnVzdHJhdGVk?= | last post: by
reply views Thread by YellowAndGreen | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.