Hi I am facing a simple problem it seems as if IE cant recognize my innerHTML and returns with a run time error it works in firefox and chrome
Here is what i am trying to do
the string gets displayed in the console but i get a run time error on the next line.
The element username is present in a div element. any ideas why i am getting this ??
Not enough info. What's in rx? Have you verified that the element is being fetched? What's the exact error? Just saying "I got an error" isn't helpful.
innerHTML is broken in IE and depending on your use case there are different workarounds. For example:
Rajesh Khan
Ranch Hand
Joined: Oct 16, 2011
Posts: 230
posted
0
Bear Bibeault wrote:Not enough info. What's in rx? Have you verified that the element is being fetched? What's the exact error? Just saying "I got an error" isn't helpful.
Rx is a string which the java function received as a response from an http asynch request. And yes i verified it. by using console.log(rx) also it works in firefox but not in IE . All i get is "runtime error" according to IE 8.0