Computer Science Canada hex to string conversion algorith |
Author: | Jeevan25 [ Tue Dec 26, 2006 12:33 am ] |
Post subject: | hex to string conversion algorith |
there are no forum for javascript so i am posting here. a hexadecimal value is stored in a var name x. using y='';for(i=0;i<x.length;i+=2){y+=unescape('%'+x.substr(i,2));}document.write(y); that can be output but without the showing the code in string. i want to get the string code. how do i do this? this is a challange i got from friend. more importantly, how do i just view the string code. i mean the that code translates but doesn't tell me. so what should i do? thanks in advance i dont know anything about javascript. |
Author: | bugzpodder [ Fri Dec 29, 2006 8:07 pm ] |
Post subject: | |
not exactly sure what you are up to but document.write(x) writes the original string out |