<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="http://www.bytemycode.com/rssformat.xsl"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>byteMyCode: Snippets for Name</title>
		<link>http://www.bytemycode.com</link>
		<description>Snippets for this tag.</description>
		<pubDate>Wed, 20 Aug 2008 05:59:23 +0000</pubDate>
		<copyright>1998-2008 </copyright>
		<language>en-us</language>
		<image>
		      <link>http://www.bytemycode.com</link>
		      <url>http://www.bytemycode.com/img/rss_title.gif</url>
		      <title>byteMyCode</title>
		</image>

	<item>
	<title>Accessing the name attribute of a DIV</title>
	<link>http://www.bytemycode.com/snippets/snippet/471/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/471/comments/</comments>
	<pubDate>Tue, 17 Oct 2006 15:25:59 +0000</pubDate>
	<dc:creator>jeremec</dc:creator>
	<category>Attribute, div, JavaScript, Name</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/471/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Tue. Oct. 17th, 2006  3:25 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/471/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_helper.gif" align="middle" class="icon" alt="Helper" /> <a href="http://www.bytemycode.com/members/member/jeremec/" title="Helper">jeremec</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/Attribute">Attribute</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/div">div</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Name">Name</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/471/comments/">7 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> -10
			<p>One way to group elements in HTML is to assign them a <b>name</b> attribute.  Multiple elements can share a name, then you can easily access them as an array using the <b><i>getElementsByName()</i></b> method.<br /><br />The problem is that some DOM parsers aren't keen on, or are ignorant to, this use of the name attribute, so a simple <b><i>object.name</i></b> returns undefined.  In my case, it was a DIV in Firefox 1.5 that was behaving this way.<br /><br />There is a simple work around for this that works in Firefox, I haven't tested it in others.  It is to use the <b><i>getAttribute</i></b> method that is an extension of any element object.<br /><br />This ability can be useful if you have a function that performs a transformation on the active element, and another transformation on closely related elements.</p>
		]]>
	</description>
</item><item>
	<title>Convert a name=value pairs string into array</title>
	<link>http://www.bytemycode.com/snippets/snippet/69/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/69/comments/</comments>
	<pubDate>Wed, 05 Jul 2006 08:15:09 +0000</pubDate>
	<dc:creator>poncho</dc:creator>
	<category>Array, Name, PHP, String, Value</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/69/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Wed. Jul. 5th, 2006  8:15 AM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/69/revisions/">2</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_helper.gif" align="middle" class="icon" alt="Helper" /> <a href="http://www.bytemycode.com/members/member/poncho/" title="Helper">poncho</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/Array">Array</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Name">Name</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/PHP">PHP</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/String">String</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Value">Value</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/69/comments/">3 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 11
			<p>Convert an irregular name=value pair string into a formatted array.</p>
		]]>
	</description>
</item>
	</channel>
</rss>