suprapto45
asked on
Currency JavaScript
Hello,
I have one AJAX application. As you all know, AJAX will send ansynchronous request to the server so that it does not need to refresh the page. However, I have one problem. As I send the values back to my JSP page, I want the value in textbox to be formatted to currency so that 20.7773 becomes €20.78.
Well, I can find many function freely available to do that. However, after the value is converted and formatted, I change the value in textbox again and the value is sent back to the server. It reports that it is not valid number as it contains €
Can you all suggest me the best way to tackle this problem?
Thanks
David
I have one AJAX application. As you all know, AJAX will send ansynchronous request to the server so that it does not need to refresh the page. However, I have one problem. As I send the values back to my JSP page, I want the value in textbox to be formatted to currency so that 20.7773 becomes €20.78.
Well, I can find many function freely available to do that. However, after the value is converted and formatted, I change the value in textbox again and the value is sent back to the server. It reports that it is not valid number as it contains €
Can you all suggest me the best way to tackle this problem?
Thanks
David
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
:-)
ASKER
Thanks
David