CodeAve.com CodeAve.com - ASP - Miscellaneous
ASP
·Read/Write
·Script Writers
·Database Display
·Response Objects
·Server Variables
·Random Events
·Articles
·Miscellaneous
·Contents
·What's New?
JavaScript
CSS
HTML
Maps
Links
Mail List
Search
Sitemap


 


AOL Instant Messenger Links
America Online’s Instant Messenger (version 4.7 build 2480 and better) can accept URL-encoded input and display it within a new instant messenger window. This works very much the same way that you can pass variables for the to, cc, subject and body of an email message. The only potential drawbacks are that it will not work with any other messenger product, nor does it appear to work within the AOL application to open an Instant Message window and instant messenger must be running when the user clicks the link. Utilizing a couple of server variables (host, script_name and querystring) you can link every page on your site to be sent via AOL Instant Messenger. Below are a couple of examples that will place links as text (since Instant Messenger will convert it into a link anyway) and additional text and links into AOL IMr in a number of ways.
View the Output
Text View
Print View
Mail this Link
Download the Code

<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>

 

 

 



ASP: What's New? | Articles | Script Writers | Database Display | Read/Write
Server Variables | Response Objects | Random Events | Miscellaneous
HTML: Forms | Hyperlinks | Headers | Tables | Hyperlinks | Headers | Text Display
JavaScript: Document Info | Forms | Images | Navigation | Script Writers
CSS: Basics | Page Display | Text Display | Script Writers | Miscellaneous
  • 2014 michael kors
  • air max women 2013
  • 2014 michael kors
  • air max 2014
  • oakley glasses
  • oakley glasses

  • Maps: Map Script Writers | Bing Maps | Google Maps
  • bottes fr
  • ugg boot
  • Privacy Statement

    CodeAve.com is hosted by MyHosting.com
    Donate Food Online with a Mouse Click at TheHungerSite.com
    Donate Land Online with a Mouse Click at TheRainForestSite.com
    © 1999 - 2017 CodeAve.com
    All Rights Reserved

  • Kids jordan 6 rings
  • Jordan retro 10
  • Jordan retro 3