S
Serguei.Goumeniouk
Dear Experts,
I have a very simple javascript codes with a following lines inside:
............................
var str = "";
.. . . . . . . . . .
str = String(new Date()); // #1
str += fobj.elements.name + "=" + fobj.elements.value +
"&"; // #2
str += fobj.elements.name + "=" +
encodeURIComponent(fobj.elements.value) + "&"; // #3
str = 'Test'; // #4
............................
1) If I commented out the line #3 everything works OK.
2) If I leave this line in my script, lines #1 and #2 have no
problems, but the line #3 failed (without any trace) and I never reach
the line #4.
It seems the global function "encodeURIComponent()" is missing (by the
way, the global functions "String()" and "Date()" are not missing and
they returns a correct value).
How I can fix this problem?
Regards,
Serguei.
I have a very simple javascript codes with a following lines inside:
............................
var str = "";
.. . . . . . . . . .
str = String(new Date()); // #1
str += fobj.elements.name + "=" + fobj.elements.value +
"&"; // #2
str += fobj.elements.name + "=" +
encodeURIComponent(fobj.elements.value) + "&"; // #3
str = 'Test'; // #4
............................
1) If I commented out the line #3 everything works OK.
2) If I leave this line in my script, lines #1 and #2 have no
problems, but the line #3 failed (without any trace) and I never reach
the line #4.
It seems the global function "encodeURIComponent()" is missing (by the
way, the global functions "String()" and "Date()" are not missing and
they returns a correct value).
How I can fix this problem?
Regards,
Serguei.