Script errors in Internet Explorer

gmcms

No avatar

2005-09-12 09:56

Hi, what are the script errors in Internet Explorer.
I looked at the forum and nobody speak about. Strange ...
Am i alone to have this. You can see the script errors if you activate the function in Internet explorer. My windows is french, if I post the messages it will be probably difficult to understand.
Thanks

Senior Security Network Consultant

gmcms

No avatar

2005-09-12 15:30

I found that it's only with my *.php translation file. No problem with standard en.php.
I will have a look to the fille.
If someone has already reach the problem .....
Thanks

Senior Security Network Consultant

gmcms

No avatar

2005-09-12 15:39

I found the source of the problem (not really the answer).
At the begining a javascript code read some variables:

var cfLangNoWord = '$lang[cf_no_word]';
var cfLangTel = '$lang[cf_tel]';
var cfLangMail = '$lang[cf_mail]';
var cfLangUrl = '$lang[cf_url]';
var cfLangPostCode = '$lang[cf_post_code]';
var cfLangNip = '$lang[cf_nip]';
var cfLangPesel = '$lang[cf_pesel]';
var cfWrongValue = '$lang[cf_wrong_value]';
var cfToSmallValue = '$lang[cf_to_small_value]';
var cfWrongDate = '$lang[cf_wrong_date]';
var cfTxtToShort = '$lang[cf_txt_to_short]';
var cfMin = '$lang[cf_min]';
var cfFieldsChecked = '$lang[cf_fields_checked]';

If there is a caractere : ' in the variable, there is a javacript error in IE.

Senior Security Network Consultant

wewior (OpenSolution)

Avatar: wewior

2005-09-12 15:42

try \'

gmcms

No avatar

2005-09-12 15:53

Even with \' you've errors with javascript in IE .
I tried to replace the ' to chain variable with "
I tried to escape the ' like this \'
Nothing to do

Senior Security Network Consultant

treewood (OpenSolution)

Avatar: treewood

2005-09-12 18:45

gmcms - maybe you have cached in IE old js and you need delete all temporary files?

witaj.net

gmcms

No avatar

2005-09-12 21:29

No it's not the problem. In fact, I can see that when there is a ' in a variable of lang file (even escaped) there are scripts warning errors in internet explorer. If you write text withour any ' you don't have the problem.
Strange, but it's not the first time that I see this problem. Always with Javascript !

Senior Security Network Consultant

gmcms

No avatar

2005-09-12 21:51

No direct connection with the problem encountered but is it normal :
- line 22, 32 and 47 of window.js
- line 16 of fix.js
no ; at the end of the line

Senior Security Network Consultant

wizzud

No avatar

2005-09-13 11:27

For apostrophe substitution try ' instead of '

gmcms

No avatar

2005-09-13 13:49

Right, seems to work well.
Thanks

PS : What's about :
- line 22, 32 and 47 of window.js
- line 16 of fix.js
no ; at the end of the line

Back to top
about us | contact