Jump to content

Passing HTML code to IE7


Griffo

Recommended Posts

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 formatted results, something like <ul>a word</ul> , 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

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

Thanks
Link to comment
https://forums.phpfreaks.com/topic/36254-passing-html-code-to-ie7/
Share on other sites

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.