<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/tags/DOM</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sun, 19 May 2013 06:31:10 GMT</pubDate>
<item>
<title>(JavaScript) Dynamic Table Generator - COBOLdinosaur</title>
<link>http://snipplr.com/view/70654/dynamic-table-generator/</link>
<description><![CDATA[ <p>The use of dynamic data acquisition on modern web sites and in a lot of intranet applications, sometimes means we have to build structures dynamically as data comes in from a feed or AJAX operations. The problem is not with the data, but rather that it is unstructured, or not appropriately tagged. The solution is to dynamically build the necessary structures to make the data presentable in a web page</p> ]]></description>
<pubDate>Thu, 04 Apr 2013 07:15:15 GMT</pubDate>
<guid>http://snipplr.com/view/70654/dynamic-table-generator/</guid>
</item>
<item>
<title>(JavaScript) Javascript DOM Create Element - flamboyanz</title>
<link>http://snipplr.com/view/69973/javascript-dom-create-element/</link>
<description><![CDATA[ <p>Javascript DOM Create Element</p> ]]></description>
<pubDate>Mon, 18 Feb 2013 04:10:53 GMT</pubDate>
<guid>http://snipplr.com/view/69973/javascript-dom-create-element/</guid>
</item>
<item>
<title>(jQuery) [jQuery Mobile] Refresh DOM after AJAX Call - goo</title>
<link>http://snipplr.com/view/69377/jquery-mobile-refresh-dom-after-ajax-call/</link>
<description><![CDATA[ <p>in jquery mobile, .html() not refresh DOM. Execute this function after any DOM change.</p> ]]></description>
<pubDate>Mon, 07 Jan 2013 18:45:30 GMT</pubDate>
<guid>http://snipplr.com/view/69377/jquery-mobile-refresh-dom-after-ajax-call/</guid>
</item>
<item>
<title>(jQuery) jQuery: Numbering an Unordered List - satie83</title>
<link>http://snipplr.com/view/64909/jquery-numbering-an-unordered-list/</link>
<description><![CDATA[ <p>Here’s a very simple script which adds numbers sequentially to an unordered list using jQuery</p> ]]></description>
<pubDate>Thu, 17 May 2012 22:37:41 GMT</pubDate>
<guid>http://snipplr.com/view/64909/jquery-numbering-an-unordered-list/</guid>
</item>
<item>
<title>(PHP) jQuery syle DOM navigation in PHP with phpQuery - FatFolderDesigner</title>
<link>http://snipplr.com/view/63292/jquery-syle-dom-navigation-in-php-with-phpquery/</link>
<description><![CDATA[ <p>Navigating the DOM in jQuery is incredibly simple and thats to phpQuery you can do the same in php. Below are some examples of how it's used, the key change bing that instead of $() you use pq(), and instead of a . you used ->. Theres alot more details information at the link if your interested. Post questions/comments here or there.

You can get the phpquery files, and well as read the manual at the google code page here: http://code.google.com/p/phpquery/</p> ]]></description>
<pubDate>Mon, 13 Feb 2012 09:55:58 GMT</pubDate>
<guid>http://snipplr.com/view/63292/jquery-syle-dom-navigation-in-php-with-phpquery/</guid>
</item>
<item>
<title>(JavaScript) Get DOM element via class and id selector, using Google Closure - cjcenizal</title>
<link>http://snipplr.com/view/62931/get-dom-element-via-class-and-id-selector-using-google-closure/</link>
<description><![CDATA[ <p>The Google Closure lets you get DOM elements with getElement( id ) and getElementByClass( class ).  This function combines the two to let you get elements similarly to the way jQuery does.  E.g. getElement( '#home .sidebar #links') returns the element with an id of 'links', within the element of class 'sidebar', within the element of id 'home'.</p> ]]></description>
<pubDate>Tue, 31 Jan 2012 15:00:26 GMT</pubDate>
<guid>http://snipplr.com/view/62931/get-dom-element-via-class-and-id-selector-using-google-closure/</guid>
</item>
<item>
<title>(PHP) Extract PitchFX from MLB.com - wa-rufio</title>
<link>http://snipplr.com/view/61977/extract-pitchfx-from-mlbcom/</link>
<description><![CDATA[ <p>Open PHP file and enter User Credentials for localhost.  The default dates are set to negotiate the 2011 season, but change the date variables to match your desired season data.  The start date should be the day before opening day, and the end date the last day of the regular season.  

Append ignored attributes to conditional statement on line 81 to match your pitchfx table structure.</p> ]]></description>
<pubDate>Mon, 19 Dec 2011 07:28:19 GMT</pubDate>
<guid>http://snipplr.com/view/61977/extract-pitchfx-from-mlbcom/</guid>
</item>
<item>
<title>(JavaScript) getElementsFromClassName - jatkins</title>
<link>http://snipplr.com/view/60653/getelementsfromclassname/</link>
<description><![CDATA[ <p>Released into the public domain.</p> ]]></description>
<pubDate>Wed, 09 Nov 2011 10:07:09 GMT</pubDate>
<guid>http://snipplr.com/view/60653/getelementsfromclassname/</guid>
</item>
<item>
<title>(PHP) First Code 2 - Merrill Alegado - jerryvig</title>
<link>http://snipplr.com/view/60552/first-code-2--merrill-alegado/</link>
<description><![CDATA[ <p>http://www.poetiv.com/</p> ]]></description>
<pubDate>Fri, 04 Nov 2011 20:40:18 GMT</pubDate>
<guid>http://snipplr.com/view/60552/first-code-2--merrill-alegado/</guid>
</item>
<item>
<title>(JavaScript) Search for objects attached to the global JS object - richt</title>
<link>http://snipplr.com/view/58681/search-for-objects-attached-to-the-global-js-object/</link>
<description><![CDATA[ <p>Simple recursive function to find objects that match the value of str hanging anywhere off the global JS object (window).</p> ]]></description>
<pubDate>Thu, 15 Sep 2011 00:15:22 GMT</pubDate>
<guid>http://snipplr.com/view/58681/search-for-objects-attached-to-the-global-js-object/</guid>
</item>
<item>
<title>(JavaScript) isEmail Function - alberomo</title>
<link>http://snipplr.com/view/58073/isemail-function/</link>
<description><![CDATA[ <p>Check if user has intruded a real email address. Return true (real email) or false (fake email).
Arguments: Element from a form.
From book Dom Scripting by Jeremy Keith</p> ]]></description>
<pubDate>Mon, 22 Aug 2011 00:27:59 GMT</pubDate>
<guid>http://snipplr.com/view/58073/isemail-function/</guid>
</item>
<item>
<title>(JavaScript) isFilled (form element) Function - alberomo</title>
<link>http://snipplr.com/view/58072/isfilled-form-element-function/</link>
<description><![CDATA[ <p>Arguments: Element from a form.
Take that element and checks if is filled. If not, returns false. If is filled, returns true.
From book Dom Scripting by Jeremy Keith</p> ]]></description>
<pubDate>Mon, 22 Aug 2011 00:15:36 GMT</pubDate>
<guid>http://snipplr.com/view/58072/isfilled-form-element-function/</guid>
</item>
<item>
<title>(JavaScript) focusLebels Function - alberomo</title>
<link>http://snipplr.com/view/58069/focuslebels-function/</link>
<description><![CDATA[ <p>A JS function that put the focus in the form field associated to a label element whenever is clicked. The for atributte of the label element must match the id attribute of the associated form field.
It takes no arguments.
From book Dom Scripting by Jeremy Keith</p> ]]></description>
<pubDate>Sun, 21 Aug 2011 20:05:42 GMT</pubDate>
<guid>http://snipplr.com/view/58069/focuslebels-function/</guid>
</item>
<item>
<title>(JavaScript) previousElement and nextElement - jatkins</title>
<link>http://snipplr.com/view/56845/previouselement-and-nextelement/</link>
<description><![CDATA[ <p>Released into the public domain. I haven't tested these (realized I didn't need them for what I was trying to do), but they should work. **Bug fixed 7/19/2011.**</p> ]]></description>
<pubDate>Tue, 19 Jul 2011 07:24:59 GMT</pubDate>
<guid>http://snipplr.com/view/56845/previouselement-and-nextelement/</guid>
</item>
<item>
<title>(Scala) Convert Scala XML to Java DOM - studioevoque</title>
<link>http://snipplr.com/view/55854/convert-scala-xml-to-java-dom/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 29 Jun 2011 01:21:45 GMT</pubDate>
<guid>http://snipplr.com/view/55854/convert-scala-xml-to-java-dom/</guid>
</item>
<item>
<title>(JavaScript) Retrieve only childNodes that are HTML elements - jatkins</title>
<link>http://snipplr.com/view/51897/retrieve-only-childnodes-that-are-html-elements/</link>
<description><![CDATA[ <p>Released into the public domain. **Example:** `elementNodes(document.getElementById('content'))` refers to an array of all the elements inside the element with the ID _content_.</p> ]]></description>
<pubDate>Mon, 11 Apr 2011 01:46:16 GMT</pubDate>
<guid>http://snipplr.com/view/51897/retrieve-only-childnodes-that-are-html-elements/</guid>
</item>
<item>
<title>(JavaScript) Find an element higher in the DOM hierarchy - jatkins</title>
<link>http://snipplr.com/view/51182/find-an-element-higher-in-the-dom-hierarchy/</link>
<description><![CDATA[ <p>Released into the public domain. `startElmnt` is a reference to the lower element, e.g. `document.getElementById('tdName')` and `endElmntTagName` is just that (capitalization irrelevant, thanks to [Sitepoint](http://reference.sitepoint.com/javascript/Node/nodeName)), e.g. `TBODY`.</p> ]]></description>
<pubDate>Mon, 28 Mar 2011 00:50:07 GMT</pubDate>
<guid>http://snipplr.com/view/51182/find-an-element-higher-in-the-dom-hierarchy/</guid>
</item>
<item>
<title>(JavaScript) accessing the DOM of a page loaded in an iframe [javascript] [dom] [iframe] [for-twitter] - Thammas</title>
<link>http://snipplr.com/view/50825/accessing-the-dom-of-a-page-loaded-in-an-iframe-javascript-dom-iframe-fortwitter/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 18 Mar 2011 22:43:42 GMT</pubDate>
<guid>http://snipplr.com/view/50825/accessing-the-dom-of-a-page-loaded-in-an-iframe-javascript-dom-iframe-fortwitter/</guid>
</item>
<item>
<title>(JavaScript) Swap child nodes - jatkins</title>
<link>http://snipplr.com/view/50142/swap-child-nodes/</link>
<description><![CDATA[ <p>Released into the public domain. **Update 7/20/2011: Rewritten with a method that shouldn't lose values/selected files/etc. Earlier versions based on a solution found on [Stack Overflow](http://www.stackoverflow.com).**</p> ]]></description>
<pubDate>Sun, 06 Mar 2011 02:08:53 GMT</pubDate>
<guid>http://snipplr.com/view/50142/swap-child-nodes/</guid>
</item>
<item>
<title>(jQuery) Element creation with jQuery - batamire</title>
<link>http://snipplr.com/view/48512/element-creation-with-jquery/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 07 Feb 2011 22:25:34 GMT</pubDate>
<guid>http://snipplr.com/view/48512/element-creation-with-jquery/</guid>
</item>
</channel>
</rss>