<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Eklog &#187; DHTML</title>
	<atom:link href="http://www.ekstasis.net/log/category/dhtml/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ekstasis.net/log</link>
	<description></description>
	<lastBuildDate>Sun, 13 Sep 2009 21:21:42 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Good Web Development Books</title>
		<link>http://www.ekstasis.net/log/2007/12/15/latest-books/</link>
		<comments>http://www.ekstasis.net/log/2007/12/15/latest-books/#comments</comments>
		<pubDate>Sat, 15 Dec 2007 10:52:59 +0000</pubDate>
		<dc:creator>mat</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[Books]]></category>
		<category><![CDATA[DHTML]]></category>
		<category><![CDATA[DOM]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.ekstasis.net/log/2007/12/15/latest-books/</guid>
		<description><![CDATA[Good web dev reference books:




]]></description>
			<content:encoded><![CDATA[<p>Good web dev reference books:</p>
<p><a class="books" href="http://www.amazon.co.uk/gp/product/0980285801?ie=UTF8&#038;tag=httpwwwekstas-21&#038;linkCode=as2&#038;camp=1634&#038;creative=6738&#038;creativeASIN=0980285801"><img  class="reflect rheight10 ropacity30" src="/images/blog/affilliate/simply-javascript.jpg"></a><img class="amazonLinkBlock" src="http://www.assoc-amazon.co.uk/e/ir?t=httpwwwekstas-21&#038;l=as2&#038;o=2&#038;a=0980285801" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></p>
<p><a class="books" href="http://www.amazon.co.uk/gp/product/1590597311?ie=UTF8&#038;tag=httpwwwekstas-21&#038;linkCode=as2&#038;camp=1634&#038;creative=6738&#038;creativeASIN=1590597311"><img class="reflect rheight10 ropacity30"  src="/images/blog/affilliate/php-solutions.jpg"></a><img class="amazonLinkBlock" src="http://www.assoc-amazon.co.uk/e/ir?t=httpwwwekstas-21&#038;l=as2&#038;o=2&#038;a=1590597311" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></p>
<p><a class="books" href="http://www.amazon.co.uk/gp/product/1590598563?ie=UTF8&#038;tag=httpwwwekstas-21&#038;linkCode=as2&#038;camp=1634&#038;creative=6738&#038;creativeASIN=1590598563"><img class="reflect rheight10 ropacity30"  src="/images/blog/affilliate/dom-scripting.jpg"></a><img class="amazonLinkBlock" src="http://www.assoc-amazon.co.uk/e/ir?t=httpwwwekstas-21&#038;l=as2&#038;o=2&#038;a=1590598563" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></p>
<hr class="clear" />
]]></content:encoded>
			<wfw:commentRss>http://www.ekstasis.net/log/2007/12/15/latest-books/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DHTML tree menu testing</title>
		<link>http://www.ekstasis.net/log/2006/12/19/dhtml-tree-menu-testing/</link>
		<comments>http://www.ekstasis.net/log/2006/12/19/dhtml-tree-menu-testing/#comments</comments>
		<pubDate>Tue, 19 Dec 2006 20:49:02 +0000</pubDate>
		<dc:creator>mat</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[DHTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.ekstasis.net/log/2006/12/19/dhtml-tree-menu-testing/</guid>
		<description><![CDATA[
Testing and evaluating DHTML menu trees.
Each menu included in the list (below) has it&#8217;s own testing area. They&#8217;ve been tested for full functionality within a working &#8216;mini site&#8217; and adapted to demonstrate whether it&#8217;s possible to open nested levels and display the current location without altering the body tag.
Here&#8217;s the list of menus with a [...]]]></description>
			<content:encoded><![CDATA[<div align="center"><img alt="menu tree" title="menu tree" class="reflect rheight20 ropacity40" src="/images/logpics/menutree.jpg" /></div>
<h4>Testing and evaluating DHTML menu trees.</h4>
<p>Each menu included in the list (below) has it&#8217;s own testing area. They&#8217;ve been tested for full functionality within a working &#8216;mini site&#8217; and adapted to demonstrate whether it&#8217;s possible to open nested levels and display the current location without altering the body tag.</p>
<p>Here&#8217;s the list of menus with a link to the test and a link to the original sites:</p>
<table width="100%" cellpadding="0" border="0">
<tr>
<td><strong>Link to test area</strong></td>
<td><strong>Link to original site</strong></td>
</tr>
<tr>
<td><a href="/tests/menu08/">ECMA menu test</a><a href="/tests/menu12/" /></td>
<td><a href="http://juicystudio.com/article/ecmascriptmenu.php">Juicystudio.com menu</a></td>
</tr>
<tr>
<td><a href="/tests/menu08/">Ecommnet menu test</a></td>
<td><a href="http://www.ecommnet.co.uk/test/juicymenu/testthis4.asp">Ecommnet.co.uk menu</a></td>
</tr>
<tr>
<td><a href="/tests/menu12/">PDE menu test</a></td>
<td><a href="http://onlinetools.org/tools/dom-tree-menu-puredom/">Onlinetools.org menu</a></td>
</tr>
<tr>
<td><a href="/tests/menu09/">Splintered menu test</a></td>
<td><a href="http://www.splintered.co.uk/experiments/archives/menu_replace/">Splintered.co.uk menu</a></td>
</tr>
<tr>
<td><a href="/tests/menu03/">DNolan menu test</a></td>
<td><a href="http://www.dnolan.com/code/js/listmenu/">DNolan.com menu</a></td>
</tr>
<tr>
<td><a href="/tests/menu13/">MKTree menu test</a></td>
<td><a href="http://www.mattkruse.com/javascript/mktree/">Mattkruse.com MKTree menu</a></td>
</tr>
<tr>
<td><a href="/tests/menu10/">Simple Tree menu test</a></td>
<td><a href="http://www.dynamicdrive.com/dynamicindex1/navigate1.htm">Dynamicdrive.com menu</a></td>
</tr>
<tr>
<td><a href="/tests/menu05/">Click drop menu test</a></td>
<td><a href="http://bonrouge.com/br.php?page=clickdrop">Bonrouge.com Clickdrop menu</a></td>
</tr>
<tr>
<td><a href="/tests/menu01/">CreateMenu menu test</a></td>
<td><a href="http://www.codingforums.com/showthread.php?t=42084&#038;page=5">Codingforums.com Mike&#8217;s tree</a></td>
</tr>
<tr>
<td><a href="/tests/menu11/">Gazingus menu test</a></td>
<td>Site no longer available</td>
</tr>
</table>
<p>
<span id="more-32"></span></p>
<p>Displaying the &#8216;current location&#8217; is vital for clear site navigation. This feature is not usually included with the original menu source code. In order to test whether it is possible to adapt the menus to include this feature each menu has been set up &#8211; where possible &#8211; to indicate the &#8216;current location&#8217; and automatically open the tree at that level.</p>
<p>Links below include the local test area and the original URL providing the source code.</p>
<p>Only free-of-charge menu systems are included in this evaluation.</p>
<p>Overview of evaluation criteria:</p>
<ul>
<li>Is it accessible? Driveable by keyboard only?</li>
<li>How separate is the content, presentation, and behaviour.</li>
<li>Does it degrade well without JavaScript or CSS?</li>
<li>How easy is it to indicate the &#8216;current location&#8217; of the page selected?</li>
<li>Does it opens and displays current status for an included page &#8211; [e.g. HTML: main.php?page=page1.] i.e. cannot use body tags or code in  section of page?</li>
<li>When clicking on the parent item / title of the section do the nested list items open &#8211; i.e. not just clicking on the graphic which can cause confusion?</li>
<li>Is it xhtml 1.0 strict valid?</li>
</ul>
<p>In order to keep the nested levels visible at a specific location I have used one of two types of server-side functions:</p>
<pre><code><</code>?php
$theuri = $_SERVER['REQUEST_URI']; ?>
<code><</code>?php
if ( ($theuri =="/s01sub1a01.php") or ($theuri ==
"/tests/menu13/section1pages/s01sub1a02.php"))
echo " class=\"liOpen\"";
else echo " class=\"liClosed\""; ?>
</pre>
<p>or</p>
<pre><code><</code><code>?php
if ( ($thisPage=="s01sub1b01")
or ($thisPage=="s01sub1b02") or ($thisPage=="s01sub1b03") )
echo " rel=\"open\""; ?></code></pre>
<p>A better method to use is demonstrated below.<br />
This has not been used in these tests because of the need for<br />
modRewrite using the RewriteEngine:</p>
<pre><code>$lines = split("\n", $menu);
foreach ($lines as $line) {
$current = false;
preg_match('/href="([^" mce_href="([^"]+)"/', $line, $url);
if (substr($_SERVER["REQUEST_URI"], 0, 5) == substr($url[1], 0, 5)) {
$line = str_replace('</code><code><</code>a h', '<code><</code>
<code>a id="current" h', $line); }
echo $line."\n";
}
</code>
</pre>
<p>[Full source code available at: <a title="pregmatch code" href="http://photomatt.net/scripts/intellimenu">http://photomatt.net/</a> ]</p>
<p></p>
<p>or</p>
<pre><code><</code><code>?php
$menu =
file_get_contents("/inc/menu.htm");
$menu = preg_replace("|</code><code><</code>li><code><</code>
<code>a xhref=\"" .
basename($_SERVER['PHP_SELF']) . "\">(.*),/code><code><</code><code>!--[^-->]+></code>
<code><</code><code>/li>|U","</code><code><</code>
<code>li class=\"current\">$1</code><code><</code><code>/li>", $menu);
echo $menu;</code>
<code>?></code></pre>
<p>[Full source code currently lost and code not tested. ]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ekstasis.net/log/2006/12/19/dhtml-tree-menu-testing/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Suckerfish Generations</title>
		<link>http://www.ekstasis.net/log/2006/01/29/suckerfish-generations/</link>
		<comments>http://www.ekstasis.net/log/2006/01/29/suckerfish-generations/#comments</comments>
		<pubDate>Sun, 29 Jan 2006 02:45:02 +0000</pubDate>
		<dc:creator>mat</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[DHTML]]></category>

		<guid isPermaLink="false">http://www.ekstasis.net/log/?p=28</guid>
		<description><![CDATA[HTML Dog provide a widely used piece of JavaScript to enable the hover CSS pseudo-class to operate in Internet Explorer. It&#8217;s a popular method of applying dropdown menus thanks to its lightweight, standards-compliant, accessible, cross-browser nature.
Their drop-down menu is named the Suckerfish drop-down menu. They&#8217;ve now revised &#8216;Sons of Suckerfish&#8216; with the better JavaScript and [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.htmldog.com/">HTML Dog</a> provide a widely used piece of JavaScript to enable the hover CSS pseudo-class to operate in Internet Explorer. It&#8217;s a popular method of applying dropdown menus thanks to its lightweight, standards-compliant, accessible, cross-browser nature.</p>
<p>Their drop-down menu is named the <a href="http://www.alistapart.com/articles/dropdowns/">Suckerfish drop-down</a> menu. They&#8217;ve now revised &#8216;<a href="http://www.htmldog.com/articles/suckerfish/">Sons of Suckerfish</a>&#8216; with the better JavaScript and Opera fix.</p>
<p>It&#8217;s possible to adapt it to create a floated horizontal solution with images, like the menu at the top of this page. It uses the improved code from Sons of Suckerfish and combined it with some elements of the CSS of the first method to give some nice looking drop-down backgrounds.</p>
<p><a href="http://www.positioniseverything.net/css-dropdowns.html">Positioniseverything.net&#8217;s css-dropdowns</a> is another good CSS &#8211; JavaScript hybrid drop-down menu. <a href="http://gosu.pl/software/mygosumenu.html">Gosu.pl</a> have some really nice looking DHTML menus including expanding editable menus. <a href="http://www.udm4.com/">UDM4</a> also have some great looking menus with images which are also fully accessible to all browsers &#8211; including screenreaders, search-engines and text-only browsers.</p>
<p>Some CSS purists have the goal of creating drop-down menus using only CSS that work in Internet Explorer. These always seem to lack features available with the hover p-class, and when IE7 is available the JavaScript used in DHTML menus can be removed.</p>
<p>For a list of sites using drop-downs and other types of navigation menus see the <a href="http://www.ekstasis.net/site/dho/dhtml_menus">DHTML Menus section</a>.<!--916d43600750825488bd04bfe8be69f1--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ekstasis.net/log/2006/01/29/suckerfish-generations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
