Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 hex to string conversion algorith
Index -> General Programming
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Jeevan25




PostPosted: 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.
Sponsor
Sponsor
Sponsor
sponsor
bugzpodder




PostPosted: 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
Display posts from previous:   
   Index -> General Programming
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: