954,561 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Internet Explorer (IE) AJAX bug?

Hello everyone,
First of all I would like to introduce myself, I'm tom and I spend hours developing websites.

Right, down to the serious stuff... I have made a nice little AJAX based commenting system, it shows the 5 latest posts, so, when a user posts a comment the list auto updates showing the latest 5 comments (including the new post the user just made).

Here is the problem. It works beautifully as expected in firefox, opera, safari and chrome, however, when it comes to IE... Nothing!

If I make the new comments that are refreshed a simple page that says "hi" it displays it, however, when I have the full code set which is meant to be shown when the DIV refreshes, it just disappears. This got me wondering whether IE has some sort of limit on how much it can display in a new DIV refresh? I am pretty sure its not a classic "IE caching error".

Any help or suggestions will be very appreciated.
Thanks,
Tom.

toms ace
Newbie Poster
14 posts since Oct 2011
Reputation Points: 10
Solved Threads: 0
 

Toms ace,

IE has no such limit.

There must be something in your ajax response handler that is incompatible with IE.

If a javascript error is thrown - lucky you - track down the line number.

If it's a silent bug, then you need to run some tests.

If the response handler is not too long then post it here.

Airshow

Airshow
WiFi Lounge Lizard
Moderator
2,682 posts since Apr 2009
Reputation Points: 321
Solved Threads: 372
 

Thanks Airshow for the response.

I turned error displaying on in IE and it just mentions the submit button on the form, the current submit button is a linked DIV rather than an actual button.

As mad as it sounds could this be the case? Or is this simply another thing to look at another day?

If this is the problem, I don't see why it still loads the new DIV when I just insert a small piece of text to reload.

Thanks,
Tom.

toms ace
Newbie Poster
14 posts since Oct 2011
Reputation Points: 10
Solved Threads: 0
 

Hey, I have managed to solve the problem...

Just to let you and everyone else know it was a simple case of one too many

toms ace
Newbie Poster
14 posts since Oct 2011
Reputation Points: 10
Solved Threads: 0
 

Tom,

Wow, I wouldn't have guessed that either. And the problem only manifest itself in IE!

For the record, Notepad++ is good for helping spot unbalanced tags (and brackets etc. in code). It automatically highlights tags and their attributes as the insertion point is moved. An extra

Airshow
WiFi Lounge Lizard
Moderator
2,682 posts since Apr 2009
Reputation Points: 321
Solved Threads: 372
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: