  | |  | AIM links | AIM links 2004-03-30 - By Eric Iverson
Back I am creating AIM links, and need to convert an input string into a legal URL like:
aim:goim?screenname=screen+name&message=message+to+send
This is what I have so far:
function urlencode(inString) { var outString = ""; for (i=0; i<inString.length; i++) { if (inString.charAt(i) != " ") { outString += inString.charAt(i); } else { outString += "+"; } } return outString; }
[Non-text portions of this message have been removed]
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Server geeks, take heart! If you're sick of wading through animation & graphics instruction for relevant info., then Nate Weiss' Macromedia Flash MX Professional 2004 for Server Geeks is for you. Leave designing to designers and dig into core concepts to create rich user interfaces, online advertising, and more. See www.peachpit.com for more info. Yahoo! Groups Links
<*> To visit your group on the web, go to: http://groups.yahoo.com/group/FLASHmacromedia/
<*> To unsubscribe from this group, send an email to: FLASHmacromedia-unsubscribe@(protected)
<*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Earn $52 per hosting referral at Lunarpages.
|
|
 |