Click here to Skip to main content
15,886,689 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='xColEqualizer'>

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

<copyright>Original by moi. Modified by Mike Foster.</copyright>
<license>Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL</license>

<groups>
  <grp>Size</grp>
</groups>

<type>Function</type>

<description><![CDATA[Equalize the heights of any number of columns. Pass any number of pairs of elements to this function.]]></description>

<syntax>xColEqualizer(parent1, child1, parent2, child2, ...)</syntax>

<parameters>
  <par><name>parent1</name><note><![CDATA[element reference or id string of relative or absolute column.]]></note></par>
  <par><name>child1</name><note><![CDATA[element reference or id string of static child (content container).]]></note></par>
</parameters>

<return><![CDATA[the height to which each column was set.]]></return>

<dependencies>
  <dep>xHeight</dep>
</dependencies>

<demos>
  <demo><url>http://cross-browser.com/x/examples/layout3.html</url><note><![CDATA[This demo does not use xColEqualizer but it uses the same technique.]]></note></demo>
</demos>

<tests>
</tests>

<comments>
  <comment><date>10Oct06</date><author>mf</author><note><![CDATA[Equalizing column heights has been explored in a number of different applications. It is highly dependent on the HTML structure. Here is the structure I have found to work well with this technique. A 'column' should be a DIV with position:absolute or position:relative. Contained within this column DIV should be a 'content container' DIV with position:static. The column DIV should have overflow:hidden, and the child DIV should have overflow:visible.]]></note></comment>
  <comment><date>9Oct06</date><author>mf</author><note><![CDATA[Thanks, moi!]]></note></comment>
</comments>

<revisions>
  <rev><num>1</num><date>8Nov05</date><author>mf</author><note><![CDATA[Initial release.]]></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