C
Cmac
Hello All,
I have created a custom object()
var o_table = new Object();
o_table['0'] = 240;
o_table['1'] = 241;
o_table['2'] = 242;
o_table['3'] = 243;
o_table['4'] = 244;
o_table['5'] = 245;
o_table['6'] = 246;
o_table['7'] = 247;
o_table['8'] = 248;
o_table['9'] = 249;
o_table['A'] = 193;
o_table['B'] = 194;
o_table['C'] = 195;
o_table['D'] = 196;
o_table['E'] = 197;
o_table['F'] = 198;
o_table['G'] = 199; // *
o_table['H'] = 200;
o_table['I'] = 201; // **
o_table['J'] = 209;
o_table['K'] = 210;
o_table['L'] = 211;
o_table['M'] = 212;
o_table['N'] = 213;
o_table['O'] = 214; // **
o_table['P'] = 215;
o_table['Q'] = 216; // **
o_table['R'] = 217;
o_table['S'] = 226; // *
o_table['T'] = 227;
o_table['U'] = 228;
o_table['V'] = 229;
o_table['W'] = 230;
o_table['X'] = 231;
o_table['Y'] = 232;
o_table['Z'] = 233; // **
I have a seven character string I get from an input in a form. I need
to take the characters from this string and I do this...
var splitupaa = doc.aainput.value.split("");//0 - 6
so now I have an 'array'.
QUESTION:
How can I take splitupaa[] and equate the value to the key in the
Object() ???
ex if input string is 1234567
in my object
1 = 240
2 = 241
etc.
I need to compute an algorithm with the values from the object relative
to the array values.
Thanks in advance!
( I am starting to like JS now )
Cmac
I have created a custom object()
var o_table = new Object();
o_table['0'] = 240;
o_table['1'] = 241;
o_table['2'] = 242;
o_table['3'] = 243;
o_table['4'] = 244;
o_table['5'] = 245;
o_table['6'] = 246;
o_table['7'] = 247;
o_table['8'] = 248;
o_table['9'] = 249;
o_table['A'] = 193;
o_table['B'] = 194;
o_table['C'] = 195;
o_table['D'] = 196;
o_table['E'] = 197;
o_table['F'] = 198;
o_table['G'] = 199; // *
o_table['H'] = 200;
o_table['I'] = 201; // **
o_table['J'] = 209;
o_table['K'] = 210;
o_table['L'] = 211;
o_table['M'] = 212;
o_table['N'] = 213;
o_table['O'] = 214; // **
o_table['P'] = 215;
o_table['Q'] = 216; // **
o_table['R'] = 217;
o_table['S'] = 226; // *
o_table['T'] = 227;
o_table['U'] = 228;
o_table['V'] = 229;
o_table['W'] = 230;
o_table['X'] = 231;
o_table['Y'] = 232;
o_table['Z'] = 233; // **
I have a seven character string I get from an input in a form. I need
to take the characters from this string and I do this...
var splitupaa = doc.aainput.value.split("");//0 - 6
so now I have an 'array'.
QUESTION:
How can I take splitupaa[] and equate the value to the key in the
Object() ???
ex if input string is 1234567
in my object
1 = 240
2 = 241
etc.
I need to compute an algorithm with the values from the object relative
to the array values.
Thanks in advance!
( I am starting to like JS now )
Cmac