<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - noah</title>
<link>http://snipplr.com/users/noah/tags/dhtml</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Wed, 15 Oct 2008 17:02:01 GMT</pubDate>
<item>
<title>(Ruby) Rendered WGet with Selenium</title>
<link>http://snipplr.com/view/7906/rendered-wget-with-selenium/</link>
<description><![CDATA[ <p>Created in response to a discussion about "ghosting," between Kord Campbell of Splunk and Christian Heilman of Yahoo! at Ajax World 2008.

IMPORTANT: The Selenium-RC server must be running on port 4444 (the default) and you must have Curl and Tidy installed on your system.   

NOTE: Diffing the rendered versus the "server" source.  This option works OK as a learning tool, but I need to do more in terms of normalizing the server source versus the rendered source.  I run both the "server" and innerHTML sources through Tidy, but unfortunately there still seems to be a lot of extraneous differences between them.

So while this works OK for downloading the rendered source via a Ruby script, I've got a ways to go before it can produce a reliable "rendered diff."

keywords: rwget, rwdiff, ruby, selenium rc, selenium remote control, examples</p> ]]></description>
<pubDate>Mon, 18 Aug 2008 09:23:43 GMT</pubDate>
<guid>http://snipplr.com/view/7906/rendered-wget-with-selenium/</guid>
</item>
<item>
<title>(JavaScript) click on an element across browsers</title>
<link>http://snipplr.com/view/3336/click-on-an-element-across-browsers/</link>
<description><![CDATA[ <p>If you have assigned an event handler to a container, you might want to remotely trigger it as if a child of the container had been clicked.  That is, you might want to manually set the target of the 'event' object that is passed to the event handler on the container.  This helps to keep the number of event handlers down.</p> ]]></description>
<pubDate>Fri, 20 Jul 2007 18:08:37 GMT</pubDate>
<guid>http://snipplr.com/view/3336/click-on-an-element-across-browsers/</guid>
</item>
<item>
<title>(JavaScript) Sort the OPTIONs in a SELECT menu</title>
<link>http://snipplr.com/view/3265/sort-the-options-in-a-select-menu/</link>
<description><![CDATA[ <p>Author: Clyde Ingram</p> ]]></description>
<pubDate>Tue, 10 Jul 2007 15:46:00 GMT</pubDate>
<guid>http://snipplr.com/view/3265/sort-the-options-in-a-select-menu/</guid>
</item>
<item>
<title>(JavaScript) Change opacity in all browsers</title>
<link>http://snipplr.com/view/2844/change-opacity-in-all-browsers/</link>
<description><![CDATA[ <p>Check whether style.opacity is available.  If not, then apply IE proprietary opacity</p> ]]></description>
<pubDate>Mon, 11 Jun 2007 12:07:17 GMT</pubDate>
<guid>http://snipplr.com/view/2844/change-opacity-in-all-browsers/</guid>
</item>
<item>
<title>(JavaScript) Set IE Hover State</title>
<link>http://snipplr.com/view/2842/set-ie-hover-state/</link>
<description><![CDATA[ <p>assigns/removes the class 'over' to elements on hover since IE does not attach :hover to any element but A</p> ]]></description>
<pubDate>Mon, 11 Jun 2007 09:09:44 GMT</pubDate>
<guid>http://snipplr.com/view/2842/set-ie-hover-state/</guid>
</item>
<item>
<title>(JavaScript) Toggle the className of a DOM element</title>
<link>http://snipplr.com/view/2600/toggle-the-classname-of-a-dom-element/</link>
<description><![CDATA[ <p>Imagine an element that has two states, represented by two CSS classes named 'expanded' and 'contracted.'  This code toggles between the two states.</p> ]]></description>
<pubDate>Fri, 04 May 2007 08:45:52 GMT</pubDate>
<guid>http://snipplr.com/view/2600/toggle-the-classname-of-a-dom-element/</guid>
</item>
</channel>
</rss>