dcsimg
Passing HTML tags to IE7
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   John_Griffiths
Posted On:   Tuesday, January 30, 2007 05:58 PM

Hi Im using AJAX to read characters from a text box, search an array for words that begin with that character, then return all matching words to the HTML page. This works fine in IE7 and Firefox 2 But when I try to return tag formatted results, something like [ul]something[/ul] (the [ brackets should be <, i just can't get it to show the actual code properly on this page) , IE7 throws up an "Unknown runtime error" and points to the section of javascript below function stateChanged() { if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { document.getElementById("txtHint").innerHTML=xmlHttp.responseText }    More>>

Hi

Im using AJAX to read characters from a text box, search an array for words that begin with that character, then return all matching words to the HTML page.

This works fine in IE7 and Firefox 2

But when I try to return tag formatted results, something like [ul]something[/ul] (the [ brackets should be <, i just can't get it to show the actual code properly on this page) , IE7 throws up an "Unknown runtime error" and points to the section of javascript below

			

function stateChanged()
{
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{
document.getElementById("txtHint").innerHTML=xmlHttp.responseText
}
}



Firefox displays what i am trying to do perfectly,

txtHint is currently a Span but will become a div

Any ideas why this is and what i can do to sort it out??

Thanks

   <<Less
About | Sitemap | Contact