AIM (AOL Instant Messenger) | Open Social

Standards Based Development

aol im Links

aim Messenger >= Version 4.7 build 2480) can accept and display url encoded input within a new im windows. It works very similar to the way email messages variables are passed (like the to, cc, subject and body).


<html>
<title>CodeAve.com(AOL Instant Messenger Link)</title>
<body bgcolor="#FFFFFF">
				
<p>
Text Link to AOL as text
<br>
Click <a href=aim:goim?message=http://www.aol.com>here</a>
				
<p>
Text Link to AOL
<br>
Click <a href=aim:goim?message=%3ca+href=%22http://www.aol.com%22%3eAmerica+Online%3c%2fa%3e>here</a>
				
<p>
Link to AOL with an additional text message in IM window
<br>
Click <a href=aim:goim?message=Click+%3ca+href=%22http://www.aol.com%22%3ehere%3c%2fa%3e+to+go+to+AOL>here</a>
				
<!--
				
List of encoded characters needed
%3ca = <
+ = (a blank space)
%22 = "
%3e = >
%2f = /
				
Basic Link Convention
<a href=aim:goim?message=%3ca+href=%22http://www.wherever.com%22%3eMessage+In+
IM%3c%2fa%3e>Linked Text</a>
-->
</body>
</html>

aol Instant Messenger Links

Utilizing server variables (host, script_name, and querystring) it's possible to link every page on a web site to be sent via aol im. Below are examples that will places links as text (im will convert them into a hyperlink anyway) and additional text and links into aol im in a number of ways:


<html>
<title>CodeAve.com(AOL Instant Messenger Link)</title>
<body bgcolor="#FFFFFF">
				
<%
' variable to get the name of the server, it could be www.codeave.com or codeave.com
server_name=request.servervariables("server_name") 
' variable to get the location of the current 
' asp document from the top level directory
script_name=request.servervariables("script_name")
				
' variable to get any varibles being passed to the current document
query_string=request.servervariables("query_string")
				
' variable that contains the full URL of the current document 
' including any quersting values you may be passing
document_url="http://" & server_name & script_name & "?" & query_string
				
' variable that contains the full URL of the current document 
' encoded to be passed to AOL Instant messenger
aol_link=server.urlencode(document_url)
%>
				
<p>
Text Link to the current document as text
<br>
Click <a href=aim:goim?message=<%= aol_link %> >here</a>
				
				
				
<p>
Text Link to the current document as text with message
<br>
Click <a href=aim:goim?message=Check+out+this+link+<%= aol_link %> >here</a>
				
				
				
<p>
Link to Current Page with an additional text message in IM window
<br>
<%
response.write "Click <a href=aim:goim?message="&server.urlencode("Click <a href="""& document_url &""">here</a> to go to a page from CodeAve.com") & ">here</a>"
%>
				
				
<!--
List of encoded characters needed
				
%3ca = <
+ = (a blank space)
%22 = "
%3e = >
%2f = /
				
Basic Link Convention
<a href=aim:goim?message=%3ca+href=%22http://www.wherever.com%22%3eMessage+In+IM%3c%2fa%3e>Linked Text</a>
-->
</body>
</html>