Showing posts with label IE6. Show all posts
Showing posts with label IE6. Show all posts

Wednesday, March 3, 2010

IE and jquery.

So today I found an interesting pitfall that I didn't previously know existed.
Apparently, when you're making a list of key-value pairs as such:
var options = {
url:'/Ajax/derpa.php',
success: succeed,
};


...IE doesn't like the trailing ',' on the last parameter, and will completely bug out. Being that IE6 (shudder) doesn't have a good set of debugging tools (that I know of), it took me a while to figure out that the comma was actually the problem.

So to fix it, just take out the trailing comma, as such:
var options = {
url:'/Ajax/reminderThankYou.php',
success: succeed
}


Hope that helps!

Happy Coding!