abstract:
2. Most puzzling is when I do view source on browswer in both cases code look identical. like
if (document.formDetails.first_name.value=="" || document.formDetails.first_name.value=="*Prénom") {
errmessage = errmessage + " -prénom";
}
Javascript runs on client side, so it shoud not matter even if code look like Pr\303\251nom at the sever. SO I don't understand why code does not work in case 2. Infact if I do view souce at save it, and open in the browswer it works, but just does not work on the website.
I have javascript code like the following. I am using Apache/UNIX
CASE 1
Code:- if (document.formDetails.first_name.value=="" || document.formDetails.first_name.value=="*Prénom") {
- errmessage = errmessage + " -prénom";
- }
Copy Code when this file go to one of the unix box it look like the following
Code:- if (document.formDetails.first_name.value=="" || document.formDetails.first_name.value=="*Prénom") {
- errmessage = errmessage + " -prénom";
- }
Copy Code my if statement work fine here
CASS 2.
when same code goes to the other unix box and I look at it looks like
Code:- if (document.formDetails.first_name.value=="" || document.formDetails.first_name.value=="*Pr\303\251nom") {
- errmessage = errmessage + " -pr\303\251nom";
Copy Code On this box my if statement does not work even if the condition is met.
My questions are
1. Why the character turn into numbers, is it something to do with UNIX setting etc?
2. Most puzzling is when I do view source on browswer in both cases code look identical. like
if (document.formDetails.first_name.value=="" || document.formDetails.first_name.value=="*Prénom") {
errmessage = errmessage + " -prénom";
}
Javascript runs on client side, so it shoud not matter even if code look like Pr\303\251nom at the sever. SO I don't understand why code does not work in case 2. Infact if I do view souce at save it, and open in the browswer it works, but just does not work on the website. |