<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>p2p.wrox.com Forums - Javascript</title>
		<link>http://p2p.wrox.com</link>
		<description>General Javascript discussions.</description>
		<language>en</language>
		<lastBuildDate>Sat, 21 Nov 2009 18:24:18 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://p2p.wrox.com/images/misc/rss.jpg</url>
			<title>p2p.wrox.com Forums - Javascript</title>
			<link>http://p2p.wrox.com</link>
		</image>
		<item>
			<title>For loop</title>
			<link>http://p2p.wrox.com/javascript/76739-loop.html</link>
			<pubDate>Fri, 23 Oct 2009 21:03:08 GMT</pubDate>
			<description><![CDATA[Hi to all...
 
in one of my pages i read data from my DB and display...
i have radio button which the user like select...
 
<input type="radio"...]]></description>
			<content:encoded><![CDATA[<div>Hi to all...<br />
 <br />
in one of my pages i read data from my DB and display...<br />
i have radio button which the user like select...<br />
 <br />
&lt;input type=&quot;radio&quot; id=group0 name=group0 maxlength=1 size=1 value=1&gt;<br />
&lt;input type=&quot;radio&quot; id=group1 name=group1 maxlength=1 size=1 value=1&gt;<br />
...<br />
&lt;input type=&quot;radio&quot; id=group4 name=group4 maxlength=1 size=1 value=1&gt;<br />
 <br />
i have the group ID in a loop do it all depends on how many i have in my DB...<br />
 <br />
my problem is when i send it to my next page with &lt;form action=<br />
 <br />
all my other data that i got from my DB are displayed as the following since i useing the same id=name for them<br />
100109, 100109, 100109, 100109, 100109<br />
1, 1, 2, 1, 2<br />
120, 130, 131, 132, 133<br />
so I do     ArrVarable = Split(variable, &quot;, &quot;)    which creates an array andi know to which one they belong too...<br />
 <br />
with my group ID variables i trying to create a for loop to create a variable like my other one and then i can split it and i'll know which ones they will belong to...<br />
 <br />
For i = 0 To UBound(ArraySKU)<br />
   intIndexID = &quot;group&quot;+Request.form(&quot;i&quot;)<br />
   intIndexID = intIndexID &amp; &quot;,&quot; + &quot;group&quot;+Request.form(&quot;i&quot;)<br />
next<br />
 <br />
my intIndexID is empty???<br />
 <br />
Hope i made it clear...<br />
 <br />
Thanking you in advance...<br />
Rino</div>

]]></content:encoded>
			<category domain="http://p2p.wrox.com/javascript-85/">Javascript</category>
			<dc:creator>RinoDM</dc:creator>
			<guid isPermaLink="true">http://p2p.wrox.com/javascript/76739-loop.html</guid>
		</item>
		<item>
			<title>JS function not seen</title>
			<link>http://p2p.wrox.com/javascript/76718-javascript-function-not-seen.html</link>
			<pubDate>Fri, 23 Oct 2009 05:24:59 GMT</pubDate>
			<description>Hi All,
I have a typical JS rollover menu that is giving me a Object Expected error.
I am not able to tell what the issue is.
I have simplified...</description>
			<content:encoded><![CDATA[<div>Hi All,<br />
I have a typical <acronym title="JavaScript">JS</acronym> rollover menu that is giving me a Object Expected error.<br />
I am not able to tell what the issue is.<br />
I have simplified things a little to test the code.<br />
So on the mouseover i now call a blanc test function with no parameters and the error still occurs.<br />
I'm really not sure how to debug this any further?<br />
The blow snippet is includes the test function and <font color="#ff0000">onmouseover</font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">=&quot;test();&quot; </font></font></font></font><br />
 <br />
<font color="black">The error occuring on the call to the test() function.</font><br />
I would really appreciate any advise.<br />
Best Regards,<br />
Rod<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff"><br />
function</font></font></font></font><font size="2"><font color="#000000"> test()</font><br />
{<br />
alert(</font><font size="2"><font color="#a31515"><font size="2"><font color="#a31515">'boo'</font></font></font></font><font size="2">);<br />
}<br />
</font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">&lt;/</font></font></font></font><font size="2"><font color="#a31515"><font size="2"><font color="#a31515">script</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">&gt;</font></font></font></font><font size="2"><br />
</font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">&lt;</font></font></font></font><font size="2"><font color="#a31515"><font size="2"><font color="#a31515">div</font></font></font></font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">style</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">=&quot;</font></font></font></font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">width</font></font></font></font><font size="2"><font color="#000000">: </font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">760px</font></font></font></font><font size="2"><font color="#000000">; </font></font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">padding</font></font></font></font><font size="2"><font color="#000000">: </font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">0px</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">30px</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">0px</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">16px</font></font></font></font><font size="2"><font color="#000000">;</font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">&quot;&gt;<br />
</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">&lt;</font></font></font></font><font size="2"><font color="#a31515"><font size="2"><font color="#a31515">table</font></font></font></font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">cellpadding</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">=&quot;7&quot;</font></font></font></font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">cellspacing</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">=&quot;7&quot;</font></font></font></font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">style</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">=&quot;</font></font></font></font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">margin-top</font></font></font></font><font size="2">: </font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">-20px</font></font></font></font><font size="2">;</font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">padding-top</font></font></font></font><font size="2">:</font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">10px</font></font></font></font><font size="2">; </font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">padding-right</font></font></font></font><font size="2">:</font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">30px</font></font></font></font><font size="2">;</font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">&quot;</font></font></font></font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">align</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">=&quot;center&quot;</font></font></font></font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">border</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">=&quot;0&quot;</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">&gt;<br />
</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">&lt;</font></font></font></font><font size="2"><font color="#a31515"><font size="2"><font color="#a31515">tr</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">&gt;<br />
</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">&lt;</font></font></font></font><font size="2"><font color="#a31515"><font size="2"><font color="#a31515">td</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">&gt;<br />
</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">&lt;</font></font></font></font><font size="2"><font color="#a31515"><font size="2"><font color="#a31515">a</font></font></font></font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">href</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">=&quot;#&quot;</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">&gt;&lt;</font></font></font></font><font size="2"><font color="#a31515"><font size="2"><font color="#a31515">span</font></font></font></font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">onmouseover</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">=&quot;test();onMouseOverMenu(this);&quot;</font></font></font></font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">onmouseout</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">=&quot;onMouseMenuOut(this);&quot;</font></font></font></font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">class</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">=&quot;mnuItemNormal&quot;&gt;</font></font></font></font><font size="2">Gallery</font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">&lt;/</font></font></font></font><font size="2"><font color="#a31515"><font size="2"><font color="#a31515">span</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">&gt;&lt;/</font></font></font></font><font size="2"><font color="#a31515"><font size="2"><font color="#a31515">a</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">&gt;<br />
</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">&lt;/</font></font></font></font><font size="2"><font color="#a31515"><font size="2"><font color="#a31515">td</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">&gt;<br />
</font></font></font></font></code><hr />
</div>Full Menu Code<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot;&gt;<br />
&nbsp; &nbsp; function onMouseOverMenu(obj)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; obj.className = 'mnuItemOver';<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; function onMouseMenuOut(obj)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; obj.className = 'mnuItemNormal';&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; function test()<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; alert('boo');<br />
&nbsp; &nbsp; }<br />
&lt;/script&gt;&nbsp; &nbsp;  <br />
&lt;div style=&quot;width: 760px; padding: 0px 30px 0px 16px;&quot;&gt;<br />
&nbsp; &nbsp; &lt;table cellpadding=&quot;7&quot; cellspacing=&quot;7&quot; style=&quot;margin-top: -20px;padding-top:10px; padding-right:30px;&quot; align=&quot;center&quot; border=&quot;0&quot; &gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;#&quot; &gt;&lt;span onmouseover=&quot;test();onMouseOverMenu(this);&quot; onmouseout=&quot;onMouseMenuOut(this);&quot; class=&quot;mnuItemNormal&quot;&gt;Gallery&lt;/span&gt;&lt;/a&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;Create.aspx&quot; id=&quot;LightWindowLink&quot; class=&quot;lightwindow&quot; params=&quot;lightwindow_type=external,lightwindow_width=880,lightwindow_height=656&quot;&nbsp; title=&quot;&quot; author=&quot;&quot; caption=&quot;&quot; &gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;span class=&quot;mnuItemNormal&quot; onmouseover=&quot;onMouseOverMenu(this);&quot; onmouseout=&quot;onMouseMenuOut(this);&quot;&gt;Create one&lt;/span&gt;&lt;/a&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td class=&quot;mnuItemNormal&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;<a href="http://jaal.allaboutlife.com.au/Jesus_has_Answer.aspx" target="_blank">http://jaal.allaboutlife.com.au/Jesus_has_Answer.aspx</a>&quot; class=&quot;mnuItemNormal&quot; target=&quot;_parent&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;span onmouseover=&quot;onMouseOverMenu(this);&quot; onmouseout=&quot;onMouseMenuOut(this);&quot;&nbsp; class=&quot;mnuItemNormal&quot;&gt; View TV ad&lt;/span&gt;&lt;/a&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td class=&quot;mnuItemNormal&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;<a href="http://jaal.allaboutlife.com.au/whoisjesus.aspx" target="_blank">http://jaal.allaboutlife.com.au/whoisjesus.aspx</a>&quot; class=&quot;mnuItemNormal&quot; target=&quot;_parent&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;span class=&quot;mnuItemNormal&quot; onmouseover=&quot;onMouseOverMenu(this);&quot; onmouseout=&quot;onMouseMenuOut(this);&quot;&gt;Who is Jesus&lt;/span&gt;&lt;/a&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td class=&quot;mnuItemNormal&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;<a href="http://jaal.allaboutlife.com.au/OrdertheGospelofMark.aspx" target="_blank">http://jaal.allaboutlife.com.au/Orde...pelofMark.aspx</a>&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; target=&quot;_parent&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;span class=&quot;mnuItemNormal&quot; onmouseover=&quot;onMouseOverMenu(this);&quot; onmouseout=&quot;onMouseMenuOut(this);&quot;&gt;Gospel Mark&lt;/span&gt;&lt;/a&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td class=&quot;mnuItemNormal&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;<a href="http://jaal.allaboutlife.com.au/whats_on.aspx" target="_blank">http://jaal.allaboutlife.com.au/whats_on.aspx</a>&quot; target=&quot;_parent&quot; &gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;span onmouseover=&quot;onMouseOverMenu(this);&quot; onmouseout=&quot;onMouseMenuOut(this);&quot; class=&quot;mnuItemNormal&quot;&gt;What's On&lt;/span&gt;&lt;/a&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &lt;/table&gt;<br />
&lt;/div&gt;</code><hr />
</div></div>

]]></content:encoded>
			<category domain="http://p2p.wrox.com/javascript-85/">Javascript</category>
			<dc:creator>rodmcleay</dc:creator>
			<guid isPermaLink="true">http://p2p.wrox.com/javascript/76718-javascript-function-not-seen.html</guid>
		</item>
	</channel>
</rss>
