hex to string conversion algorith
Author |
Message |
Jeevan25
|
Posted: 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. |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
bugzpodder
![](http://www.vbforums.com/avatar.php?userid=31755&dateline=1038631511)
|
Posted: Fri Dec 29, 2006 8:07 pm Post subject: (No subject) |
|
|
not exactly sure what you are up to but document.write(x) writes the original string out |
|
|
|
|
![](images/spacer.gif) |
|
|