Click here to Skip to main content
15,885,767 members
Articles / Web Development / IIS

xLibrary - Using a custom IHttpHandler to access embedded JavaScript

Rate me:
Please Sign up or sign in to vote.
4.33/5 (4 votes)
28 Feb 2009CPOL15 min read 44.7K   446   41  
This article covers how to make a custom IHttpHandler to use the X Library from www.cross-browser.com embedded in an assembly.
<?xml version="1.0" encoding="ISO-8859-1"?>

<x_symbol id='xTriStateImage'>

<sources>
  <src><file>xtristateimage.js</file><note><![CDATA[Default.]]></note></src>
</sources>

<copyright>Copyright 2004-2007 Michael Foster (Cross-Browser.com)</copyright>
<license>Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL</license>
<groups>
  <grp>Image</grp>
</groups>
<type>Object</type>

<description><![CDATA[Image rollover with a third state - mousedown.]]></description>

<syntax>new xTriStateImage(idOut, urlOver, urlDown, fnUp)</syntax>

<parameters>
  <par>
    <name>idOut</name>
    <note><![CDATA[]]></note>
  </par>
  <par>
    <name>urlOver</name>
    <note><![CDATA[]]></note>
  </par>
  <par>
    <name>urlDown</name>
    <note><![CDATA[]]></note>
  </par>
  <par>
    <name>fnUp</name>
    <note><![CDATA[]]></note>
  </par>
</parameters>

<properties>
</properties>

<dependencies>
</dependencies>

<demos>
  <demo>
    <url>http://cross-browser.com/x/examples/xtristateimage.php</url>
    <note><![CDATA[3 state image rollovers]]></note>
  </demo>
</demos>

<revisions>
  <rev>
    <num>4</num>
    <date>19Oct06</date>
    <author>mf</author>
    <note><![CDATA[Removed xIE4Up sniffer]]></note>
  </rev>
  <rev>
    <num>3</num>
    <date>11May05</date>
    <author>mf</author>
    <note><![CDATA[Add xIE4Up conditional to unload method (still unsure about this)]]></note>
  </rev>
  <rev>
    <num>2</num>
    <date>6Apr05</date>
    <author>mf</author>
    <note><![CDATA[Added missing semicolons to support XC compression]]></note>
  </rev>
  <rev>
    <num>1</num>
    <date>11Mar05</date>
    <author>mf</author>
    <note><![CDATA[put in it's own file for use with XC]]></note>
  </rev>
</revisions>

</x_symbol>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United States United States
I have been a software developer since 2005, focusing on .Net applications with MS SQL backends, and recently, C++ applications in Linux, Mac OS X, and Windows.

Comments and Discussions