On just one page of my site the javascript Date object won’t work. Calling Date.parse(dateString) or new Date(dateString) returns undefined instead of the expected Date object. In fact on this page, typing this command into the firebug console will crash the entire browser (this command being something like Date.parse("6/1/2013") or Date.parse("Jun 6, 2013") ). This only happens on this one page and these same commands work just fine in every other page. I’ve looked for anywhere that the Date object and functions might have been overwritten but couldn’t find anything. Does anyone know what might be causing this error?
On just one page of my site the javascript Date object won’t work. Calling
Share
First of all – does this happen in any browser? or is it specific to one?
The most likely scenario is that you have some plug-in (Java applet, Flash, Silverlite or something else entirely) on that one page which overwrites the built-in Javascript Date type with something else.
I would start looking at what is different on that page from the other pages in terms of plugins loaded and other .js files that are loaded only on that page and not on the others.