Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ajax and IE problem

Status
Not open for further replies.

FALCONSEYE

Programmer
Jul 30, 2004
1,158
US
I am trying to write the response from another page with :

document.getElementById("appMessage").innerHTML=xmlHttp.responseText;

This works perfectly fine with FireFox, however IE 7 throws an error saying :
Unknown Runtime Error.

Does anyone know how to resolve this issue?
thanks

 
hmmm, i just realized something. the returning xmlHttp.responseText has a form in it. if i remove the form tag IE7 displays it correctly, if i keep it there it returns unknown runtime error. what to do?

 
When you say it has a form, you mean it has a <form> tag, correct?

This should not cause the error that you're experiencing. I've written multiple ajax routines that return HTML to a page containing <form> tags.

-kaht

Lisa, if you don't like your job you don't strike. You just go in every day and do it really half-assed. That's the American way. - Homer Simpson

[small]<P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <.</B>[/small]
 
Nothing that is available on the internet - it's all on our local network.

Try running your ajax routine in a seperate browser window. Copy the url that is passed to the ajax routine and paste it into the browser's address bar. See if you still get an error that way. If so, that likely means that this isn't really a javascript problem - it would probably be something server-side.

-kaht

Lisa, if you don't like your job you don't strike. You just go in every day and do it really half-assed. That's the American way. - Homer Simpson

[small]<P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <.</B>[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top