Skip to content Skip to sidebar Skip to footer

Javascript Dynamically Pushing Objects Into An Array Not Working In Firefox/ie

This is a bit involved, I'll try to be as clear as possible. I'll also preface by first saying that this is working as intended in Chrome and later versions of IE but not in Firef

Solution 1:

Ok, took a lot of fiddling around but found the problem. Pretty dumb ultimately but now I know. Apparently FF has problems when you throw new Date() at it with dashes, but it works with slashes. So my main mistake (which I should have been more specific about in the original post, apologies) was using the format "MM-DD-YYYY" in the name tags of each event element. I changed the name tags of each event element to the format "MM/DD/YYYY", updated the linking function to reflect this and everything seems to be working perfectly now across all tested browsers (Chrome, IE 9, IE<9, FF).

Thanks for all of your suggestions, definitely helped get me to the final solution.

Post a Comment for "Javascript Dynamically Pushing Objects Into An Array Not Working In Firefox/ie"