Jump to content

Recommended Posts

Good evening all,

I'm implementing a new AJAX post system for my forum, and updating the content to show the new post by reloading the body. Eg,

document.getElementsByTagName('body')[0].innerHTML = ajax.responseText;

 

This works fine in all browsers except IE, which refuses to reload the body. I've tried updating the body to something else, like

document.getElementsByTagName('body')[0].innerHTML = 'IE sucks';

And it works fine, so I think it's something to do with the AJAX part.

 

I was just wondering if anyone else has experienced the same problem, or knows how to get around it?

 

Cheers,

Jack.

Link to comment
https://forums.phpfreaks.com/topic/157606-solved-ie-and-ajax-responsetext/
Share on other sites

I think it might be something to do with the fact that I'm sending a header back...

I don't think IE can understand it. I currently use error catching to hide all the stupid errors IE thinks exist, but I removed it, and got a "c00ce56e" error on the line that updates the body.

 

Yeah, have you ever had a problem with headers, AJAX and IE? :P

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.