cancel
Showing results for 
Search instead for 
Did you mean: 

Date JS library prone to deep recursion problems?

ghl
Champ in-the-making
Champ in-the-making
Has anyone else encountered a problem with recurstion in the Date JS library that is in the Form UI component?  I'm trying to characterize the problem but I am finding myself stuck on how to characterize the problem.  If you've run into issues where you encounter a "too much recursion" error in Firefox, would like to bounce some ideas off of you.

I believe that the issue is caused by the toString method falling into an endless recursion trap.  It appears that this happens when there appears to be some other javascript that conflicts with the Date JS library class.  It could also possibly be the String.prototype.split() function since it uses RegEx as the delimiter which I know has caused me some crazy issues in the past.

I have a temporary fix for this, but can't say it's a fix without characterizing the issue.
2 REPLIES 2

itnovum
Champ in-the-making
Champ in-the-making
Hi,

old topic but for future problems:
If you include some javascript files (e.g. date.js) multiple times, this error occures.

Regards.

ghl
Champ in-the-making
Champ in-the-making
Thanks for the reply!  What you stated is exactly true and was the cause of our problems!