<?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>Beyond Caffeine &#187; Scripting</title>
	<atom:link href="http://blog.websitestyle.com/index.php/category/scripting/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.websitestyle.com</link>
	<description>Various Epiphanies of a Technical Mind</description>
	<lastBuildDate>Wed, 03 Nov 2010 22:27:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>The Best PNG Fix?</title>
		<link>http://blog.websitestyle.com/index.php/2007/09/19/the-best-png-fix/</link>
		<comments>http://blog.websitestyle.com/index.php/2007/09/19/the-best-png-fix/#comments</comments>
		<pubDate>Wed, 19 Sep 2007 13:46:39 +0000</pubDate>
		<dc:creator>Nicole</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://blog.websitestyle.com/index.php/2007/09/19/the-best-png-fix/</guid>
		<description><![CDATA[I adore using PNG graphics in my designs, but I hate the way IE6 handles them. We know all about needing a PNG fix and using one, but recently I encountered my first major problem using one. While working on my new primary site design for Website Style, I ran into a major hitch. Most [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://img239.imageshack.us/img239/6963/pngtransparencydemonstrww3.png" alt="A png example." class="right" width="300px" height="220px" />I adore using PNG graphics in my designs, but I hate the way IE6 handles them. We know all about needing a PNG fix and using one, but recently I encountered my first major problem using one.</p>
<p>While working on my new primary site design for Website Style, I ran into a major hitch. Most of the PNG fixes just simply don&#8217;t work for the kind of site I&#8217;m making. Each one had a different problem.</p>
<p>Some used the proprietary CSS &#8216;expressions&#8217; which we know are not good because <a href="http://developer.yahoo.com/performance/rules.html#css_expressions">they massively can slow down a site</a> when they fire off thousands of times in a session.</p>
<p>Others wanted all my png&#8217;s in one directory. It&#8217;s simply not possible with my setup. So my choice there would be to completely reorganize all my CSS and HTML to put the files in one directory? No thanks.</p>
<p>Some only handle the images found in the img element, not the CSS background images.</p>
<p>Some only handle the CSS background images.</p>
<p>I&#8217;ve found some that work in the past, but what I&#8217;m looking for is something that:</p>
<ol>
<li>Must handle PNG&#8217;s in multiple directories. (Major priority)</li>
<li>Must apply the fix to .png&#8217;s in the img element.</li>
<li>Must not choke up and die when used with WordPress</li>
<li>Ideally can handle background images as well, but if I have to I don&#8217;t mind working without the background image.</li>
</ol>
<p>That final twitchy behavior of the alternatives I found seemed to somehow or other not want to work with WordPress (which made no sense at all to me because its all PHP anyway so why should it matter, but apparently it did).</p>
<p>If anyone knows of any suggestions, please let me know!</p>
<p>~Nicole</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.websitestyle.com/index.php/2007/09/19/the-best-png-fix/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>DHTML Tools List</title>
		<link>http://blog.websitestyle.com/index.php/2007/05/25/dhtml-tools-list/</link>
		<comments>http://blog.websitestyle.com/index.php/2007/05/25/dhtml-tools-list/#comments</comments>
		<pubDate>Fri, 25 May 2007 12:12:02 +0000</pubDate>
		<dc:creator>Nicole</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Scripting]]></category>

		<guid isPermaLink="false">http://blog.websitestyle.com/index.php/2007/05/25/dhtml-tools-list/</guid>
		<description><![CDATA[I&#8217;ve been spending some time on DHTMLSite lately, and I definitely feel its a great resource for people to look at. Whether you&#8217;re a developer or a client, it&#8217;s something that can help. For clients who are having a hard time visualizing what they are trying to ask for, it can be a good way [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been spending some time on <a href="http://www.dhtmlsite.com/index.php">DHTMLSite</a> lately, and I definitely feel its a great resource for people to look at. Whether you&#8217;re a developer or a client, it&#8217;s something that can help.</p>
<p>For clients who are having a hard time visualizing what they are trying to ask for, it can be a good way to explain to a developer what you are looking for.</p>
<p>For developers, it&#8217;s a great code idea resource.</p>
<p>If you haven&#8217;t browsed around on there, it&#8217;s a good place to spend some time.</p>
<p>~Nicole</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.websitestyle.com/index.php/2007/05/25/dhtml-tools-list/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>JavaFX &#8211; Another Misguided Attempt?</title>
		<link>http://blog.websitestyle.com/index.php/2007/05/18/javafx-another-misguided-attempt/</link>
		<comments>http://blog.websitestyle.com/index.php/2007/05/18/javafx-another-misguided-attempt/#comments</comments>
		<pubDate>Fri, 18 May 2007 14:33:13 +0000</pubDate>
		<dc:creator>Nicole</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Tech News]]></category>

		<guid isPermaLink="false">http://blog.websitestyle.com/index.php/2007/05/18/javafx-another-misguided-attempt/</guid>
		<description><![CDATA[One of the phrases that seems to be on peoples lips during the last few days has been the new JavaFX. In a nutshell, JavaFX is a new method to create rich internet applications. There is an article on Internet News praising JavaFX and declaring that it is going to be the end of Ajax. [...]]]></description>
			<content:encoded><![CDATA[<p>One of the phrases that seems to be on peoples lips during the last few days has been the new JavaFX. In a nutshell, JavaFX is a new method to create rich internet applications.</p>
<p>There is <a href="http://www.internetnews.com/dev-news/article.php/3676226">an article on Internet News</a> praising JavaFX and declaring that it is going to be the end of Ajax. Huh. Well, let&#8217;s look at a few arguments in that article:</p>
<blockquote><p>&#8230;by using the locally installed Java SE files. Only one new library needs to be installed along with the Java SE or ME installation, depending on the device.</p></blockquote>
<p>Reaallly. So, automatically the use of JavaFX is dependent upon a locally installed piece of software. That&#8217;s not a bonus &#8211; that&#8217;s a drawback. And he repeats it again here:</p>
<blockquote><p>JavaFX eliminates that need [using lengthy Javascript code] by using the locally installed Java SE files.</p></blockquote>
<p>Apparently Sun (and this author) missed the boat on the idea of applications that run entirely in the browser and completely independent of the desktop.</p>
<p>Just for a bit of humor &#8211; here&#8217;s one tidbit from that article:</p>
<blockquote><p>Another problem with writing AJAX applications is it inevitably forces manual code creation, a skill Web content creators typically do not have.</p></blockquote>
<p>*gasp* How dare we expect web content creators to be able to manually code!</p>
<p><a href="http://www.infoworld.com/article/07/05/07/javafx-javaone_1.html">Another article</a> has some words from James Gosling of Sun.</p>
<blockquote><p>Easy applet creation also is possible, Gosling said.</p></blockquote>
<p>That is, in a word, scary. The idea of anything making Java applets more easily created for widespread web use is disturbing.</p>
<p>On a slight tangent:</p>
<blockquote><p>Gosling noted the irony in that while the popular JavaScript scripting language looks like Java but is not, the opposite is true for JavaFX.</p></blockquote>
<p>When will people stop naming things using the word Java if it&#8217;s not Java? I just don&#8217;t get it. Javascript makes everyone think its the same as Java (which its not) and JavaFX code apparently doesn&#8217;t even look like Java. What a surprise. Next thing we know we&#8217;re going to hear about something called PHPX that has code that looks like Python (while that may not be a bad thing actually &#8211; I&#8217;m tired of the misnomers).</p>
<p>Now, one upside to it:</p>
<blockquote><p>Additionally, Web applications can be built that also work in a disconnected mode.</p></blockquote>
<p>Now that is a bonus &#8211; but when you consider how it works, it&#8217;s not really a bonus at all. What WILL be special is when people can create applications that will completely work in offline mode, but are not reliant on your desktop. Meaning that the web application can run in online mode, touching nothing at all on your computer, but that if you WANTED to use the application offline, you could download a version of it and later sync with your online version. Or something to that general effect.</p>
<p>The solution IS NOT to create online applications that <strong>begin</strong> by being dependent on desktop software. That is what we used to do. It&#8217;s what we are trying to get away from.</p>
<p><a href="http://www.sun.com/aboutsun/pr/2007-05/sunflash.20070508.2.xml">Sun says</a> that:</p>
<blockquote><p>JavaFX Script takes advantage of the Java Runtime Environment&#8217;s (JRE) ubiquity across devices</p></blockquote>
<p>Anyone who has every run across a website application that uses Java knows the enormous lag time that happens while the Java Runtime Environment (JRE) loads up on your computer. It&#8217;s about as bad (often times worse) than going to a website that doesn&#8217;t first alert you to the fact that it&#8217;s about to load up a PDF.</p>
<p>People who would claim that the extra code to write an Ajax app is worse than having to load up the JRE needs to get out their stopwatch and time it.</p>
<p>I can&#8217;t seem to find sample code anywhere for the new JavaFX &#8211; at least not on the site proper. I have found 1, and only 1, example linked from their site and that is for <a href="http://blogs.sun.com/octav/entry/game_geeks_will_love_it">a line game</a>.</p>
<p>Somewhere along the lines of <a href="http://labs.adobe.com/wiki/index.php/Apollo">Adobe&#8217;s new Apollo</a>, JavaFX seems to be going in the exact opposite direction that most of the web is right now. Web developers and consumers want less reliance on their desktop, not more. They are asking for &#8216;all-online&#8217; services so they can work from their home computer, and continue where they left off from their office computer.</p>
<p>Unless I&#8217;m misunderstanding JavaFX greatly &#8211; this seems like two steps back.</p>
<p>~Nicole</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.websitestyle.com/index.php/2007/05/18/javafx-another-misguided-attempt/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Alternatives to JavaScript Navigation</title>
		<link>http://blog.websitestyle.com/index.php/2007/02/27/alternatives-to-javascript-navigation/</link>
		<comments>http://blog.websitestyle.com/index.php/2007/02/27/alternatives-to-javascript-navigation/#comments</comments>
		<pubDate>Tue, 27 Feb 2007 19:36:43 +0000</pubDate>
		<dc:creator>Nicole</dc:creator>
				<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Layout]]></category>
		<category><![CDATA[Scripting]]></category>

		<guid isPermaLink="false">http://blog.websitestyle.com/?p=189</guid>
		<description><![CDATA[Recently I posted an article which talked about the reasons to avoid using javascript navigation. The article listed reasons, but not alternatives, so that&#8217;s what I&#8217;d like to spend some time talking about. Secondary Navigation I feel that the best alternative to javascript navigation is to create secondary navigation for your pages. What is secondary [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I posted <a href="http://blog.websitestyle.com/index.php/2007/02/26/7-reasons-you-should-avoid-javascript-dynamic-navigation/">an article</a> which talked about the reasons to avoid using javascript navigation. The article listed reasons, but not alternatives, so that&#8217;s what I&#8217;d like to spend some time talking about.</p>
<h3>Secondary Navigation</h3>
<p>I feel that the best alternative to javascript navigation is to create secondary navigation for your pages. What is secondary navigation? In a nutshell, I consider secondary navigation to be any separate section of navigation that applies to a particular page or area of your site. Let&#8217;s look at some examples of this by taking a peek at the <a href="http://wordpress.org/">WordPress.org</a> website. Below is a screenshot that I&#8217;ve scribbled on:</p>
<p><a href="http://img339.imageshack.us/img339/4365/wordpressabout117258142aw1.png"><img src="http://img339.imageshack.us/img339/4365/wordpressabout117258142aw1.th.png" alt="Wordpress website showing sub navigation." /></a></p>
<p>You can easily see that the secondary navigation sections change according to what page you are on. Here&#8217;s a different page:</p>
<p><a href="http://img246.imageshack.us/img246/6297/wordpressextend11725850fw4.png"><img src="http://img246.imageshack.us/img246/6297/wordpressextend11725850fw4.th.png" alt="Wordpress additional page showing more sub navigation." /></a></p>
<p>This is a great alternative to using drop-down menus (a menu with a sub-menu on hover) because this method will work for any and all browsers.</p>
<h3>CSS Drop-Down Menus</h3>
<p>So what&#8217;s wrong with using CSS for drop-down menus? The answer may not be a huge surprise to you: IE doesn&#8217;t handle it well.</p>
<p>For most drop-down menus controlled with CSS, you essentially use a list structure with a sub-list for each menu item. The top list item is the shown menu item, and the sub-list contains the sub-menu items. You start by setting the value of the sub-list to display:none and then on hover of the main list item, you make it change the value of the secondary list to display:block. It&#8217;s a very simple concept, and theoretically this is how all menus will be done at some point in the future.</p>
<p>The problem is in IE6 and lower, primarily. It is possible to create this effect in IE7 (though typically you need some CSS magic specifically for IE7 to make it work), but earlier versions don&#8217;t support it properly. Why? Because IE6 and earlier had serious problems with handling actions on child-elements when triggered by a parent-element.</p>
<p>So, if you really want to use CSS for your menus, what&#8217;s a good way to handle this? Anything server side is ideal, but then you get into the issue of trying to detect browsers &#8211; which can work well most of the time, except that many versions of Opera cloaked itself as IE as the default setting.</p>
<h3>Degradable JavaScript</h3>
<p>This is a good solution, but it requires layout adjustments in some cases. You have to have the kind of layout that will work with this solution. Conversely, you can create a layout adjustment for people who have JavaScript disabled.</p>
<p>Let me show you an example of a decent (but not perfect) degrading JavaScript menu implemented on the <a href="http://www.uspto.gov/">US Patent and Trademark website</a>. I have clicked on one item in the left menu bar, and you can see what happens, it dynamically opens up and shows the sub-menu:</p>
<p><a href="http://img176.imageshack.us/img176/6898/unitedstatespatentandtrgt5.png"><img src="http://img176.imageshack.us/img176/6898/unitedstatespatentandtrgt5.th.png" alt="Showing the US Patent and Trademark site." /></a></p>
<p>But what if I don&#8217;t have JavaScript enabled? Here&#8217;s a screenshot of the same page with JavaScript disabled:</p>
<p><a href="http://img145.imageshack.us/img145/692/unitedstatespatentandtrzg5.png"><img src="http://img145.imageshack.us/img145/692/unitedstatespatentandtrzg5.th.png" alt="Showing the US Patent and Trademark site with Javascript disabled." /></a></p>
<p>I think you can easily see that there are some pros and cons to this site. The good thing is that the menu is done in HTML using lists, so content is there for someone who has Javascript disabled &#8211; which is more than I can say for many sites that embed links into their Javascript. The cons? When it is disabled &#8212; the menu spans nearly twice the height of the content in the page when it&#8217;s all expanded. The visual aspect isn&#8217;t what comes to mind for me, it&#8217;s how awful it would be to listen to that many menu items on a screen reader. The idea alone is daunting.</p>
<p>I&#8217;m going to leave that thought to simmer in your mind, and move on to how this works (or doesn&#8217;t, as the case may be) for horizontal menus instead of vertical ones.</p>
<p>You saw what happened to the previous site when the JavaScript was disabled, but let&#8217;s pretend that you used a normal list structure again to create a horizontal list. Then you used Javascript to hide the sub-menus by default and to let the sub-menus drop down when you hover over the primary link. So, what happens if you have Javascript disabled? Well, in the described scenario, you&#8217;ll have all the links show at once, because the Javascript is no longer hiding the sub-menus. Depending on your layout and how these menus are styled, they&#8217;ll either push down your content to make space for all the sub-menus, or they will float on top of your content constantly.</p>
<p>Here&#8217;s an example of what could happen if the layers are set to float over the content, and they were no longer collapsed:</p>
<p><a href="http://img375.imageshack.us/img375/734/layersovermj9.jpg"><img src="http://img375.imageshack.us/img375/734/layersovermj9.th.jpg" alt="Menu Layers over content." /></a></p>
<p>The obvious problem is not just that it looks lousy, the -real- issue is that the content is blocked.</p>
<p>Or if they are not set to float over the content, here&#8217;s what you could end up with:</p>
<p><a href="http://img390.imageshack.us/img390/5281/menupushfd8.jpg"><img src="http://img390.imageshack.us/img390/5281/menupushfd8.th.jpg" alt="Menu pushes down the content." /></a></p>
<p>In the second example, you&#8217;ll see a different problem &#8211; the content gets shoved down by the constantly expanded menu. Depending on how you have designed your page, moving the content like that could break your design by shifting other elements too far out of place. Aside from that, it looks bad, but not nearly so bad as the first option.</p>
<p>Be very careful with how you handle those horizontal menus. They can be really tricky to get right, and you have to really think ahead to make sure they degrade properly (which neither of the above examples do). Think about where those sublinks could be if you did have to show them to someone without Javascript. Could there be another area in the page where they could go? You know&#8230; like a secondary menu area.</p>
<h3>Middle Ground Option</h3>
<p>I commend everyone who creates their multi-level menus in CSS. As we&#8217;ve seen, those can be great and the only sticking problem is with IE 6 and lower. One middle-ground solution to that is to manage the menu controls for those affected IE versions using Javascript and browser detection as a combination. If the user doesn&#8217;t have Javascript, you have to offer a text version of the menu somewhere in your page, surrounded by a noscript element.</p>
<h3>Best Choice Suggestion</h3>
<p>Overall, there are lots of different ways that you can handle navigation. Some are significantly better and easier than others. Some are accessible, some aren&#8217;t.</p>
<p>Which brings me back to my main suggestion. If you want to ensure the biggest audience, without having to jump through hoops of &#8216;what-ifs&#8217; (do they have javascript? are they on IE 6 or less? etc&#8230;) &#8212; use a secondary navigation instead. As a reminder, the secondary navigation was what I showed above in the screenshots of <a href="http://wordpress.org/">WordPress.org</a>. It really makes life as a developer tons easier if you create navigation sections that are perfectly compatible in browsers and very accessible. In my opinion, the best way to do that is to make a secondary navigation section.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.websitestyle.com/index.php/2007/02/27/alternatives-to-javascript-navigation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>7 Reasons You Should Avoid JavaScript Dynamic Navigation</title>
		<link>http://blog.websitestyle.com/index.php/2007/02/26/7-reasons-you-should-avoid-javascript-dynamic-navigation/</link>
		<comments>http://blog.websitestyle.com/index.php/2007/02/26/7-reasons-you-should-avoid-javascript-dynamic-navigation/#comments</comments>
		<pubDate>Mon, 26 Feb 2007 16:51:53 +0000</pubDate>
		<dc:creator>Nicole</dc:creator>
				<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Layout]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Usability]]></category>

		<guid isPermaLink="false">http://blog.websitestyle.com/?p=188</guid>
		<description><![CDATA[Over time many bad web design ideas have been dropped or lost favour, including unnecessary splash screens and unwieldy framesets, for the good of the web user. However, one web design bad habit that persists is the JavaScript Dynamic Navigation. This is bad news for both web users and those looking to commission a web [...]]]></description>
			<content:encoded><![CDATA[<p>Over time many bad web design ideas have been dropped or lost favour, including unnecessary splash screens and unwieldy framesets, for the good of the web user. However, one web design bad habit that persists is the JavaScript Dynamic Navigation. This is bad news for both web users and those looking to commission a web designer to build a site for them. Ultimately if your navigation is broken, so is your site.</p>
<p>The seven top reasons why you should not use JavaScript Dynamic Navigation are:</p>
<p><strong>Site navigation is difficult when navigation is not permanently displayed.</strong></p>
<p>Everyone likes to know where they are going and even where they are! A site with a permanently visible navigation structure meets both of these requirements, but popup or dynamic navigation systems do not. Remembering that Google and the other search engines are as likely to deliver a visitor to a subpage as they are to your home page, a clear navigation structure is essential. Think of it as they &#8220;You are here&#8221; icon in your local shopping mall&#8217;s map.</p>
<p><strong>Embedded elements can clash with dynamic navigation</strong></p>
<p>A typical dynamic navigation structure will result in an overlay or pop up/down display. The challenge here is that if your site is media rich (ie contains flash animation or embedded video) these embedded elements will take precedence on the page. The end result is that part of your navigation will be hidden behind these elements making site navigation difficult if not impossible.</p>
<p><strong>Cross browser/platform compatibility issues</strong></p>
<p>As any developer will tell you, since the dawn of the internet, not all browsers are created equal. Some applications will follow a stricter implication of JavaScript than others. The only way to combat this issue is through vigorous testing &#8211; something that takes time and money. When you consider how quickly some browsers release code updates you have to be prepared to be in constant test and verification mode.</p>
<p><strong>Usability issues- Dynamic Navigation is not for everyone</strong></p>
<p>Just like menus in Windows or OSX, dynamic navigation structures require good hand/eye co-ordination. Not everyone will be as fast or as accurate as you are when it comes to using a mouse and nested dynamic navigation can be particularly hard to use. Usability studies with elderly users or those new to computers and the internet shows that such nested menus quickly cause frustration and are far from easy to use. Operating systems have addressed this issue by allowing a user to navigate using their arrow keys as well as a mouse but this is a complicated and difficult task to accomplish in JavaScript.</p>
<p><strong>The Experts don&#8217;t do it</strong></p>
<p>Go and visit your favourite site and then all the big internet names such as Google, Amazon, YouTube, BBC, MSN, Yahoo!, MySpace, eBay, Wikipedia, Craigslist, IMDB, etc, etc. There is a reason that you don&#8217;t see these sites using dynamic navigation and that&#8217;s because there are better ways. Any coaching or strategy expert will tell you the secret to success is to model those who are already successful. So if th336e experts don&#8217;t use dynamic navigation why would you?</p>
<p><strong>You have plenty of other options</strong></p>
<p>One advantage of a dynamic JavaScript navigation structure is that everything is contained in a single script file. Changing any aspect of the whole site&#8217;s navigation can be achieved by modifying this one file. However, this benefit is not unique to JavaScript. An external xml navigation structure or a range of server-side scripting processes can achieve the same effect and all are capable of outputting standard XHTML without any of the drawbacks listed in this article.</p>
<p><strong>Your site will be broken if JavaScript is turned off!</strong></p>
<p>With increased security awareness and the constant screen invasion by pop-ups many users restrict or even turn off JavaScript settings in their browsers. While this activity is designed to stop the JavaScript based popups, squeeze pages and floating ads, it will render your site inoperable. Statistics from W3Schools show that 10% of the visitors to your site will have JavaScript disabled. As there are plenty of better alternatives to a dynamic JavaScript navigation structure why even risk alienating 10% of your site visitors?</p>
<p><strong>Written by: Iain Row<br />
About the Author:</strong> Iain Row is the lead developer at Prominent Media, Milton Keynes Web Development that specialises in producing website navigation solutions. This article was prepared by Andrew Silvers of Attraction Marketing. 2006 Prominent Media Ltd.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.websitestyle.com/index.php/2007/02/26/7-reasons-you-should-avoid-javascript-dynamic-navigation/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Book Review &#8211; DOM Scripting</title>
		<link>http://blog.websitestyle.com/index.php/2007/02/23/book-review-dom-scripting/</link>
		<comments>http://blog.websitestyle.com/index.php/2007/02/23/book-review-dom-scripting/#comments</comments>
		<pubDate>Sat, 24 Feb 2007 01:10:36 +0000</pubDate>
		<dc:creator>Nicole</dc:creator>
				<category><![CDATA[Reviews]]></category>
		<category><![CDATA[Scripting]]></category>

		<guid isPermaLink="false">http://blog.websitestyle.com/?p=187</guid>
		<description><![CDATA[A few weeks ago I ordered Jeremy Keith&#8217;s DOM Scripting book. (Yes, I know I&#8217;m far behind in my reading, but life has been busy.) I&#8217;ve had some free time lately to read through it and I think it&#8217;s really quite good (yes, I actually -read- through the book, much to the confusion of people [...]]]></description>
			<content:encoded><![CDATA[<p>A few weeks ago I ordered <a href="http://domscripting.com/book/">Jeremy Keith&#8217;s DOM Scripting book</a>. (Yes, I know I&#8217;m far behind in my reading, but life has been busy.) I&#8217;ve had some free time lately to read through it and I think it&#8217;s really quite good (yes, I actually -read- through the book, much to the confusion of people who don&#8217;t like technical manuals). </p>
<p>He really goes into the core basics of what DOM is, and how it functions in relation to the content you see printed out on a web page. I will say that it really is a book at a beginning level, but there is nothing at all wrong with that. Just keep in mind that if you&#8217;re looking for an advanced book (is there even one in print on the topic?) that this is not what you need. Read introductions, they tell a great deal &#8212; in his he essentially says that the book is for web designers with no DOM experience.</p>
<p>Many people these days seem to be keying up two catch phrases together: DOM and Ajax. This book is not about Ajax, it&#8217;s about DOM. I would imagine most people could figure that out from the title, but a few that I talked to seemed to think it was also about Ajax. There is, just to whet your appetite, a teeny chapter on Ajax at the end, but don&#8217;t expect to learn Ajax from it, it&#8217;s mostly an overview.</p>
<p>If you want to get the basics of DOM scripting, it really couldn&#8217;t have been explained better. He does a fantastic job. Jeremy writes in a very easy and readable tone that makes it all painless. I&#8217;m hoping that he comes out with DOM Scripting &#8216;Intermediate&#8217; and &#8216;Advanced&#8217; books later on. <img src='http://blog.websitestyle.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>~Nicole</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.websitestyle.com/index.php/2007/02/23/book-review-dom-scripting/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>WordPress How To &#8211; Exclude Categories from a Feed</title>
		<link>http://blog.websitestyle.com/index.php/2006/11/02/wordpress-how-to-exclude-categories-from-a-feed/</link>
		<comments>http://blog.websitestyle.com/index.php/2006/11/02/wordpress-how-to-exclude-categories-from-a-feed/#comments</comments>
		<pubDate>Fri, 03 Nov 2006 05:44:16 +0000</pubDate>
		<dc:creator>Nicole</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://blog.websitestyle.com/?p=169</guid>
		<description><![CDATA[One of the best aspects of WordPress is that it gives you remarkable control over your feeds, allowing you to pick and choose what you would like to display and in what way. Granted, that applies to WordPress in general, but it is infinitely useful for the feeds your system creates. For instance, if I [...]]]></description>
			<content:encoded><![CDATA[<p>One of the best aspects of WordPress is that it gives you remarkable control over your feeds, allowing you to pick and choose what you would like to display and in what way. Granted, that applies to WordPress in general, but it is infinitely useful for the feeds your system creates.</p>
<p>For instance, if I want to merely show one category in a feed, I would link to feed for that single category. A feed that would only show the reviews of the site is very simple to achive. You go the page main category page (in this example the category is &#8216;reviews&#8217;) and then you add a forward slash (/) and the word &#8216;feed&#8217;. Like this:</p>
<p>http://blog.websitestyle.com/index.php/category/reviews/feed/</p>
<p>However, if you wanted to exclude that category, then you would need to know the number of the category. That is simple enough to find. You would go to your &#8216;manage&#8217; tab, then click on &#8216;categories&#8217;. Scan down your category list, and you&#8217;ll find the number of the category in the associated &#8216;ID&#8217; column. So now, for the above example, my &#8216;reviews&#8217; category has an &#8216;ID&#8217; of 18.</p>
<p>Now each WordPress blog has a feed URL that will display ALL posts from the blog regardless of category. It looks like this:</p>
<p>http://blog.websitestyle.com/index.php?feed=rss2</p>
<p>To exclude all posts in the &#8216;reviews&#8217; category, you would instead using the following adjustment to your normal feed link:</p>
<p>http://blog.websitestyle.com/index.php?feed=rss2<span style="font-weight:bold;text-decoration:underline;">&#038;cat=-18</span></p>
<p>And now you have a link to a feed that shows all my categories EXCEPT for those in the &#8216;reviews&#8217; section.</p>
<p>Ah, but what if you want to exclude more than one category? What&#8217;s the syntax?</p>
<p>You simply add each one to exclude like this:<br />
<strong>This Section Updated</strong><br />
WP Versions Before 2.3.1:<br />
http://blog.websitestyle.com/index.php?feed=rss2<span style="font-weight:bold;text-decoration:underline;">&#038;cat=-18&#038;cat=-22</span><br />
For Version 2.3.1+:<br />
http://blog.websitestyle.com/index.php?feed=rss2<span style="font-weight:bold;text-decoration:underline;">&#038;cat=-18,cat=-22</span></p>
<p>The above would exclude both my &#8216;reviews&#8217; and &#8216;templates&#8217; categories. I actually use this when I embed my blog feed in another website that is purely tech (nothing personal included), and I exclude things I&#8217;ve categorized as non-tech related so they don&#8217;t show up.</p>
<p>Hope this was helpful to someone out there.</p>
<p>~Nicole</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.websitestyle.com/index.php/2006/11/02/wordpress-how-to-exclude-categories-from-a-feed/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>Horizontal Menu Generator &#8211; 1.1</title>
		<link>http://blog.websitestyle.com/index.php/2006/08/17/horizontal-menu-generator-11/</link>
		<comments>http://blog.websitestyle.com/index.php/2006/08/17/horizontal-menu-generator-11/#comments</comments>
		<pubDate>Fri, 18 Aug 2006 01:30:45 +0000</pubDate>
		<dc:creator>Nicole</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Layout]]></category>
		<category><![CDATA[Scripting]]></category>

		<guid isPermaLink="false">http://blog.websitestyle.com/?p=133</guid>
		<description><![CDATA[Just a brief update. I have made one of the major changes to the menu generator 1.0 that it sorely needed. That was, of course, to add a full range selection of colors to choose from. Utilizing a great javascript widget I have been able to add that functionality to the menu generator. You can [...]]]></description>
			<content:encoded><![CDATA[<p>Just a brief update. I have made one of the major changes to the <a href="http://blog.websitestyle.com/index.php/2006/07/19/horizontal-menu-generator-10/">menu generator 1.0</a> that it sorely needed. That was, of course, to add a full range selection of colors to choose from.</p>
<p>Utilizing a <a href="http://www.dhtmlgoodies.com/index.html?whichScript=js_color_picker_v2">great javascript widget</a> I have been able to add that functionality to the menu generator. You can now fully select color ranges for the options that are available thus far.</p>
<p>You can try out the <a href="http://websitestyle.com/menu_generator/">Horizontal Menu Generator &#8211; 1.1</a>, and I&#8217;ll add updates as I make them.</p>
<p>~Nicole</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.websitestyle.com/index.php/2006/08/17/horizontal-menu-generator-11/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Horizontal Menu Generator &#8211; 1.0</title>
		<link>http://blog.websitestyle.com/index.php/2006/07/19/horizontal-menu-generator-10/</link>
		<comments>http://blog.websitestyle.com/index.php/2006/07/19/horizontal-menu-generator-10/#comments</comments>
		<pubDate>Thu, 20 Jul 2006 04:12:32 +0000</pubDate>
		<dc:creator>Nicole</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Layout]]></category>
		<category><![CDATA[Scripting]]></category>

		<guid isPermaLink="false">http://blog.websitestyle.com/?p=125</guid>
		<description><![CDATA[With the completion of my 15 CSS menus recently, I decided to code up something to generate those menus more easily. This is very much a version 1.0, and is simplistic in features. At some point, I do hope to add more features but one of the first priorities will be to finish putting in [...]]]></description>
			<content:encoded><![CDATA[<p>With the completion of my <a href="http://blog.websitestyle.com/index.php/2006/07/17/new-templates-horizontal-menus/">15 CSS menus</a> recently, I decided to code up something to generate those menus more easily. </p>
<p>This is very much a version 1.0, and is simplistic in features. At some point, I do hope to add more features but one of the first priorities will be to finish putting in the rest of the colors available. I am undecided on the method to do that, whether I want some sort of javascript color picker or if I should re-write the whole thing in javascript. For now, it&#8217;s all done in PHP, which is my preference since it makes the menu accessible to anyone.</p>
<p>The two major features on my &#8216;to-do&#8217; list are:<br />
1) Finish adding in the rest of the web safe colors.<br />
2) Add multi-tier menu creation.</p>
<p>You can try out the <a href="http://websitestyle.com/menu_generator/">Horizontal Menu Generator &#8211; Version 1.0</a> now, and I&#8217;ll release updates as I make them.</p>
<p>Please post here if you find any bugs or errors.</p>
<p><strong><a href="http://blog.websitestyle.com/index.php/2006/08/17/horizontal-menu-generator-11/">Note: Version 1.1 is announced here.</a></strong></p>
<p>~Nicole</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.websitestyle.com/index.php/2006/07/19/horizontal-menu-generator-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cleaner Code &#8211; A Project</title>
		<link>http://blog.websitestyle.com/index.php/2006/05/16/cleaner-code-a-project/</link>
		<comments>http://blog.websitestyle.com/index.php/2006/05/16/cleaner-code-a-project/#comments</comments>
		<pubDate>Tue, 16 May 2006 21:32:27 +0000</pubDate>
		<dc:creator>Nicole</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Standards]]></category>

		<guid isPermaLink="false">http://blog.websitestyle.com/?p=94</guid>
		<description><![CDATA[I&#8217;ve decided to embark on a little project I&#8217;ve been wanting to do for some time. Sort of my version of Tidy, except covering some really old proprietary tags also. The other benefit of this, aside from the obvious, is that this will (ideally) also help me improve my PHP skills. Essentially, I&#8217;m creating an [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve decided to embark on a little project I&#8217;ve been wanting to do for some time. Sort of my version of Tidy, except covering some really old proprietary tags also. The other benefit of this, aside from the obvious, is that this will (ideally) also help me improve my PHP skills.</p>
<p>Essentially, I&#8217;m creating an online code parser that will skim out and replace old tags with the appropriate standards compliant ones. I&#8217;m starting slow, primarily because my knowledge of advanced string manipulation in PHP is rather minimal. Eventually, I&#8217;d like to be able to really expand this project into a lot more, but those are ideas for another discussion.</p>
<p>What I have done so far is this:</p>
<ul>
<li>Replaces MS Word Smartquotes with normal entities.</li>
<li>&lt;b&gt; = &lt;strong&gt;</li>
<li>&lt;i&gt; = &lt;em&gt;</li>
<li>&lt;u&gt; = &lt;span style=&#8221;text-decoration:underline&#8221;&gt;</li>
<li>&lt;br&gt; = &lt;br /&gt;</li>
<li>&lt;hr&gt; = &lt;hr /&gt;</li>
<li>&lt;dir&gt; and &lt;menu&gt; = &lt;ul&gt;</li>
<li>&lt;s&gt; and &lt;strike&gt; = &lt;del&gt;</li>
<li>&lt;xmp&gt; = &lt;pre&gt;</li>
</ul>
<p>I have quite a few things on my list of what I would like to do, and it will get done as soon as I figure out how to use PHP to manipulate the data entered and create what I&#8217;m looking for. For now, this is a rather quick and dirty little online form that will solve a lot of the most basic validating errors for old web pages.</p>
<p>I&#8217;m keeping the project here:<br />
<a href="http://www.websitestyle.com/code_cleaner/" title="Visit the Code Cleaner">http://www.websitestyle.com/code_cleaner/</a> if you want to try it out.</p>
<p>~Nicole</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.websitestyle.com/index.php/2006/05/16/cleaner-code-a-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

