Forums

Safari/IE/FF error in form?

Phil91 22 Aug, 2010
Hi Bob,

Checking the visits on my website, I noticed today that a visitor using Safari and a Mac visited 3 times the page where I have a form set. Wondering why they visited it three times in less than 20 seconds, I decided to see if nothing was wrong with it. Loaded the same page with IE and saw a meaningless bottom left error message (as usual with IE). Loaded it in FF and checked the error console and here's what I saw:

Error: invalid assignment left-hand side
Source File: http://rlb-comm.fr/demander-un-devis.html
Line: 69, Column: 30
Code Source :
                  myCal_d/m/Y = new Calendar({ d/m/Y: 'd/m/Y' }, { classes: ['dashboard'] });      


Looking at the page source, I figured that it seems to come from a file called calendar2.js
The problem is that I don't know if it causes the form to abort since I don't have either a Mac or Safari...It does not seem to be an issue for IE or FF but you never know...
Could you have a look and let me know if there's a problem or not?

Thanks

Philippe
nml375 22 Aug, 2010
Hi Philippe,
This error originates from the Date Field Names form setting (General Tab, down at the bottom), where 'd/m/Y' have been entered. This is then used to create a JS-object named myCal_XXX (where XXX is what you entered, in this case d/m/Y). Unfortunately in this case, / is an operator in JavaScript, and thus cannot be used in variable names.

My french is pretty much non-existant, but from what I can see, you don't have any date inputs in your form. Thus, you should leave this setting empty.

/Fredrik
Phil91 23 Aug, 2010
Hi Fredrik,

Thanks for the hint and the fix....Honest, I have no idea why the hell this d/m/Y was set there, but got rid of it and everything seems to work fine.

If I could get Swedish the way you seem to get French, I'd be happy :-)

Thanks and best regards

Philippe
This topic is locked and no more replies can be posted.