<?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>CodeGuru Forums - Scripting - Client Side</title>
		<link>http://forums.codeguru.com</link>
		<description>Discuss client-side scripting issues. Client-side scripting such as JavaScript, JScript, and VBScript as well as technologies such as HTML and stylesheets.</description>
		<language>en</language>
		<lastBuildDate>Wed, 16 May 2012 13:48:23 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://forums.codeguru.com/images/misc/rss.jpg</url>
			<title>CodeGuru Forums - Scripting - Client Side</title>
			<link>http://forums.codeguru.com</link>
		</image>
		<item>
			<title>CSS Problem overlay div</title>
			<link>http://forums.codeguru.com/showthread.php?t=523789&amp;goto=newpost</link>
			<pubDate>Tue, 15 May 2012 08:00:16 GMT</pubDate>
			<description><![CDATA[Hi, I'm making a weekly planner, with a div for every description event.
On click on event, a balloon with its details becomes visible.

I illustrate the problem with this image:
Image: http://i50.tinypic.com/8ze5qt.gif 

The below balloon is displayed correctly because the relative event div was created AFTER the event than overlapping.
Unlike the above balloon, is overlapped by the other events, because they were loaded after that.

I would that in any case, the balloon div will overlap with any event div.
I tried setting the z-index, but does not work.

If it can be useful to place the css event and the comic:

Code:
---------
.weekEvent{
	position:absolute;
	background-color:#FFF;
	border:1px solid #000;
	z-index:1000;
}
.balloon{
        position:absolute;
	border:1px solid #000;
	left:100px;
	top: 80px;
	width:200px; 
	height:auto;
	font-size:0.7em;
	padding:1px;
	background-color:#F6DBA2;
        display : block;
        z-index:100000;
}
---------
 
Of course the balloon div is contained in week event
What's wrong?
thanks]]></description>
			<content:encoded><![CDATA[<div>Hi, I'm making a weekly planner, with a div for every description event.<br />
On click on event, a balloon with its details becomes visible.<br />
<br />
I illustrate the problem with this image:<br />
<img src="http://i50.tinypic.com/8ze5qt.gif" border="0" alt="" /><br />
<br />
The below balloon is displayed correctly because the relative event div was created AFTER the event than overlapping.<br />
Unlike the above balloon, is overlapped by the other events, because they were loaded after that.<br />
<br />
I would that in any case, the balloon div will overlap with any event div.<br />
I tried setting the z-index, but does not work.<br />
<br />
If it can be useful to place the css event and the comic:<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">.weekEvent{<br />
&nbsp; &nbsp; &nbsp; &nbsp; position:absolute;<br />
&nbsp; &nbsp; &nbsp; &nbsp; background-color:#FFF;<br />
&nbsp; &nbsp; &nbsp; &nbsp; border:1px solid #000;<br />
&nbsp; &nbsp; &nbsp; &nbsp; z-index:1000;<br />
}<br />
.balloon{<br />
&nbsp; &nbsp; &nbsp; &nbsp; position:absolute;<br />
&nbsp; &nbsp; &nbsp; &nbsp; border:1px solid #000;<br />
&nbsp; &nbsp; &nbsp; &nbsp; left:100px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; top: 80px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; width:200px; <br />
&nbsp; &nbsp; &nbsp; &nbsp; height:auto;<br />
&nbsp; &nbsp; &nbsp; &nbsp; font-size:0.7em;<br />
&nbsp; &nbsp; &nbsp; &nbsp; padding:1px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; background-color:#F6DBA2;<br />
&nbsp; &nbsp; &nbsp; &nbsp; display : block;<br />
&nbsp; &nbsp; &nbsp; &nbsp; z-index:100000;<br />
}</code><hr />
</div>Of course the balloon div is contained in week event<br />
What's wrong?<br />
thanks</div>

]]></content:encoded>
			<category domain="http://forums.codeguru.com/forumdisplay.php?f=8">Scripting - Client Side</category>
			<dc:creator>tonyhef</dc:creator>
			<guid isPermaLink="true">http://forums.codeguru.com/showthread.php?t=523789</guid>
		</item>
		<item>
			<title>JavaScript Function to load page</title>
			<link>http://forums.codeguru.com/showthread.php?t=523608&amp;goto=newpost</link>
			<pubDate>Tue, 08 May 2012 03:19:33 GMT</pubDate>
			<description><![CDATA[Hello,

I am using the following code:


Code:
---------
function test()
{
location.href = "home.htm" ;
}
---------
I want to use a function to load a page (which above is working) but I want to have a class part of the URL.

I know I can use a link on the page like:

Code:
---------
 
<a href="page.html" class="first">Link text</a>
---------
But I want to include *class="first"* part of the javascript function.

Any ideas?]]></description>
			<content:encoded><![CDATA[<div>Hello,<br />
<br />
I am using the following code:<br />
<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">function test()<br />
{<br />
location.href = &quot;home.htm&quot; ;<br />
}</code><hr />
</div>I want to use a function to load a page (which above is working) but I want to have a class part of the URL.<br />
<br />
I know I can use a link on the page like:<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"> <br />
&lt;a href=&quot;page.html&quot; class=&quot;first&quot;&gt;Link text&lt;/a&gt;</code><hr />
</div>But I want to include <b>class=&quot;first&quot;</b> part of the javascript function.<br />
<br />
Any ideas?</div>

]]></content:encoded>
			<category domain="http://forums.codeguru.com/forumdisplay.php?f=8">Scripting - Client Side</category>
			<dc:creator>aaronking</dc:creator>
			<guid isPermaLink="true">http://forums.codeguru.com/showthread.php?t=523608</guid>
		</item>
		<item>
			<title>JavaScript JavaScript XMLHttpRequest</title>
			<link>http://forums.codeguru.com/showthread.php?t=523557&amp;goto=newpost</link>
			<pubDate>Sat, 05 May 2012 11:02:48 GMT</pubDate>
			<description><![CDATA[Hello,

I am having problems trying to get a field from a XML file.

I can load the XML file into my browser and display it as a string but have looked everywhere and can't seem to get a value from the XML file.

I need to be able to do this client-side (no server-side scripting)

I am trying to display the current temp etc as a variable
<w:current temperature="13.5" dewPoint="8.5" humidity="72" windSpeed="7.4" windGusts="9.3" windDirection="WSW" pressure="1019.9" rain="1.6" />


My JavaScript code looks like the following:

Code:
---------
if (window.XMLHttpRequest)
   {// code for IE7+, Firefox, Chrome, Opera, Safari
   xmlhttp=new XMLHttpRequest();
   }
 else
   {// code for IE6, IE5
   xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
   }
 xmlhttp.open("GET",data,false);
 xmlhttp.send();
 xmlDoc=xmlhttp.responseXML;
 
 alert(xmlDoc.getElementsByTagName("w:current")[0].childNodes[0].nodeValue);
---------
My XML file:


Code:
---------
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Weather.com.au RSS Feed must be used in accordance with the terms and conditions listed at http://www.weather.com.au/about/rss -->
<rss version="2.0" xmlns:w="http://rss.weather.com.au/w.dtd">
	<channel>
		<title>Weather.com.au - Melbourne Weather</title>
		<link>http://www.weather.com.au/vic/melbourne</link>
		<description>Current conditions and forecast for Melbourne, Victoria.</description>
		<language>en-au</language>
		<copyright>Copyright 2012 - Weather.com.au Pty Ltd</copyright>
		<pubDate>Sat, 05 May 2012 10:30:00 GMT</pubDate>
		<lastBuildDate>Sat, 05 May 2012 10:30:00 GMT</lastBuildDate>
		<ttl>15</ttl>
		<item>
			<title>Melbourne Current Conditions</title>
			<link>http://www.weather.com.au/vic/melbourne/current</link>
			<description>
				«![CDATA[
					<b>Temperature:</b> 13.5&deg;C<br />
					<b>Dew Point:</b> 8.5&deg;C<br />
					<b>Relative Humidity:</b> 72%<br />
					<b>Wind Speed:</b> 7.4km/h<br />
					<b>Wind Gusts:</b> 9.3km/h<br />
					<b>Wind Direction:</b> WSW<br />
					<b>Pressure:</b> 1019.9hPa<br />
					<b>Rain Since 9AM:</b> 1.6mm<br />
				]]»
			</description>
			<pubDate>Sat, 05 May 2012 10:30:00 GMT</pubDate>
			<guid isPermaLink="false">C1336213800</guid>
			<w:current temperature="13.5" dewPoint="8.5" humidity="72" windSpeed="7.4" windGusts="9.3" windDirection="WSW" pressure="1019.9" rain="1.6" />
		</item>
		<item>
			<title>Melbourne Forecast</title>
			<link>http://www.weather.com.au/vic/melbourne</link>
			<description>
				«![CDATA[
					<p>
						<b>Sunday:</b><br />
						<img src="http://www.weather.com.au/images/icons/4.gif" alt="Partly Cloudy" /><br />
						Partly Cloudy. Mild.<br />
						8 - 17<br />
					</p>
					<p>
						<b>Monday:</b><br />
						<img src="http://www.weather.com.au/images/icons/18.gif" alt="Light Rain Early" /><br />
						Light Rain Early. Clearing Skies. Mild.<br />
						8 - 17<br />
					</p>
					<p>
						<b>Tuesday:</b><br />
						<img src="http://www.weather.com.au/images/icons/1.gif" alt="Sunny" /><br />
						Sunny. Mild.<br />
						10 - 22<br />
					</p>
				]]»
			</description>
			<pubDate>Sat, 05 May 2012 10:30:00 GMT</pubDate>
			<guid isPermaLink="false">F1336213800</guid>
			<w:forecast day="Sunday" description="Partly Cloudy. Mild." min="8" max="17" icon="4" iconUri="http://www.weather.com.au/images/icons/4.gif" iconAlt="Partly Cloudy" />
			<w:forecast day="Monday" description="Light Rain Early. Clearing Skies. Mild." min="8" max="17" icon="18" iconUri="http://www.weather.com.au/images/icons/18.gif" iconAlt="Light Rain Early" />
			<w:forecast day="Tuesday" description="Sunny. Mild." min="10" max="22" icon="1" iconUri="http://www.weather.com.au/images/icons/1.gif" iconAlt="Sunny" />
		</item>
	</channel>
</rss>
---------
]]></description>
			<content:encoded><![CDATA[<div>Hello,<br />
<br />
I am having problems trying to get a field from a XML file.<br />
<br />
I can load the XML file into my browser and display it as a string but have looked everywhere and can't seem to get a value from the XML file.<br />
<br />
I need to be able to do this client-side (no server-side scripting)<br />
<br />
I am trying to display the current temp etc as a variable<br />
&lt;w:current temperature=&quot;13.5&quot; dewPoint=&quot;8.5&quot; humidity=&quot;72&quot; windSpeed=&quot;7.4&quot; windGusts=&quot;9.3&quot; windDirection=&quot;WSW&quot; pressure=&quot;1019.9&quot; rain=&quot;1.6&quot; /&gt;<br />
<br />
<br />
My JavaScript code looks like the following:<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">if (window.XMLHttpRequest)<br />
&nbsp;  {// code for IE7+, Firefox, Chrome, Opera, Safari<br />
&nbsp;  xmlhttp=new XMLHttpRequest();<br />
&nbsp;  }<br />
&nbsp;else<br />
&nbsp;  {// code for IE6, IE5<br />
&nbsp;  xmlhttp=new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);<br />
&nbsp;  }<br />
&nbsp;xmlhttp.open(&quot;GET&quot;,data,false);<br />
&nbsp;xmlhttp.send();<br />
&nbsp;xmlDoc=xmlhttp.responseXML;<br />
&nbsp;<br />
&nbsp;alert(xmlDoc.getElementsByTagName(&quot;w:current&quot;)[0].childNodes[0].nodeValue);</code><hr />
</div>My XML file:<br />
<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;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt;<br />
&lt;!-- Weather.com.au RSS Feed must be used in accordance with the terms and conditions listed at http://www.weather.com.au/about/rss --&gt;<br />
&lt;rss version=&quot;2.0&quot; xmlns:w=&quot;http://rss.weather.com.au/w.dtd&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;channel&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;title&gt;Weather.com.au - Melbourne Weather&lt;/title&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;link&gt;http://www.weather.com.au/vic/melbourne&lt;/link&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;description&gt;Current conditions and forecast for Melbourne, Victoria.&lt;/description&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;language&gt;en-au&lt;/language&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;copyright&gt;Copyright 2012 - Weather.com.au Pty Ltd&lt;/copyright&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;pubDate&gt;Sat, 05 May 2012 10:30:00 GMT&lt;/pubDate&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lastBuildDate&gt;Sat, 05 May 2012 10:30:00 GMT&lt;/lastBuildDate&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;ttl&gt;15&lt;/ttl&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;item&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;title&gt;Melbourne Current Conditions&lt;/title&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;link&gt;http://www.weather.com.au/vic/melbourne/current&lt;/link&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;description&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;![CDATA[<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;b&gt;Temperature:&lt;/b&gt; 13.5&amp;deg;C&lt;br /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;b&gt;Dew Point:&lt;/b&gt; 8.5&amp;deg;C&lt;br /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;b&gt;Relative Humidity:&lt;/b&gt; 72%&lt;br /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;b&gt;Wind Speed:&lt;/b&gt; 7.4km/h&lt;br /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;b&gt;Wind Gusts:&lt;/b&gt; 9.3km/h&lt;br /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;b&gt;Wind Direction:&lt;/b&gt; WSW&lt;br /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;b&gt;Pressure:&lt;/b&gt; 1019.9hPa&lt;br /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;b&gt;Rain Since 9AM:&lt;/b&gt; 1.6mm&lt;br /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ]]&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/description&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;pubDate&gt;Sat, 05 May 2012 10:30:00 GMT&lt;/pubDate&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;guid isPermaLink=&quot;false&quot;&gt;C1336213800&lt;/guid&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;w:current temperature=&quot;13.5&quot; dewPoint=&quot;8.5&quot; humidity=&quot;72&quot; windSpeed=&quot;7.4&quot; windGusts=&quot;9.3&quot; windDirection=&quot;WSW&quot; pressure=&quot;1019.9&quot; rain=&quot;1.6&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/item&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;item&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;title&gt;Melbourne Forecast&lt;/title&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;link&gt;http://www.weather.com.au/vic/melbourne&lt;/link&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;description&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;![CDATA[<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;b&gt;Sunday:&lt;/b&gt;&lt;br /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;img src=&quot;http://www.weather.com.au/images/icons/4.gif&quot; alt=&quot;Partly Cloudy&quot; /&gt;&lt;br /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Partly Cloudy. Mild.&lt;br /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 8 - 17&lt;br /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/p&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;b&gt;Monday:&lt;/b&gt;&lt;br /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;img src=&quot;http://www.weather.com.au/images/icons/18.gif&quot; alt=&quot;Light Rain Early&quot; /&gt;&lt;br /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Light Rain Early. Clearing Skies. Mild.&lt;br /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 8 - 17&lt;br /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/p&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;b&gt;Tuesday:&lt;/b&gt;&lt;br /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;img src=&quot;http://www.weather.com.au/images/icons/1.gif&quot; alt=&quot;Sunny&quot; /&gt;&lt;br /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Sunny. Mild.&lt;br /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 10 - 22&lt;br /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/p&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ]]&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/description&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;pubDate&gt;Sat, 05 May 2012 10:30:00 GMT&lt;/pubDate&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;guid isPermaLink=&quot;false&quot;&gt;F1336213800&lt;/guid&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;w:forecast day=&quot;Sunday&quot; description=&quot;Partly Cloudy. Mild.&quot; min=&quot;8&quot; max=&quot;17&quot; icon=&quot;4&quot; iconUri=&quot;http://www.weather.com.au/images/icons/4.gif&quot; iconAlt=&quot;Partly Cloudy&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;w:forecast day=&quot;Monday&quot; description=&quot;Light Rain Early. Clearing Skies. Mild.&quot; min=&quot;8&quot; max=&quot;17&quot; icon=&quot;18&quot; iconUri=&quot;http://www.weather.com.au/images/icons/18.gif&quot; iconAlt=&quot;Light Rain Early&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;w:forecast day=&quot;Tuesday&quot; description=&quot;Sunny. Mild.&quot; min=&quot;10&quot; max=&quot;22&quot; icon=&quot;1&quot; iconUri=&quot;http://www.weather.com.au/images/icons/1.gif&quot; iconAlt=&quot;Sunny&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/item&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/channel&gt;<br />
&lt;/rss&gt;</code><hr />
</div></div>

]]></content:encoded>
			<category domain="http://forums.codeguru.com/forumdisplay.php?f=8">Scripting - Client Side</category>
			<dc:creator>aaronking</dc:creator>
			<guid isPermaLink="true">http://forums.codeguru.com/showthread.php?t=523557</guid>
		</item>
		<item>
			<title>JavaScript Combobox text change</title>
			<link>http://forums.codeguru.com/showthread.php?t=523492&amp;goto=newpost</link>
			<pubDate>Thu, 03 May 2012 07:58:33 GMT</pubDate>
			<description><![CDATA[Hello,

I have the following code:


Code:
---------
<select id="myList">
   <option value="option1">Bob</option>
   <option value="option2">Harry</option>
   <option value="option3">Tom</option>
   <option value="option4">Jack</option>
 </select>
---------
I want to be able to select a index/option value from the select tag such as *Tom* from the list and be able to change it using javascript.

Anyone able to help?]]></description>
			<content:encoded><![CDATA[<div>Hello,<br />
<br />
I have the following code:<br />
<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;select id=&quot;myList&quot;&gt;<br />
&nbsp;  &lt;option value=&quot;option1&quot;&gt;Bob&lt;/option&gt;<br />
&nbsp;  &lt;option value=&quot;option2&quot;&gt;Harry&lt;/option&gt;<br />
&nbsp;  &lt;option value=&quot;option3&quot;&gt;Tom&lt;/option&gt;<br />
&nbsp;  &lt;option value=&quot;option4&quot;&gt;Jack&lt;/option&gt;<br />
&nbsp;&lt;/select&gt;</code><hr />
</div>I want to be able to select a index/option value from the select tag such as <b>Tom</b> from the list and be able to change it using javascript.<br />
<br />
Anyone able to help?</div>

]]></content:encoded>
			<category domain="http://forums.codeguru.com/forumdisplay.php?f=8">Scripting - Client Side</category>
			<dc:creator>aaronking</dc:creator>
			<guid isPermaLink="true">http://forums.codeguru.com/showthread.php?t=523492</guid>
		</item>
		<item>
			<title>JavaScript Checkboxs</title>
			<link>http://forums.codeguru.com/showthread.php?t=523458&amp;goto=newpost</link>
			<pubDate>Wed, 02 May 2012 00:45:07 GMT</pubDate>
			<description><![CDATA[Hello,

I am having a problem with some checkboxs

what I have is a page with 17 checkboxs.

as per below:

[1]     [2]      [3]
[4]     [5]      [6]
[7]     [8]      [9]
[10]   [11]   [12]

[13]
[14]
[15]
[16]
[17]

The problem I have is..

A user can only select one check box on the left (1,4,7,10,13,14,15,16,17).

If a user selects any other checkbox then the ones on the left need to be unchecked.

A user can select 2,3 together 5,6 together 8,9 together, 11,12 together. (or only select one of them)

However, you can't select 2,5 together etc. (needs to be in the same line)

I need to be able to untick a box if the user wants to untick it.

Anyone able to help?]]></description>
			<content:encoded><![CDATA[<div>Hello,<br />
<br />
I am having a problem with some checkboxs<br />
<br />
what I have is a page with 17 checkboxs.<br />
<br />
as per below:<br />
<br />
[1]     [2]      [3]<br />
[4]     [5]      [6]<br />
[7]     [8]      [9]<br />
[10]   [11]   [12]<br />
<br />
[13]<br />
[14]<br />
[15]<br />
[16]<br />
[17]<br />
<br />
The problem I have is..<br />
<br />
A user can only select one check box on the left (1,4,7,10,13,14,15,16,17).<br />
<br />
If a user selects any other checkbox then the ones on the left need to be unchecked.<br />
<br />
A user can select 2,3 together 5,6 together 8,9 together, 11,12 together. (or only select one of them)<br />
<br />
However, you can't select 2,5 together etc. (needs to be in the same line)<br />
<br />
I need to be able to untick a box if the user wants to untick it.<br />
<br />
Anyone able to help?</div>

]]></content:encoded>
			<category domain="http://forums.codeguru.com/forumdisplay.php?f=8">Scripting - Client Side</category>
			<dc:creator>aaronking</dc:creator>
			<guid isPermaLink="true">http://forums.codeguru.com/showthread.php?t=523458</guid>
		</item>
		<item>
			<title>JavaScript tying to scroll to a dinamically created tag in innerHtml</title>
			<link>http://forums.codeguru.com/showthread.php?t=523317&amp;goto=newpost</link>
			<pubDate>Fri, 27 Apr 2012 02:58:06 GMT</pubDate>
			<description><![CDATA[so basically I am scanning some text for a match and then when i find a match I'm putting some highlight tags around that word using innerHtml, but i also want to be able to scroll the browser to that word in case it is a large web page

here's my code:


Code:
---------
var highlightStartTag = "<font id=\"highlight\" style='color:blue; background-color:yellow;'>";
var highlightEndTag = "</font>";


for(var i = 1; i < text.length; i++){
state = match(pattern, text.substring(i,i+(pattern.length)));
   if( state == 0){
      scndText += text.substring(lastIndx,i) + highlightStartTag + text.substring(i,i+(pattern.length)) +   highlightEndTag;
      newText = scndText + text.substring(i+(pattern.length), text.length);
      document.getElementById('scnTxt').innerHTML = newText;
   }
}
---------
on the highlight tags i am including an id but when a do something like:

Code:
---------
document.getElementById('highlight');
---------
 
I'm just not able to find anything, my guess is that getElementById It only looks at the hard coded html and not at the dynamically generated one

so is it even possible to somehow get an element that was generated dynamically?, am i using the right approach here?]]></description>
			<content:encoded><![CDATA[<div>so basically I am scanning some text for a match and then when i find a match I'm putting some highlight tags around that word using innerHtml, but i also want to be able to scroll the browser to that word in case it is a large web page<br />
<br />
here's my code:<br />
<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">var highlightStartTag = &quot;&lt;font id=\&quot;highlight\&quot; style='color:blue; background-color:yellow;'&gt;&quot;;<br />
var highlightEndTag = &quot;&lt;/font&gt;&quot;;<br />
<br />
<br />
for(var i = 1; i &lt; text.length; i++){<br />
state = match(pattern, text.substring(i,i+(pattern.length)));<br />
&nbsp;  if( state == 0){<br />
&nbsp; &nbsp; &nbsp; scndText += text.substring(lastIndx,i) + highlightStartTag + text.substring(i,i+(pattern.length)) +&nbsp;  highlightEndTag;<br />
&nbsp; &nbsp; &nbsp; newText = scndText + text.substring(i+(pattern.length), text.length);<br />
&nbsp; &nbsp; &nbsp; document.getElementById('scnTxt').innerHTML = newText;<br />
&nbsp;  }<br />
}</code><hr />
</div>on the highlight tags i am including an id but when a do something like:<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">document.getElementById('highlight');</code><hr />
</div>I'm just not able to find anything, my guess is that getElementById It only looks at the hard coded html and not at the dynamically generated one<br />
<br />
so is it even possible to somehow get an element that was generated dynamically?, am i using the right approach here?</div>

]]></content:encoded>
			<category domain="http://forums.codeguru.com/forumdisplay.php?f=8">Scripting - Client Side</category>
			<dc:creator>mrjavoman</dc:creator>
			<guid isPermaLink="true">http://forums.codeguru.com/showthread.php?t=523317</guid>
		</item>
		<item>
			<title>JavaScript XML and Cookies</title>
			<link>http://forums.codeguru.com/showthread.php?t=523152&amp;goto=newpost</link>
			<pubDate>Sun, 22 Apr 2012 05:13:40 GMT</pubDate>
			<description><![CDATA[Hello,

Just wondering if you can store a XML file into a Cookie?

I have the following code:

Code:
---------
function setCookie(c_name,value,exdays)
 {
 var exdate=new Date();
 exdate.setDate(exdate.getDate() + exdays);
 var c_value=escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString());
 document.cookie=c_name + "=" + c_value;
 }
---------
just wondering if you can store a XML file into a cookie so that I can load the whole xml file from the cookie rather than loading the XML file again?

Anyone able to help?]]></description>
			<content:encoded><![CDATA[<div>Hello,<br />
<br />
Just wondering if you can store a XML file into a Cookie?<br />
<br />
I have the following 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">function setCookie(c_name,value,exdays)<br />
&nbsp;{<br />
&nbsp;var exdate=new Date();<br />
&nbsp;exdate.setDate(exdate.getDate() + exdays);<br />
&nbsp;var c_value=escape(value) + ((exdays==null) ? &quot;&quot; : &quot;; expires=&quot;+exdate.toUTCString());<br />
&nbsp;document.cookie=c_name + &quot;=&quot; + c_value;<br />
&nbsp;}</code><hr />
</div>just wondering if you can store a XML file into a cookie so that I can load the whole xml file from the cookie rather than loading the XML file again?<br />
<br />
Anyone able to help?</div>

]]></content:encoded>
			<category domain="http://forums.codeguru.com/forumdisplay.php?f=8">Scripting - Client Side</category>
			<dc:creator>aaronking</dc:creator>
			<guid isPermaLink="true">http://forums.codeguru.com/showthread.php?t=523152</guid>
		</item>
		<item>
			<title>JavaScript Script working in IE not FF</title>
			<link>http://forums.codeguru.com/showthread.php?t=523143&amp;goto=newpost</link>
			<pubDate>Sat, 21 Apr 2012 16:30:02 GMT</pubDate>
			<description><![CDATA[Not a JS guru, so can someone tell me why the following works on a .net aspx page in Javascript for IE, but no FF?


Code:
---------
            getAge = function(form) {
                document.getElementById('txtDOB').value = ((document.getElementById('txtDOB').value).replace(new RegExp("/", "g"), "-"));
                var now = new Date();
                var DOB = new Date(document.getElementById('txtDOB').value);
                var oneDay = 1000 * 60 * 60 * 24 * 365; //converts from milliseconds
                document.getElementById('txtAge').value = parseInt((now.getTime() - DOB.getTime()) / oneDay);
            }


<asp:TextBox ID="txtDOB" runat="server" onkeyup="java_script:getAge(this.form);" onkeydown="java_script:getAge(this.form);" />
---------
]]></description>
			<content:encoded><![CDATA[<div>Not a JS guru, so can someone tell me why the following works on a .net aspx page in Javascript for IE, but no FF?<br />
<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">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; getAge = function(form) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.getElementById('txtDOB').value = ((document.getElementById('txtDOB').value).replace(new RegExp(&quot;/&quot;, &quot;g&quot;), &quot;-&quot;));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var now = new Date();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var DOB = new Date(document.getElementById('txtDOB').value);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var oneDay = 1000 * 60 * 60 * 24 * 365; //converts from milliseconds<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.getElementById('txtAge').value = parseInt((now.getTime() - DOB.getTime()) / oneDay);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
<br />
&lt;asp:TextBox ID=&quot;txtDOB&quot; runat=&quot;server&quot; onkeyup=&quot;javascript<b></b>:getAge(this.form);&quot; onkeydown=&quot;javascript<b></b>:getAge(this.form);&quot; /&gt;</code><hr />
</div></div>

]]></content:encoded>
			<category domain="http://forums.codeguru.com/forumdisplay.php?f=8">Scripting - Client Side</category>
			<dc:creator>janetb</dc:creator>
			<guid isPermaLink="true">http://forums.codeguru.com/showthread.php?t=523143</guid>
		</item>
	</channel>
</rss>

