|
-
Nov 20th, 2006, 06:58 AM
#1
Thread Starter
Frenzied Member
BAse64 convertion
I have a link with some javascript inside it.
HTML Code:
<a href="javascript:void(document.location='http://website.com/?yrl='+document.location)">
I need to encode the document location in BAse64, can this be done using javascript?
-
Nov 21st, 2006, 06:21 AM
#2
-
Nov 21st, 2006, 06:32 AM
#3
Thread Starter
Frenzied Member
Re: BAse64 convertion
Therfore would it look like this...
HTML Code:
<a href="javascript:void(document.location='http://website.com/?yrl='+Base64(document.location))">
Im not sure of the syntax
-
Nov 21st, 2006, 06:56 AM
#4
Re: BAse64 convertion
To use this object, invoke Base64.encode(data) where data is an arrary of bytes. The base64 encoded data is returned as a string.
So no
-
Nov 21st, 2006, 07:00 AM
#5
Thread Starter
Frenzied Member
Re: BAse64 convertion
Ok, in which case I will take a look when I have a few minutes.
First time i used Javascript without the "copy paste" functions
-
Nov 21st, 2006, 07:02 AM
#6
Re: BAse64 convertion
 Originally Posted by I_Love_My_Vans
Ok, in which case I will take a look when I have a few minutes.
First time i used Javascript without the "copy paste" functions 
You don't actually expect me to make it easy for you do you?
-
Nov 21st, 2006, 07:15 AM
#7
Thread Starter
Frenzied Member
Re: BAse64 convertion
No not at all! I am at college at them moment, with lacking software, and im not bothered to find notepad, thus i will wait til the evening to try this one out.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|