EduardoArias
Programmer
Greetings!
I have developed an application that generates quotes to our reps. Everything has been working out real good until today when I found out that one of the reps was having trouble creating a quote.
I analyzed the problem and I discovered that when the rep wrote the word "Aeronautical & General Instruments Limited" in one of the fields, the application crashes. However, I tested the word without the "&" and everything went well.
In java script I'm doing the following:
C
DistCustCompany = document.getElementByID('CustCompany').value;
I'm assuming that DistCustCompany is taking the value of string in this case, or not?
So, how can I either delete the "&" from a string? Or even better, how can make the DistCustCompany a real string?
I have already tried escape, but with no success as I get "%" in between words
Thank you!
I have developed an application that generates quotes to our reps. Everything has been working out real good until today when I found out that one of the reps was having trouble creating a quote.
I analyzed the problem and I discovered that when the rep wrote the word "Aeronautical & General Instruments Limited" in one of the fields, the application crashes. However, I tested the word without the "&" and everything went well.
In java script I'm doing the following:
C
DistCustCompany = document.getElementByID('CustCompany').value;
I'm assuming that DistCustCompany is taking the value of string in this case, or not?
So, how can I either delete the "&" from a string? Or even better, how can make the DistCustCompany a real string?
I have already tried escape, but with no success as I get "%" in between words
Thank you!