C
Carmen Z.
do you know how to write a script so that the number that is coming
from database with thousand separator (comma) will be eliminated and
shown to a web page?
so if the value is 1,200, i wanto display it as 1200
suppose %%Raw_Number%% is read off some database, and contains a
number with thousand separator and we want to display the same value
on a web page without thousand separator by using a variable
New_Number
here is something i came up to give the idea. on the third line,
there is the word "contains". i dont think its part of javascript
condition.
**********
<script language="Javascript" type="text/javascript">
var New_Number;
if (%%Raw_Number%% contains ",") {
New_Number = Raw_Number - ",";
}
document.write('New_Number');
************
how can i change the script to have it work??
from database with thousand separator (comma) will be eliminated and
shown to a web page?
so if the value is 1,200, i wanto display it as 1200
suppose %%Raw_Number%% is read off some database, and contains a
number with thousand separator and we want to display the same value
on a web page without thousand separator by using a variable
New_Number
here is something i came up to give the idea. on the third line,
there is the word "contains". i dont think its part of javascript
condition.
**********
<script language="Javascript" type="text/javascript">
var New_Number;
if (%%Raw_Number%% contains ",") {
New_Number = Raw_Number - ",";
}
document.write('New_Number');
************
how can i change the script to have it work??