<?xml version="1.0" encoding="utf-8"?>

<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>DaniWeb IT Discussion Community - JavaScript / DHTML / AJAX</title>
		<link>http://www.daniweb.com/forums/</link>
		<description><![CDATA[Our JS / DHTML / AJAX forum is the place for Q&A-style discussions related to clientside scripting languages (that are executed by a web browser instead of on the server's end). Note we have a separate HTML and CSS forum, within our Web Design sub-category, for markup languages.]]></description>
		<language>en-US</language>
		<lastBuildDate>Sat, 21 Nov 2009 02:48:47 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.daniweb.com/alphaimages/misc/rss.jpg</url>
			<title>DaniWeb IT Discussion Community - JavaScript / DHTML / AJAX</title>
			<link>http://www.daniweb.com/forums/</link>
		</image>
		<item>
			<title>Need a little help with delivery date</title>
			<link>http://www.daniweb.com/forums/thread240104.html</link>
			<pubDate>Fri, 20 Nov 2009 22:09:25 GMT</pubDate>
			<description>the problem I am having is in getting my page to produce an expected delivery date. The calculation function is working fine. I want to use the same id to figure out when the product will be delivered. I know my second set of if statements is wrong but I cant figure out how to take my current date...</description>
			<content:encoded><![CDATA[<div>the problem I am having is in getting my page to produce an expected delivery date. The calculation function is working fine. I want to use the same id to figure out when the product will be delivered. I know my second set of if statements is wrong but I cant figure out how to take my current date and add days to it and have it output the delivery date. This is not a homework assignment. It is a practice for our final and I know the instructor is going to include it. Any help will be appreciated.<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;<br />
&nbsp;<br />
&lt;HTML&gt;&lt;HEAD&gt;&lt;TITLE&gt;New Page 1&lt;/TITLE&gt;<br />
&lt;META http-equiv=Content-Language content=en-us&gt;<br />
&lt;META HTTP-EQUIV=&quot;Content-Type&quot; CONTENT=&quot;text/html; charset=iso-8859-1&quot;&gt;<br />
&lt;META content=&quot;MSHTML 6.00.2900.3492&quot; name=GENERATOR&gt;<br />
&lt;META content=FrontPage.Editor.Document name=ProgId&gt;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&lt;script&gt; <br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; //function getTax()<br />
&nbsp; &nbsp; &nbsp; &nbsp; //{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //alert(&quot;get tax function&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; //}<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; function calculatePrice()<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //alert(&quot;inside calculate price&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var inPrice = parseFloat( document.getElementById(&quot;price&quot;).value);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //alert(inPrice);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var inQuantity = (document.getElementById(&quot;quantity&quot;).value);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //alert(inQuantity);&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var shipping = parseFloat( document.getElementById(&quot;shipping&quot;).value);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var inTax = parseFloat( document.getElementById(&quot;state&quot;).value);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //alert(inTax);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var state;&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var totalPrice;&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //alert(document.getElementById(&quot;state&quot;).selectedIndex);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(document.getElementById(&quot;state&quot;).selectedIndex==0)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; state = 0.06;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //document.getElementById(&quot;state&quot;).option[0].value;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  // alert(&quot;Iowa 0.06&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(document.getElementById(&quot;state&quot;).selectedIndex==1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; state = 0.085;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //alert(&quot;Illinois 0.085&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(document.getElementById(&quot;state&quot;).selectedIndex==2)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; state = 0.7;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //alert(&quot;Indiana 0.7&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(document.getElementById(&quot;state&quot;).selectedIndex==3)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; state = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //alert(&quot;Other&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var shipping = parseFloat( document.getElementById(&quot;shipping&quot;).value);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //alert(shipping);&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(document.getElementById(&quot;shipping&quot;).selectedIndex==0)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; shipping = 0.02;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //alert(&quot;standard ups 0.02&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(document.getElementById(&quot;shipping&quot;).selectedIndex==1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; shipping = 0.01;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //alert(&quot;US Mail 0.01&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(document.getElementById(&quot;shipping&quot;).selectedIndex==2)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; shipping = 0.05;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //alert(&quot;Overnight 0.05&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(document.getElementById(&quot;shipping&quot;).selectedIndex==3)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; shipping = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //alert(&quot;Pick up no charge&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  inTax = inPrice * state ;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  //alert(inTax);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  totalPrice = inTax + (inPrice * shipping) + inPrice ;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  document.getElementById(&quot;total&quot;).value = totalPrice;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  //alert(&quot;intax&quot; + inTax + &quot;qty&quot; + inQuantity + &quot;del&quot; + shipping)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  var now = new date()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  var expectedDate <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(document.getElementById(&quot;shipping&quot;).selectedIndex==0)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  now + 3;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //document.getElementById(&quot;state&quot;).option[0].value;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;option 1&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(document.getElementById(&quot;shipping&quot;).selectedIndex==1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  now + 5;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;option 2&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(document.getElementById(&quot;shipping&quot;).selectedIndex==2)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  now + 1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;option 3&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(document.getElementById(&quot;shipping&quot;).selectedIndex==3)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  now;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;get it yourself&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.getElementById(&quot;delivery&quot;).value = ExpectedDate;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&lt;/script&gt;<br />
&lt;/HEAD&gt;<br />
&lt;BODY text=#330000 bgColor=#00ccff ;&gt;<br />
&lt;H1 align=center&gt;Calculate Your Order&lt;/H1&gt;<br />
&lt;FORM name=frmProd&nbsp; method=GET&gt;<br />
&lt;P&gt;Price: &lt;input type=&quot;text&quot; name=&quot;price&quot; value=&quot;&quot; id=&quot;price&quot; /&gt;&lt;/P&gt;<br />
&lt;P&gt;Quantity: &lt;SELECT size=1 type=&quot;text&quot; name=&quot;quantity&quot; id=&quot;quantity&quot; /&gt; &lt;OPTION value=1 selected&gt;1&lt;/OPTION&gt; <br />
&nbsp; &nbsp;  &lt;OPTION value=2&gt;2&lt;/OPTION&gt; &lt;OPTION value=3&gt;3&lt;/OPTION&gt; &amp;nbsp;&lt;/SELECT&gt;&lt;/P&gt;<br />
&lt;P&gt;State: &lt;SELECT size=1 type = &quot;text&quot; name=&quot;state&quot; id = &quot;state&quot;&nbsp; onChange =&quot;getTax()&quot;/&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;OPTION selected value=0.06&gt;Iowa&lt;/OPTION&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;OPTION value=0.085 &gt;Illinois&lt;/OPTION&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &lt;OPTION value=0.7&gt;Indiana&lt;/OPTION&gt; <br />
&nbsp; &nbsp; &lt;OPTION&nbsp; value=0&gt;Other&lt;/OPTION&gt; &amp;nbsp;&lt;/SELECT&gt;&lt;/P&gt;<br />
&lt;P&gt;Delivery &lt;SELECT size=1 name=shipping id=&quot;shipping&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;OPTION value=0.02 selected&gt;Standard UPS - 3 Days&lt;/OPTION&gt;&nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &lt;OPTION value=0.01&gt;US Mail - 5 Days&lt;/OPTION&gt;<br />
&nbsp; &nbsp; &lt;OPTION value=0.05&gt;Overnight - 1 Day&lt;/OPTION&gt; <br />
&nbsp; &nbsp; &lt;OPTION value=0&gt;Pickup&lt;/OPTION&gt;<br />
&nbsp;  &lt;/SELECT&gt;&lt;BR&gt;Method:&lt;/P&gt;<br />
&lt;P&gt;Your Total is: &lt;INPUT value=0.00 name=&quot;total&quot; id = &quot;total&quot; /&gt;&lt;/P&gt;<br />
&lt;P&gt;Expected Delivery Date:&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &lt;input type=&quot;text&quot; name=&quot;delivery&quot; id=&quot;delivery&quot;&gt;<br />
&lt;/P&gt;<br />
&lt;P&gt;&lt;INPUT type=&quot;button&quot; name = &quot;button&quot; id = &quot;button&quot; value=&quot;Calculate My Order Now!&quot;&nbsp; onclick = &quot;calculatePrice()&quot; name=btnSubmit&gt;&lt;/P&gt;&lt;/FORM&gt;&lt;/BODY&gt;&lt;/HTML&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>carlcarman</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240104.html</guid>
		</item>
		<item>
			<title>Annoying javascript error in homepage</title>
			<link>http://www.daniweb.com/forums/thread240091.html</link>
			<pubDate>Fri, 20 Nov 2009 21:01:26 GMT</pubDate>
			<description>Hi, 
 
I have a javascript error in my home page. 
Which is annoying. I am having hard time debugging it. 
Please help. www.dealpigeon.com 
 
FF is not showing it. IE7, 8 shows the error. I just launched the website and I do not want users noticing an error. 
 
Thanks in advance.</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I have a javascript error in my home page.<br />
Which is annoying. I am having hard time debugging it.<br />
Please help. <a rel="nofollow" class="t" href="http://www.dealpigeon.com" target="_blank">www.dealpigeon.com</a><br />
<br />
FF is not showing it. IE7, 8 shows the error. I just launched the website and I do not want users noticing an error.<br />
<br />
Thanks in advance.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>omsoni</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240091.html</guid>
		</item>
		<item>
			<title>Conflicting javascripts</title>
			<link>http://www.daniweb.com/forums/thread240062.html</link>
			<pubDate>Fri, 20 Nov 2009 18:33:24 GMT</pubDate>
			<description>Okay I have an issue....I have two things I want to happen on the same page....I have a slide in menu (Jquery contact form) where people can write me an email and a FancyBox gallery.. 
 
But these two javascripts wont play nice...if both are enable as they are now, The contact portion work fine but...</description>
			<content:encoded><![CDATA[<div>Okay I have an issue....I have two things I want to happen on the same page....I have a slide in menu (Jquery contact form) where people can write me an email and a FancyBox gallery..<br />
<br />
But these two javascripts wont play nice...if both are enable as they are now, The contact portion work fine but the images opens in an empty browser window instead of the fancyBox style.<br />
<br />
The Code <br />
Contact Javascript<br />
 <pre style="margin:20px; line-height:13px"> $(document).ready(function(){<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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(&quot;#contactLink&quot;).click(function(){&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($(&quot;#contactForm&quot;).is(&quot;:hidden&quot;)){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(&quot;#contactForm&quot;).slideDown(&quot;slow&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(&quot;#contactForm&quot;).slideUp(&quot;slow&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; });<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; });<br />
&nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  function closeForm(){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(&quot;#messageSent&quot;).show(&quot;slow&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  setTimeout('$(&quot;#messageSent&quot;).hide();$(&quot;#contactForm&quot;).slideUp(&quot;slow&quot;)', 2000);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }</pre><br />
The FancyBox Code<br />
 <pre style="margin:20px; line-height:13px">$(document).ready(function() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(&quot;a.zoom&quot;).fancybox();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(&quot;a.zoom1&quot;).fancybox({<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'overlayOpacity'&nbsp; &nbsp; &nbsp; &nbsp; :&nbsp; &nbsp; &nbsp; &nbsp; 0.7,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'overlayColor'&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :&nbsp; &nbsp; &nbsp; &nbsp; '#FFF'<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; });<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(&quot;a.zoom2&quot;).fancybox({<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'zoomSpeedIn'&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :&nbsp; &nbsp; &nbsp; &nbsp; 500,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'zoomSpeedOut'&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :&nbsp; &nbsp; &nbsp; &nbsp; 500<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; });<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; });</pre><br />
Any suggestions would be greatly appreciated =)</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>neogy</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240062.html</guid>
		</item>
		<item>
			<title>Problem After Prompt-Button Results</title>
			<link>http://www.daniweb.com/forums/thread240028.html</link>
			<pubDate>Fri, 20 Nov 2009 14:44:16 GMT</pubDate>
			<description><![CDATA[Thanks for viewing. To be perfectly honest, this is (in part) for school. the project is to write a script to prompt for a temperature in Fahrenheit and output the Celsius equivilant. 
I'm ahead in my school work, and so decided to take my time and have some fun with this. Here is my code: 
 
 ...]]></description>
			<content:encoded><![CDATA[<div>Thanks for viewing. To be perfectly honest, this is (in part) for school. the project is to write a script to prompt for a temperature in Fahrenheit and output the Celsius equivilant.<br />
I'm ahead in my school work, and so decided to take my time and have some fun with this. Here is my code:<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;html&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;head&gt; &lt;title&gt;Temperature Converter&lt;/title&gt; &lt;/head&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;body&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;br&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;center&gt;&lt;h2&gt;Temperature Conversion&lt;/h2&gt;&lt;/center&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;br&gt;&lt;br&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;script type = &quot;text/javascript&quot;&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function f2c() <br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var f=prompt(&quot;What Temperature?&quot;,&quot; &quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (f!=null &amp;&amp; f!=&quot; &quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var c= (5/9)*(f-32)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.write (f + &quot; Fahrenhiet is equal to &quot; + c + &quot; Celsius.&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
}<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function c2f() <br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var c=prompt(&quot;What Temperature?&quot;,&quot; &quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (c!=null &amp;&amp; c!=&quot; &quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var f= ((9/5)*c)+32<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.write (c + &quot; Celsius is equal to &quot; + f + &quot; Fahrenheit.&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
}<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/script&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;center&gt;&lt;input type=&quot;button&quot; onclick=&quot;f2c()&quot; value=&quot;Fahrenheit to Celsius&quot;/&gt;&lt;/center&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;center&gt;&lt;input type=&quot;button&quot; onclick=&quot;c2f()&quot; value=&quot;Celsius to Fahrenheit&quot;/&gt;&lt;/center&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/body&gt;<br />
&lt;/html&gt;</pre><br />
I have some c++ and logo experience, and understand programming structure, butHTML is a bit new to me. WhenI run this file as HTML it all works great, but what I would like to do next is: After you get your results displayed, have a link or button you can click to &quot;start over&quot;, bring you back to the start page without having to hit 'back' on your browser.<br />
I will provide a link to the site this lab is posted on for anybody who would like to confirm what I said in the beginning.<br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>firehazrd0</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240028.html</guid>
		</item>
		<item>
			<title>Light Box Not Working.</title>
			<link>http://www.daniweb.com/forums/thread239896.html</link>
			<pubDate>Fri, 20 Nov 2009 03:02:08 GMT</pubDate>
			<description><![CDATA[Hi, 
 
I'm trying to apply light box effect. When the user click on the thumbnail size photo, it will pop up a bigger want and then the background will all blackout...... It's just not working and the the imgage won't show up at all. 
 
Hope someone can point out my mistakes. tks. 
 
Here's my...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I'm trying to apply light box effect. When the user click on the thumbnail size photo, it will pop up a bigger want and then the background will all blackout...... It's just not working and the the imgage won't show up at all.<br />
<br />
Hope someone can point out my mistakes. tks.<br />
<br />
Here's my code:-<br />
 <pre style="margin:20px; line-height:13px">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;<br />
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;en&quot; lang=&quot;en&quot;&gt;<br />
&lt;head&gt;<br />
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot; /&gt;<br />
&lt;script src=&quot;jquery-1.3.2.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;<br />
&lt;title&gt;Javascript test&lt;/title&gt;<br />
&lt;script language=&quot;javascript&quot;&gt;<br />
document.getElementById('light').style.display='block';document.getElementById('fade').style.display='block';<br />
&lt;/script&gt;<br />
&lt;style type=&quot;text/css&quot;&gt;<br />
<br />
body {<br />
margin: 0;<br />
padding-left: 200px;<br />
padding-right: 190px;<br />
min-width: 240px;<br />
}<br />
<br />
#header, #footer {<br />
margin-left: -200px;<br />
margin-right: -190px;<br />
}<br />
<br />
.column {<br />
position: relative;<br />
float: left;<br />
}<br />
<br />
#center {<br />
padding: 0 20px;<br />
width: 100%;<br />
}<br />
<br />
#left {<br />
width: 180px;<br />
padding: 65px 10px;<br />
right: 240px;<br />
margin-left: -100%;<br />
}<br />
<br />
#right {<br />
width: 130px;<br />
padding: 0 10px;<br />
margin-right: -100%;<br />
}<br />
<br />
#footer {<br />
clear: both;<br />
}<br />
<br />
# buffer {<br />
padding: 35px 0; }<br />
<br />
#content-main {<br />
margin-top: 85px;<br />
margin-left: 100px;<br />
<br />
<br />
* html #left {<br />
left: 150px;<br />
}<br />
<br />
<br />
table { border: 1px solid #ffffff;<br />
border-spacing: 2px;<br />
margin-left: auto;<br />
margin-right: auto;<br />
padding: 2px;<br />
width: 95%; }<br />
<br />
td { border: 1 px solid #808080;<br />
margin : 2px;<br />
padding : 1px;<br />
}<br />
<br />
.black_overlay{<br />
position: relative;<br />
top: 0%;<br />
left: 0%;<br />
width: 100%;<br />
height: 100%;<br />
background-color: black;<br />
z-index: 1001;<br />
-moz-opacity: 0.8;<br />
opacity:.80;<br />
filter: alpha(opacity=80);<br />
}<br />
<br />
.white_content {<br />
position: relative;<br />
top: 25%;<br />
left: 25%;<br />
width: 100%;<br />
height: 100%;<br />
padding: 16px;<br />
border: 16px solid orange;<br />
background-color: white;<br />
overflow: auto;<br />
<br />
<br />
&lt;/style&gt;<br />
&lt;/head&gt;<br />
<br />
&lt;body&gt;<br />
<br />
&lt;div id=&quot;header&quot;&gt;This is the header.&lt;/div&gt;<br />
&lt;div id=&quot;center&quot; class=&quot;column&quot;&gt;<br />
&lt;div id=&quot;content-main&quot;&gt;<br />
&lt;div id=&quot;buffer&quot;&gt;&lt;/div&gt;<br />
&lt;table&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;<br />
&lt;a href = &quot;javascript<b></b>:void(0)&quot; onclick = &quot;document.getElementById('light').style.display='block';document.getElementById('fade').style.display='block'&quot;&gt;&lt;img src=&quot;CIMG0600.JPG&quot;alt=&quot;1&quot;height=&quot;200&quot; width=&quot;200&quot;&gt;&lt;/a&gt;<br />
&lt;div id=&quot;light&quot; class=&quot;white_content&quot;&gt;&lt;img src=&quot;CIMG0600.JPG&quot;alt=&quot;1&quot;height=&quot;100&quot; width=&quot;100&quot;&gt;&lt;a href = &quot;javascript<b></b>:void(0)&quot; onclick = &quot;document.getElementById('light').style.display='none';document.getElementById('fade').style.display='none'&quot;&gt;&lt;/a&gt;&lt;/div&gt;<br />
&lt;div id=&quot;fade&quot; class=&quot;black_overlay&quot;&gt;&lt;/div&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;<br />
<br />
&lt;td&gt;&lt;img src=&quot;CIMG0627.JPG&quot;alt=&quot;1&quot;height=&quot;100&quot; width=&quot;100&quot;&gt;&lt;/td&gt;<br />
&lt;td&gt;&lt;img src=&quot;CIMG1014.JPG&quot;alt=&quot;1&quot;height=&quot;100&quot; width=&quot;100&quot;&gt;&lt;/td&gt;<br />
&lt;td&gt;&lt;img src=&quot;CIMG1429.JPG&quot;alt=&quot;1&quot;height=&quot;100&quot; width=&quot;100&quot;&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;td&gt;&lt;img src=&quot;CIMG0500.JPG&quot;alt=&quot;1&quot;height=&quot;100&quot; width=&quot;100&quot;&gt;&lt;/td&gt;<br />
&lt;td&gt;&lt;img src=&quot;CIMG1020.JPG&quot;alt=&quot;1&quot;height=&quot;100&quot; width=&quot;100&quot;&gt;&lt;/td&gt;<br />
&lt;td&gt;&lt;img src=&quot;CIMG0710.JPG&quot;alt=&quot;1&quot;height=&quot;100&quot; width=&quot;100&quot;&gt;&lt;/td&gt;<br />
&lt;td&gt;&lt;img src=&quot;CIMG0616.JPG&quot;alt=&quot;1&quot;height=&quot;100&quot; width=&quot;100&quot;&gt;&lt;/td&gt;<br />
&lt;/table&gt;<br />
&lt;/div&gt;<br />
&lt;div id=&quot;left&quot; class=&quot;column&quot;&gt;<br />
&lt;h2&gt;About Us&lt;/h2&gt;<br />
&lt;p&gt;&lt;/p&gt;<br />
&lt;/br&gt;&lt;h3&gt;Our products &amp; services:&lt;/h3&gt;<br />
&lt;/div&gt;<br />
&lt;div id=&quot;right&quot; class=&quot;column&quot;&gt;<br />
&lt;p&gt;&lt;/p&gt;<br />
&lt;/div&gt;<br />
&lt;div id=&quot;footer&quot;&gt;<br />
&lt;/div&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>tangara</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239896.html</guid>
		</item>
		<item>
			<title>Make a button Visibile based on form field value</title>
			<link>http://www.daniweb.com/forums/thread239875.html</link>
			<pubDate>Fri, 20 Nov 2009 00:45:15 GMT</pubDate>
			<description><![CDATA[Buttons visibility is set to hidden to start.  Suggestions? 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags" target="_blank">Help...]]></description>
			<content:encoded><![CDATA[<div>Buttons visibility is set to hidden to start.  Suggestions?<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;script Language=&quot;JavaScript&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
Function CKPMT1()<br />
Var PMT1;<br />
&nbsp;  PMT1 = document.Form1.BalPmtPayee.value;<br />
IF PMT1 = &quot;&quot;&nbsp; then ;<br />
&nbsp;  document.Form1.B1.style.visiblity='visible';<br />
End if<br />
End Function<br />
<br />
&lt;body onLoad=&quot;CKPMT1()&quot;&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>Nuttdude</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239875.html</guid>
		</item>
		<item>
			<title>CSS drop down menu being covered in IE 7</title>
			<link>http://www.daniweb.com/forums/thread239777.html</link>
			<pubDate>Thu, 19 Nov 2009 15:17:18 GMT</pubDate>
			<description>Hi - 
 
I have a css drop down menu that hides behind a javascript photo gallery (in the main area of the page) in IE7. Not quite sure what to make of it. Any and all help is appreciated!!  
 
 
thanks</description>
			<content:encoded><![CDATA[<div>Hi -<br />
<br />
I have a css drop down menu that hides behind a javascript photo gallery (in the main area of the page) in IE7. Not quite sure what to make of it. Any and all help is appreciated!! <br />
<br />
<br />
thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>antr25</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239777.html</guid>
		</item>
		<item>
			<title>creating dynamic form using javascript</title>
			<link>http://www.daniweb.com/forums/thread239773.html</link>
			<pubDate>Thu, 19 Nov 2009 14:51:46 GMT</pubDate>
			<description><![CDATA[i'm still a newbie in javascript. i know this question may be silly for some experts in javascript. and i'm sorry for that :( 
 
i want to create a dynamic form using javascript, where i can click a button to add some new fields. i tried to search it in google, and i tried to use it. but it doesn't...]]></description>
			<content:encoded><![CDATA[<div>i'm still a newbie in javascript. i know this question may be silly for some experts in javascript. and i'm sorry for that :(<br />
<br />
i want to create a dynamic form using javascript, where i can click a button to add some new fields. i tried to search it in google, and i tried to use it. but it doesn't work in mozilla and gave error warning in IE. can someone help me in creating that dynamic form, or maybe you can give me some links that give explanation about that.<br />
<br />
thx so much,<br />
AG</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>AirGear</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239773.html</guid>
		</item>
		<item>
			<title>Design an oracle for the following JavaScript function</title>
			<link>http://www.daniweb.com/forums/thread239774.html</link>
			<pubDate>Thu, 19 Nov 2009 14:15:13 GMT</pubDate>
			<description>Design an oracle for the following JavaScript function.  
2.     Generate a test case set for this function and provide a coverage analysis report for your test case set. 
  
The JavaScript function:  
function purchaseSong(username, password, songId) { 
  
  // first authenticate the user 
  if...</description>
			<content:encoded><![CDATA[<div>Design an oracle for the following JavaScript function. <br />
2.     Generate a test case set for this function and provide a coverage analysis report for your test case set.<br />
 <br />
The JavaScript function: <br />
 <pre style="margin:20px; line-height:13px">function purchaseSong(username, password, songId) {<br />
&nbsp;<br />
&nbsp; // first authenticate the user<br />
&nbsp; if (checkCredentials(username, password) == false) {<br />
&nbsp; &nbsp; alert('The username or password is incorrect.');<br />
&nbsp; &nbsp; return;<br />
&nbsp; }<br />
&nbsp;<br />
&nbsp; // get the price of the song<br />
&nbsp; var songPrice = getSongPrice(songId);<br />
&nbsp;<br />
&nbsp; // make sure the user has enough money in his account<br />
&nbsp; if (getAccountBalance(username) &lt; songPrice) {<br />
&nbsp; &nbsp; alert('You do not have enough money in your account.');<br />
&nbsp; &nbsp; return;<br />
&nbsp; }<br />
&nbsp;<br />
&nbsp; // debit the user's account<br />
&nbsp; debitAccount(username, songPrice);<br />
&nbsp;<br />
&nbsp; // start downloading the song to the client machine<br />
&nbsp; downloadSong(songId);<br />
}</pre>Notice: You may note that the user could be malicious and try to modify the JavaScript. Your oracle and test case should reflect this fact.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>Gatayo</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239774.html</guid>
		</item>
		<item>
			<title>jQuery - unbind hyperlink click</title>
			<link>http://www.daniweb.com/forums/thread239751.html</link>
			<pubDate>Thu, 19 Nov 2009 13:39:02 GMT</pubDate>
			<description><![CDATA[Hi 
 
im messing around with some jQuery and want to disable a link whilst it performs a ajax post (its adding/fetching somthing from a database) and i want to disable the link so it cant be multiclickd. 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px">...]]></description>
			<content:encoded><![CDATA[<div>Hi<br />
<br />
im messing around with some jQuery and want to disable a link whilst it performs a ajax post (its adding/fetching somthing from a database) and i want to disable the link so it cant be multiclickd.<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;a href=\&quot;#\&quot; id=\&quot;seepages\&quot;&gt;See Page&lt;/a&gt;</pre><br />
ive tried using <br />
<br />
 <pre style="margin:20px; line-height:13px">$(&quot;#seepages&quot;).unbind('click');</pre><br />
but that dosnt work! =( <br />
how ever when i tried this<br />
<br />
 <pre style="margin:20px; line-height:13px">$(&quot;#seepages&quot;).unbind('click');<br />
$(&quot;#seepages&quot;).attr(&quot;id&quot;, &quot;disabled&quot;);</pre><br />
that works! but using either one of them by them self doesn't - work but why?<br />
<br />
any advice/tips would be useful! thanks in advance =)<br />
<br />
edit:<br />
i should also have said that i have to use:<br />
 <pre style="margin:20px; line-height:13px">$(&quot;#disabled&quot;).attr(&quot;id&quot;, &quot;seepages&quot;); <br />
$(&quot;#disabled&quot;).bind('click');</pre><br />
to enable it again</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>OnIIcE</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239751.html</guid>
		</item>
		<item>
			<title>Ajax Implementation on Project</title>
			<link>http://www.daniweb.com/forums/thread239647.html</link>
			<pubDate>Thu, 19 Nov 2009 05:22:44 GMT</pubDate>
			<description>Hello All, 
 
I work on PL/SQL web applications with oracle Application Server. I wish to start using some of Ajax features in my applications. Do I need to perform any application/db server side configuration changes to accommodate Ajax implementations? 
Your suggestions will be of great help to...</description>
			<content:encoded><![CDATA[<div>Hello All,<br />
<br />
I work on PL/SQL web applications with oracle Application Server. I wish to start using some of Ajax features in my applications. Do I need to perform any application/db server side configuration changes to accommodate Ajax implementations?<br />
Your suggestions will be of great help to me.<br />
<br />
Thanks in advance</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>skulkar</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239647.html</guid>
		</item>
		<item>
			<title>help.form page. no inner html</title>
			<link>http://www.daniweb.com/forums/thread239547.html</link>
			<pubDate>Wed, 18 Nov 2009 20:23:51 GMT</pubDate>
			<description><![CDATA[I'm trying to use javascript with NO Innerhtml. i am very new to javascript and i need a little help completing this form. the code i have so far to create a form page is just below this message.  
 
How do i create a code when focused the text fields should offer a hint to the right of the text...]]></description>
			<content:encoded><![CDATA[<div>I'm trying to use javascript with NO Innerhtml. i am very new to javascript and i need a little help completing this form. the code i have so far to create a form page is just below this message. <br />
<br />
How do i create a code when focused the text fields should offer a hint to the right of the text field that indicates how the user should input data??<br />
<br />
When unfocused, the validateData() function should be called.<br />
<br />
also how do i create my 2 survey questions a radio buttons??<br />
<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;script type=&quot;text/javascript&quot;&gt;<br />
function assignHandlers()<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.getElementById(&quot;fname&quot;).onblur = function()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (document.forms[0].fname.value !=&quot;&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(document.forms[0].fname.value);<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; &nbsp; &nbsp; &nbsp; &nbsp; }<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; <br />
}<br />
<br />
window.onload=assignHandlers;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/script&gt;<br />
<br />
&lt;/head&gt;<br />
<br />
&lt;body&gt;<br />
&lt;form&gt;<br />
<br />
&lt;fieldset&gt;&lt;legend&gt;User Info&lt;/legend&gt;<br />
&lt;label for=&quot;fname&quot;&gt;First name&lt;/label&gt;&lt;input type=&quot;text&quot; name=&quot;fname&quot; id=&quot;fname&quot; /&gt;<br />
&lt;br/&gt;<br />
<br />
<br />
<br />
&lt;label for=&quot;lname&quot;&gt;Last name&lt;/label&gt;&lt;input type=&quot;text&quot; name=&quot;lname&quot; /&gt; &lt;br/&gt;<br />
&lt;label for=&quot;email&quot;&gt;email&lt;/label&gt;&lt;input type=&quot;text&quot; name=&quot;email&quot; /&gt; &lt;br/&gt;<br />
&lt;label for=&quot;phone&quot;&gt;Phone Number&lt;/label&gt;&lt;input type=&quot;text&quot; name=&quot;phone&quot; /&gt; &lt;br/&gt;<br />
&lt;label for=&quot;url&quot;&gt;Sulley Website&lt;/label&gt;&lt;input type=&quot;text&quot; name=&quot;url&quot; /&gt; &lt;br/&gt;<br />
&lt;/fieldset&gt;<br />
<br />
&lt;fieldset&gt;&lt;legend&gt; Survey&lt;/legend&gt;<br />
<br />
&lt;label for=&quot;question1&quot;&gt;Do you drink alcohol?&lt;/label&gt;<br />
&lt;input type=&quot;radio&quot; name=&quot;question1&quot; value=&quot;true&quot; /&gt;True<br />
&lt;input type=&quot;radio&quot; name=&quot;question1&quot; value=&quot;false&quot; /&gt;False &lt;br/&gt;<br />
<br />
&lt;label for=&quot;question2&quot;&gt; Do you have a DUI?&lt;/label&gt;<br />
&lt;input type=&quot;radio&quot; name=&quot;question2&quot; value=&quot;true&quot; /&gt;True<br />
&lt;input type=&quot;radio&quot; name=&quot;question2&quot; value=&quot;false&quot; /&gt;False &lt;br/&gt;<br />
&lt;/fieldset&gt;<br />
<br />
&lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;Submit!&quot; /&gt;<br />
&lt;/form&gt;<br />
<br />
<br />
&lt;/body&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>dmmajorstudent</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239547.html</guid>
		</item>
		<item>
			<title>Classes and Objects</title>
			<link>http://www.daniweb.com/forums/thread239475.html</link>
			<pubDate>Wed, 18 Nov 2009 14:51:06 GMT</pubDate>
			<description><![CDATA[Hey there everyone 
I'm a bit troubled with something I'm trying to construct, I'm trying to create an object that can reproduce itself, creating more objects that can be accessed also, to reproduce themselves. Each object would then be given a random name like: object1, object2 so they can be...]]></description>
			<content:encoded><![CDATA[<div>Hey there everyone<br />
I'm a bit troubled with something I'm trying to construct, I'm trying to create an object that can reproduce itself, creating more objects that can be accessed also, to reproduce themselves. Each object would then be given a random name like: object1, object2 so they can be accessed to create object3, object4, object5 and object6.<br />
<br />
I've come up with the following code, which has some segments that you might find weird but those are just testing.<br />
<br />
 <pre style="margin:20px; line-height:13px">function cMicrobe() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; var prInterval = 1.2;<br />
&nbsp; &nbsp; &nbsp; &nbsp; var prNumber = 1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; this.puX = 50;<br />
&nbsp; &nbsp; this.puY = 50;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; this.move = function() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.puX += Math.floor(Math.random()*11);<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.puY += Math.floor(Math.random()*11);<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; this.reproduce = function(name) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; prNumber += prNumber;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; name = new cMicrobe();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; this.report = function() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.write(&quot;x: &quot; + this.puX + &quot;&lt;br /&gt;y: &quot; + this.puY + &quot;&lt;br /&gt; &lt;br /&gt;&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
}<br />
<br />
oMicrobe = new cMicrobe();<br />
oMicrobe.report();<br />
oMicrobe.move();<br />
oMicrobe.report();<br />
<br />
<br />
oMicrobe.reproduce(&quot;test&quot;);<br />
test.report();</pre><br />
I'm quite stuck here, I don't know the keywords to search on Google for this so I can't figure out how I can make an additional object, named test. If I can make test I can make object2, etc.<br />
<br />
I'd appreciate some help on this,<br />
thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>brechtjah</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239475.html</guid>
		</item>
		<item>
			<title>grey out the page while showing the loading image</title>
			<link>http://www.daniweb.com/forums/thread239468.html</link>
			<pubDate>Wed, 18 Nov 2009 14:18:48 GMT</pubDate>
			<description>Hi friends, 
 
I need to do this: 
Scroll down the scroll bar 
grey out all my page and show a loading gif  
load, thru ajax, content from the db server 
turn off grey and loading gif  
update current page content.  
 
how can i do this without using jQuery?</description>
			<content:encoded><![CDATA[<div>Hi friends,<br />
<br />
I need to do this:<br />
Scroll down the scroll bar<br />
grey out all my page and show a loading gif <br />
load, thru ajax, content from the db server<br />
turn off grey and loading gif <br />
update current page content. <br />
<br />
how can i do this without using jQuery? <br />
<br />
Many thanks in advance</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>gk0110</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239468.html</guid>
		</item>
		<item>
			<title>Script Not Working in Other Browser except IE</title>
			<link>http://www.daniweb.com/forums/thread239465.html</link>
			<pubDate>Wed, 18 Nov 2009 14:10:33 GMT</pubDate>
			<description>Dear All Experts 
 
I wrote a simple code in javascript and it  is working fine with IE but when I open the page in FireFox or in Google Crome it is not working as I expect. Actually I am enabling and disabling the combo box on the on change event of radio button. 
 
Please check the code attached...</description>
			<content:encoded><![CDATA[<div>Dear All Experts<br />
<br />
I wrote a simple code in javascript and it  is working fine with IE but when I open the page in FireFox or in Google Crome it is not working as I expect. Actually I am enabling and disabling the combo box on the on change event of radio button.<br />
<br />
Please check the code attached here. And visit my site for output <br />
<a rel="nofollow" class="t" href="http://www.crispwerx.com/catasset" target="_blank">www.crispwerx.com/catasset</a><br />
<br />
Thanx to all viewer and helper</div>  <br /> <div style="padding:5px">     <fieldset class="fieldset"> <legend>Attached Files</legend> <table cellpadding="0" cellspacing="5" border="0"> <tr> <td><img class="inlineimg" src="http://www.daniweb.com/forums/images/attach/php.gif" alt="File Type: php" width="16" height="16" border="0" style="vertical-align:baseline" /></td> <td><a href="http://www.daniweb.com/forums/attachment.php?attachmentid=12620&amp;d=1258553327">index.php</a> (2.5 KB)</td> </tr> </table> </fieldset>  </div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>vishalonne</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239465.html</guid>
		</item>
		<item>
			<title>Are jquery pagination are reliable with large data</title>
			<link>http://www.daniweb.com/forums/thread239451.html</link>
			<pubDate>Wed, 18 Nov 2009 13:24:33 GMT</pubDate>
			<description><![CDATA[http://www.d-scribe.de/webtools/jquery-pagination/demo/demo_options.htm 
 
these type of jquery pagination are riable for large data...??? 
 where query doesnt need 'limit' in it..!!! 
 
thanks]]></description>
			<content:encoded><![CDATA[<div><a rel="nofollow" class="t" href="http://www.d-scribe.de/webtools/jquery-pagination/demo/demo_options.htm" target="_blank">http://www.d-scribe.de/webtools/jque...mo_options.htm</a><br />
<br />
these type of jquery pagination are riable for large data...???<br />
 where query doesnt need 'limit' in it..!!!<br />
<br />
thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>sam023</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239451.html</guid>
		</item>
		<item>
			<title>how we can change symbol in password field in javascript?</title>
			<link>http://www.daniweb.com/forums/thread239421.html</link>
			<pubDate>Wed, 18 Nov 2009 10:46:53 GMT</pubDate>
			<description><![CDATA[Friends , I wana know that how we can change text symbol in password field by using JavaScript. I mean by default there is filled circle , but I want "*" this symbol.]]></description>
			<content:encoded><![CDATA[<div>Friends , I wana know that how we can change text symbol in password field by using JavaScript. I mean by default there is filled circle , but I want &quot;*&quot; this symbol.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>lakodajin</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239421.html</guid>
		</item>
		<item>
			<title>problem with setting input text value</title>
			<link>http://www.daniweb.com/forums/thread239401.html</link>
			<pubDate>Wed, 18 Nov 2009 09:24:32 GMT</pubDate>
			<description><![CDATA[Hi !!  
i faced problem with javascript. When I call function change() it applies only second element that is link2. I wanted  when i click the link, the link name must appear to textfield.can anyone help?? 
 
here is code: 
 
<html> 
<body> 
<form> 
<a id="static"...]]></description>
			<content:encoded><![CDATA[<div>Hi !! <br />
i faced problem with javascript. When I call function change() it applies only second element that is link2. I wanted  when i click the link, the link name must appear to textfield.can anyone help??<br />
<br />
here is code:<br />
 <pre style="margin:20px; line-height:13px">&lt;html&gt;<br />
&lt;body&gt;<br />
&lt;form&gt;<br />
&lt;a id=&quot;static&quot; href=&quot;staticContentAdmin.ioml&quot;&gt;link1&lt;/a&gt;&lt;/br&gt;<br />
&lt;a id=&quot;static&quot; href=&quot;staticContentAdmin.ioml&quot;&gt;link2&lt;/a&gt;&lt;/br&gt;<br />
&lt;input type=&quot;text&quot; id=&quot;spec&quot; name=&quot;content&quot;/&gt;<br />
&lt;/form&gt;<br />
&lt;script&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; var a = document.getElementsByTagName(&quot;a&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; for(var i=0;i&lt;a.length;i++){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; a&#91;i&#93;.href=&quot;#&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var ale = a&#91;i&#93;.innerHTML;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; a&#91;i&#93;.onclick =change(ale);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; function change(object){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var inputobj = document.getElementById(&quot;spec&quot;); <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; inputobj.value = object;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&lt;/script&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>samlabs821</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239401.html</guid>
		</item>
		<item>
			<title>onclick function is not working (plz help)</title>
			<link>http://www.daniweb.com/forums/thread239389.html</link>
			<pubDate>Wed, 18 Nov 2009 07:55:36 GMT</pubDate>
			<description><![CDATA[plz chk my coding n tell me whr I am wrong. 
<html> 
  <head> 
   <title> 
    My simple calculator 
   </title> 
  </head> 
     <script language="JavaScript"> 
     <!-- 
     function addit()]]></description>
			<content:encoded><![CDATA[<div>plz chk my coding n tell me whr I am wrong.<br />
&lt;html&gt;<br />
  &lt;head&gt;<br />
   &lt;title&gt;<br />
    My simple calculator<br />
   &lt;/title&gt;<br />
  &lt;/head&gt;<br />
     &lt;script language=&quot;JavaScript&quot;&gt;<br />
     &lt;!--<br />
     function addit()<br />
      {<br />
 <br />
          var num1=document.calform.one.value;<br />
          var num2=document.calform.two.value;<br />
           document.calform.result.value=parseFloat(num1)+parseFloat(num2);<br />
          <br />
       }<br />
     &lt;!--<br />
         function minus()<br />
      {<br />
           var num1=document.calform.one.value;<br />
           var num2=document.calform.two.value;<br />
             document.calform.result.value=parseFloat(num1)-parseFloat(num2);<br />
       <br />
       }<br />
<br />
     --&gt;<br />
       &lt;/script&gt;<br />
       &lt;body&gt;Add subtract Calculator<br />
         &lt;form name=&quot;calform&quot;&gt;<br />
           &lt;p&gt;<br />
              First Number:&lt;input type=&quot;text&quot; name=&quot;one&quot; maxlength=&quot;3&quot;&gt;<br />
           &lt;p&gt;<br />
              Second Name:&lt;input type=&quot;text&quot; name=&quot;two&quot; maxlength=&quot;3&quot;&gt;<br />
           &lt;p&gt;<br />
              Result:&lt;input type=&quot;text&quot; name=&quot;result&quot; maxlength=&quot;9&quot; disabled&gt;<br />
           &lt;p&gt;<br />
                &lt;input type=&quot;button&quot;name=&quot;add&quot;value=&quot;Add Them!&quot;onclick=&quot;addit()&quot;&gt;<br />
                &lt;input type=&quot;button&quot;name=&quot;minus&quot;value=&quot;Subtract Them!&quot;onclick=&quot;minus()&quot;&gt;<br />
                &lt;input type=&quot;reset&quot; value=&quot;Reset!&quot;&gt;<br />
         &lt;/form&gt;<br />
      &lt;/body&gt;<br />
&lt;/html&gt;</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>lakodajin</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239389.html</guid>
		</item>
		<item>
			<title>How Disable The F5 Key In Mozilla</title>
			<link>http://www.daniweb.com/forums/thread239353.html</link>
			<pubDate>Wed, 18 Nov 2009 04:49:45 GMT</pubDate>
			<description><![CDATA[I am trying to disable the F5 key in Mozilla. I have the next code in 
javascript that it is working in Internet Explorer but it is not 
working in Mozilla. how can I disable the F5 key in Mozilla? 
 
Code: 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px">...]]></description>
			<content:encoded><![CDATA[<div>I am trying to disable the F5 key in Mozilla. I have the next code in<br />
javascript that it is working in Internet Explorer but it is not<br />
working in Mozilla. how can I disable the F5 key in Mozilla?<br />
<br />
Code:<br />
 <pre style="margin:20px; line-height:13px"><br />
&nbsp; &nbsp; &nbsp; function checkKeyCode(evt)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp;  var evt = (evt) ? evt : ((event) ? event : null);<br />
<br />
&nbsp; &nbsp; &nbsp; var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);<br />
&nbsp;  <br />
&nbsp; &nbsp; &nbsp; if(event.keyCode==116)<br />
&nbsp;  <br />
&nbsp; &nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; &nbsp; evt.keyCode=0;<br />
&nbsp; <br />
&nbsp; &nbsp; &nbsp; return false<br />
&nbsp; <br />
&nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp;  }</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>psathish2</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239353.html</guid>
		</item>
		<item>
			<title>Select List/Menu Help</title>
			<link>http://www.daniweb.com/forums/thread239342.html</link>
			<pubDate>Wed, 18 Nov 2009 04:06:08 GMT</pubDate>
			<description><![CDATA[I am New in web designing 
What i want is  i have one List/Menu its called Make it's containing some vehicles Brands  when i selected a brand name i want another list/menu display the models that relevant to Brand   
 
this is a screen shot that what i need 
Image:...]]></description>
			<content:encoded><![CDATA[<div>I am New in web designing<br />
What i want is  i have one List/Menu its called Make it's containing some vehicles Brands  when i selected a brand name i want another list/menu display the models that relevant to Brand  <br />
<br />
this is a screen shot that what i need<br />
<img src="http://i256.photobucket.com/albums/hh192/magnificent_roo/model.gif" border="0" alt="" /><br />
 <br />
some of  vehicle websites are using this thing <br />
<br />
Here is my codes<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;<br />
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;<br />
&lt;head&gt;<br />
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;<br />
&lt;title&gt;Untitled Document&lt;/title&gt;<br />
&lt;/head&gt;<br />
<br />
&lt;body&gt;&lt;form action=&quot;&quot; method=&quot;post&quot; name=&quot;F2&quot; id=&quot;F2&quot;&gt;<br />
&nbsp; &lt;p&gt;Make<br />
&nbsp; &nbsp; &lt;select name=&quot;list&quot; id=&quot;list&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;option value=&quot;DESOTO &quot;&gt;DESOTO &lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;option value=&quot;DODGE &quot;&gt;DODGE &lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;option value=&quot;DUTTON &quot;&gt;DUTTON &lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;option value=&quot;EDSEL &quot;&gt;EDSEL &lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;option value=&quot;ELFIN &quot;&gt;ELFIN &lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;option value=&quot;EUNOS &quot;&gt;EUNOS &lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;option value=&quot;FERRARI &quot;&gt;FERRARI &lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;option value=&quot;FIAT &quot;&gt;FIAT &lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;option value=&quot;FORD &quot;&gt;FORD &lt;/option&gt;<br />
&nbsp; &nbsp; &lt;/select&gt;<br />
&nbsp; &lt;/p&gt;<br />
&nbsp; &lt;p&gt;Model<br />
&nbsp; &nbsp; &lt;select name=&quot;select&quot; id=&quot;select&quot;&gt;<br />
&nbsp; &nbsp; &lt;option&gt;SELECT&lt;/option&gt;<br />
&nbsp; &nbsp; &lt;/select&gt;<br />
&nbsp; &lt;/p&gt;<br />
&lt;/form&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>ruwanaru</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239342.html</guid>
		</item>
		<item>
			<title>Postal Address Validation Libraries</title>
			<link>http://www.daniweb.com/forums/thread239241.html</link>
			<pubDate>Tue, 17 Nov 2009 17:32:17 GMT</pubDate>
			<description><![CDATA[Hello folks, 
I am a young webdeveloper from Germany. 
There is this technology used in this great website that doesn't stop amusing me, I was just hoping someone could cypher the technology behind it and perhaps reveal it is done with the help of some freely available Library  
 
the link to this...]]></description>
			<content:encoded><![CDATA[<div>Hello folks,<br />
I am a young webdeveloper from Germany.<br />
There is this technology used in this great website that doesn't stop amusing me, I was just hoping someone could cypher the technology behind it and perhaps reveal it is done with the help of some freely available Library <br />
<br />
the link to this DSL Internet provider company is:<br />
<br />
<a rel="nofollow" class="t" href="http://www.alice-dsl.de/tavp/ooPreAction1.do?ka=pk&amp;prod=fun&amp;dsl_tariff=flat&amp;phone=&amp;dsl_speed=&amp;iptv=no" target="_blank">http://www.alice-dsl.de/tavp/ooPreAc...speed=&amp;iptv=no</a><br />
<br />
<br />
just insert this postal zip code in there to test the service: <span style="font-weight:bold">68161</span><br />
that is a German Zip coad for the city Mannheim. As soon as you type in this post code, the fields of <br />
cheers</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>marian99us</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239241.html</guid>
		</item>
		<item>
			<title>Google Calendar Search on Website</title>
			<link>http://www.daniweb.com/forums/thread238963.html</link>
			<pubDate>Mon, 16 Nov 2009 15:55:38 GMT</pubDate>
			<description><![CDATA[This may be the wrong place to be posting this but here I go. 
 
I have a search on my site that uses Google Custom Search. I would like it to also search my Google Calendar. I can't find any method to search just the Google Calendar. I was wondering if someone knew how to search the Calendar and...]]></description>
			<content:encoded><![CDATA[<div>This may be the wrong place to be posting this but here I go.<br />
<br />
I have a search on my site that uses Google Custom Search. I would like it to also search my Google Calendar. I can't find any method to search just the Google Calendar. I was wondering if someone knew how to search the Calendar and once i got that i could some how tie it together with the website search.<br />
<br />
So i need help finding a way to search Google Calendar and then tying it into the website search.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>jonow</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238963.html</guid>
		</item>
		<item>
			<title>Close through browser close button code working in IE not working in Fire Fox</title>
			<link>http://www.daniweb.com/forums/thread238942.html</link>
			<pubDate>Mon, 16 Nov 2009 14:23:52 GMT</pubDate>
			<description>Suppose,closing the browser through Browser Close Button(Top Right Corner cross(x) button), i have to execute some ASP script , for that, in body onUnLoad Event calling a fucntion 
called CloseWin(e,frm), it is working in Internet Explorer successfully , But in FireFox not working. how to solve...</description>
			<content:encoded><![CDATA[<div>Suppose,closing the browser through Browser Close Button(Top Right Corner cross(x) button), i have to execute some ASP script , for that, in body onUnLoad Event calling a fucntion<br />
called CloseWin(e,frm), it is working in Internet Explorer successfully , But in FireFox not working. how to solve this problem. or any other way to get the co-ordinates of browser close button( code for both IE and Firefox). Please help me in this regard.<br />
<br />
thanks in advance .<br />
<br />
code follows<br />
<br />
 <pre style="margin:20px; line-height:13px">function CloseWin(e,frm)<br />
{<br />
<br />
//frm required for my program<br />
<br />
var bButtonClicked = false;<br />
<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (!e)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var e=window.event;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; if((e.clientY &lt; -80)) //IE<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  bButtonClicked=true;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; else if((e.pageX&lt;0) || (e.pageY&lt;0)) //Fire Fox<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bButtonClicked=true;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (bButtonClicked==true)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;browser closed!!!&quot;);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;browser not closed!!!&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
}</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>RMSASPFORUM</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238942.html</guid>
		</item>
		<item>
			<title>Inserting a variable into a variable name</title>
			<link>http://www.daniweb.com/forums/thread238810.html</link>
			<pubDate>Mon, 16 Nov 2009 03:22:41 GMT</pubDate>
			<description><![CDATA[Hello again :) 
 
I am having a problem where I want to change a particular variable based on what parameters I send to a js function.  
 
In the code below, dnum is a number 1-6, and I want the global variable d1keep (or d2keep, d3keep etc.) to equal the dvalue. 
 
  <div class="codeblock"> <div...]]></description>
			<content:encoded><![CDATA[<div>Hello again :)<br />
<br />
I am having a problem where I want to change a particular variable based on what parameters I send to a js function. <br />
<br />
In the code below, dnum is a number 1-6, and I want the global variable d1keep (or d2keep, d3keep etc.) to equal the dvalue.<br />
<br />
 <pre style="margin:20px; line-height:13px">function KeepDie(dnum, dvalue) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; d+dnum+keep=dvalue;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp;  ... (more code)<br />
}</pre><br />
I've tried using single quotes, double quotes, brackets, curly brackets, parentheses, and other punctuation in many locations all over that line of code, but I cannot get it to work.  <br />
<br />
Please help, thanks!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>Kadjii</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238810.html</guid>
		</item>
		<item>
			<title>JS form validation pass variables into php file</title>
			<link>http://www.daniweb.com/forums/thread238797.html</link>
			<pubDate>Mon, 16 Nov 2009 02:19:27 GMT</pubDate>
			<description><![CDATA[Hi, 
 
I'm new to this and have a quick question. 
 
I have a form called register.html and have javascript to check the form validation 
 
 
<form 
<input type="submit" value="Submit" onClick="return formValidate()"> 
</form>]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I'm new to this and have a quick question.<br />
<br />
I have a form called register.html and have javascript to check the form validation<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;form<br />
&lt;input type=&quot;submit&quot; value=&quot;Submit&quot; onClick=&quot;return formValidate()&quot;&gt;<br />
&lt;/form&gt;</pre><br />
so in register.html when user presses submit the formValidate method (javascript) is run.<br />
<br />
once it returns true, how do i pass the variables from the form into a php page?<br />
<br />
i know i can change onClick=&quot;data.php&quot; but then the JS is not being run ...<br />
<br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>ady_1</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238797.html</guid>
		</item>
		<item>
			<title>Code Snippet JS Date-parser</title>
			<link>http://www.daniweb.com/code/snippet238772.html</link>
			<pubDate>Sun, 15 Nov 2009 22:50:33 GMT</pubDate>
			<description><![CDATA[This is a simple code-snippet that can be used to parse dates with javascript. It's setup to use European dates (dd.mm.yyyy | dd/mm/yyyy | dd,mm,yyyy), but it can easily be setup to use american dates as well (mm/dd/yyyy etc), to do so simply replace "$1" with "$2" and "$2" with "$1". 
 
No...]]></description>
			<content:encoded><![CDATA[<div>This is a simple code-snippet that can be used to parse dates with javascript. It's setup to use European dates (dd.mm.yyyy | dd/mm/yyyy | dd,mm,yyyy), but it can easily be setup to use american dates as well (mm/dd/yyyy etc), to do so simply replace &quot;$1&quot; with &quot;$2&quot; and &quot;$2&quot; with &quot;$1&quot;.<br />
<br />
No framework should be required for this code to run.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>Alxandr</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238772.html</guid>
		</item>
		<item>
			<title>Submit Button linking to another page</title>
			<link>http://www.daniweb.com/forums/thread238763.html</link>
			<pubDate>Sun, 15 Nov 2009 21:47:03 GMT</pubDate>
			<description><![CDATA[How would I go about creating the coding for a submit button that links to another page?  And I would I go about creating the coding for the reset button that resets the page?  I go about creating a code to do so, but it never works.  Here is the coding I have for the submit button: 
 
  <div...]]></description>
			<content:encoded><![CDATA[<div>How would I go about creating the coding for a submit button that links to another page?  And I would I go about creating the coding for the reset button that resets the page?  I go about creating a code to do so, but it never works.  Here is the coding I have for the submit button:<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;p id=&quot;pbuttons&quot;&gt;&lt;center&gt;<br />
&nbsp;  &lt;input type=&quot;reset&quot; value=&quot;Reset&quot; /&gt;<br />
&nbsp;  &lt;input type=&quot;submit&quot; value=&quot;Submit Order&quot;&gt;<br />
&lt;/center&gt;&lt;/p&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>Rblalock</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238763.html</guid>
		</item>
		<item>
			<title>html - redirect</title>
			<link>http://www.daniweb.com/forums/thread238715.html</link>
			<pubDate>Sun, 15 Nov 2009 18:59:38 GMT</pubDate>
			<description><![CDATA[I am making a web site and I was wondering how I would redirect the user to a different website if Javascript is not enabled.  I can't use <noscript> because It needs to redirect.  Could I put a meta tag inside a noscript tag?  Thx.]]></description>
			<content:encoded><![CDATA[<div>I am making a web site and I was wondering how I would redirect the user to a different website if Javascript is not enabled.  I can't use &lt;noscript&gt; because It needs to redirect.  Could I put a meta tag inside a noscript tag?  Thx.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>Romil797</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238715.html</guid>
		</item>
		<item>
			<title>copy treeview node to another treeview node using javascript dynamically</title>
			<link>http://www.daniweb.com/forums/thread238586.html</link>
			<pubDate>Sun, 15 Nov 2009 03:51:51 GMT</pubDate>
			<description>hello , 
 
my problem is that.. i have 2 treeview 
 
treeview1 and treeview2 
 
my problem is that when i add the node on treeview1 then i want to just copy the same treeview1 node to another treeview2 node 
 
please tell me how to do that i just want to ask that please help me its urgent because i...</description>
			<content:encoded><![CDATA[<div>hello ,<br />
<br />
my problem is that.. i have 2 treeview<br />
<br />
treeview1 and treeview2<br />
<br />
my problem is that when i add the node on treeview1 then i want to just copy the same treeview1 node to another treeview2 node<br />
<br />
please tell me how to do that i just want to ask that please help me its urgent because i am stuck with the code more then 2 days a little problem make it too big ...</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>mkfastian</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238586.html</guid>
		</item>
		<item>
			<title>coverXP Pro 1.65 inc KeyGen</title>
			<link>http://www.daniweb.com/forums/thread238585.html</link>
			<pubDate>Sun, 15 Nov 2009 03:50:53 GMT</pubDate>
			<description>sorry wrong title entered..</description>
			<content:encoded><![CDATA[<div>sorry wrong title entered..</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>mkfastian</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238585.html</guid>
		</item>
		<item>
			<title>rolling dice</title>
			<link>http://www.daniweb.com/forums/thread238522.html</link>
			<pubDate>Sat, 14 Nov 2009 18:21:25 GMT</pubDate>
			<description><![CDATA[Hi, 
 
I am trying to code a game program in js that will allow the user to click on a "Roll Dice" button that calls a js function to randomly display various images of dice.  My problem is that I cant find a way to display the images where I want.  The only way so far I know is to use...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I am trying to code a game program in js that will allow the user to click on a &quot;Roll Dice&quot; button that calls a js function to randomly display various images of dice.  My problem is that I cant find a way to display the images where I want.  The only way so far I know is to use document.write but that creates a new page that displays only the image(s).  What I want is for the images to appear in a certain cell of a table.  This seems like it should be fairly easy to do but I cant find any information on the web..  Please help!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>Kadjii</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238522.html</guid>
		</item>
		<item>
			<title>javascript lighting</title>
			<link>http://www.daniweb.com/forums/thread238504.html</link>
			<pubDate>Sat, 14 Nov 2009 15:41:03 GMT</pubDate>
			<description><![CDATA[:icon_smile:* hello everyone ! .. I am Abhinab Roy. I am new to this Place and I am very glad to be here. I am pursuing a course called Diploma in Multimedia & Animation. :(I have a exam on 17th Nov. .. and I have a problem in Javascript. We have been told to make a javascript code that will do the...]]></description>
			<content:encoded><![CDATA[<div>:icon_smile:<span style="font-weight:bold"> hello everyone ! .. I am Abhinab Roy. I am new to this Place and I am very glad to be here. I am pursuing a course called Diploma in Multimedia &amp; Animation. :(I have a exam on 17th Nov. .. and I have a problem in Javascript. We have been told to make a javascript code that will do the following :<br />
i) there will be image <br />
ii) the image will previously be dark or black<br />
iii)Whenever the mouse will be rolled over it the place where the cursor is should be illuminated so that the image can be seen clearly.<br />
<br />
:'(someone please please help me out or atleat give me a hint.<br />
I will be in your debt.........<br />
Plzzz Someone help me out </span></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>abhymax</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238504.html</guid>
		</item>
		<item>
			<title>problem with pictures</title>
			<link>http://www.daniweb.com/forums/thread238388.html</link>
			<pubDate>Fri, 13 Nov 2009 22:08:45 GMT</pubDate>
			<description><![CDATA[Hello Everyone, 
Quick history....Im a systems engineer, total newbie to web dev. 
 
 
Ive been trying to maintain a memorial website that we had created when my sister passed away. It was hosted somewhere but the person who made it couldn't maintain it anymore, so I downloaded all of the pages and...]]></description>
			<content:encoded><![CDATA[<div>Hello Everyone,<br />
Quick history....Im a systems engineer, total newbie to web dev.<br />
<br />
<br />
Ive been trying to maintain a memorial website that we had created when my sister passed away. It was hosted somewhere but the person who made it couldn't maintain it anymore, so I downloaded all of the pages and rebuilt it on my linux server. Heres the site:<br />
<br />
<a rel="nofollow" class="t" href="http://triciajean.com" target="_blank">http://triciajean.com</a><br />
<br />
If you poke around on there you will see some pages that have text that says click here for more pictures, like on the growing up page, and the baby pictures page.<br />
<br />
Thats my problem, the links dont work. <br />
<br />
The pages were created with Freeway, and alot of javascript in there that I dont understand. I have all of the pictures in the directory , no clue why they wont load?<br />
<br />
Can anyone maybe help me out? Ill post the javascript that I think is the problem:<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot; &quot;http://www.w3.org/TR/html4/loose.dtd&quot;&gt;<br />
&lt;html&gt;&lt;head&gt;&lt;title&gt;Baby Pictures&lt;/title&gt;<br />
&lt;meta name=&quot;GENERATOR&quot; content=&quot;Freeway 4 Pro 4.2.2&quot;&gt;&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=ISO-8859-1&quot;&gt;&lt;style type=&quot;text/css&quot;&gt;<br />
body { margin-left:0px; margin-right:0px; margin-top:0px; background-color:#fff; background-image:url(Tricia-266pixels.jpg) }<br />
p:first-child { margin-top:0px }<br />
table { empty-cells:hide }<br />
._sp { font-size:1px; visibility:hidden }<br />
._lp { margin-bottom:0px }<br />
<br />
&lt;/style&gt;<br />
<br />
&lt;script language=&quot;javascript&quot;&gt;<br />
var ft_target1 = 0;<br />
function NewSlide(direction,wrap) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; var arr = new Array(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14);<br />
&nbsp; &nbsp; &nbsp; &nbsp; var obj;<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (arr.length &gt; 0)&nbsp; &nbsp;  {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (direction &gt; arr.length){ ft_target1=arr.length-1 }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else if (direction &lt; -arr.length) ft_target1 = 1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ft_target1 = ft_target1 + direction;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (ft_target1&lt;1){ if (wrap) ft_target1=arr.length; else ft_target1=1; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else if (ft_target1&gt;=arr.length){ if (wrap){ft_target1=1;} else {ft_target1=arr.length-1;} }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; targetnumber = arr[ft_target1];<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (top.frames.length) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (i = 0 ; i != top.frames.length ; i++) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; obj = eval(&quot;top.frames[&quot; + i + &quot;].window.FT_Indigo&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (obj != null) for (j in obj)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; obj[j](targetnumber, 1);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; obj = eval('top.FT_Indigo');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (obj != null) for (j in obj)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; obj[j](targetnumber, 1);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; obj = eval('window.FT_Indigo');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (obj != null) for (j in obj)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; obj[j](targetnumber, 1);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp;  }<br />
}<br />
<br />
&lt;/script&gt;&lt;script type=&quot;text/javascript&quot;&gt;//&lt;![CDATA[<br />
<br />
var fwIsNetscape = navigator.appName == 'Netscape';<br />
<br />
function FWLHitSwap(layer,name,num)<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; var image = arguments[num+3];<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (document.images &amp;&amp; image)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var uselayers = fwIsNetscape &amp;&amp; document.layers &amp;&amp; layer != '';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var hld;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (uselayers)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hld = document.layers[layer].document;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hld = (document.all) ? document.all : document;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hld[name].src = FWLoad(image);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
}<br />
<br />
fwLoad = new Object;<br />
function FWLoad(image)<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (!document.images)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return null;<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (!fwLoad[image])<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fwLoad[image]=new image;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fwLoad[image].src=image;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; return fwLoad[image].src;<br />
}<br />
<br />
function<br />
FWPreload(){FWLoad(&quot;baby3.jpeg&quot;);FWLoad(&quot;baby1aa.jpg&quot;);FWLoad(&quot;baby4.jpg&quot;);FWLoad(&quot;baby5.jpg&quot;);FWLoad(&quot;baby6.jpg&quot;);FWLoad(&quot;baby7.jpg&quot;);FWLoad(&quot;baby8.jpg&quot;);F<br />
href=&quot;http://guestbook.pax.nu/cgi-local/guest.cgi?book38120&quot;&gt;&lt;area alt=&quot;&quot; coords=&quot;483,54,518,67&quot;<br />
href=&quot;http://www.triciajean.com/eulogy.html&quot;&gt;&lt;area alt=&quot;&quot; coords=&quot;471,58,475,61&quot;<br />
href=&quot;http://www.triciajean.com/accident2a.html&quot;&gt;&lt;area alt=&quot;&quot; coords=&quot;345,55,463,64&quot;<br />
href=&quot;http://www.triciajean.com/teenyears.html&quot;&gt;&lt;area alt=&quot;&quot; coords=&quot;202,54,337,64&quot;<br />
href=&quot;http://www.triciajean.com/triciahorses.html&quot;&gt;&lt;area alt=&quot;&quot; coords=&quot;107,54,198,67&quot;<br />
href=&quot;http://www.triciajean.com/family.html&quot;&gt;&lt;area alt=&quot;&quot; coords=&quot;436,38,573,51&quot;<br />
href=&quot;http://www.triciajean.com/talents.html&quot;&gt;&lt;area alt=&quot;&quot; coords=&quot;353,38,432,51&quot;<br />
href=&quot;http://www.triciajean.com/schooldays.html&quot;&gt;&lt;area alt=&quot;&quot; coords=&quot;238,39,345,51&quot;<br />
href=&quot;http://www.triciajean.com/growingup.html&quot;&gt;&lt;area alt=&quot;&quot; coords=&quot;104,38,226,51&quot;<br />
href=&quot;http://www.triciajean.com/babypictures.html&quot;&gt;&lt;area alt=&quot;&quot; coords=&quot;52,39,100,48&quot;<br />
href=&quot;http://www.triciajean.com/kmiotek.html&quot;&gt;&lt;/map&gt;&lt;/div&gt;&lt;a class=&quot;abp-objtab&quot;<br />
href=&quot;http://www.apple.com/qtactivex/qtplugin.cab&quot; style=&quot;padding-left: 0px;&quot;&gt;&lt;/a&gt;&lt;a class=&quot;abp-objtab&quot;<br />
href=&quot;http://www.triciajean.com/WinnieThePooha.mid&quot; style=&quot;padding-left: 0px;&quot;&gt;&lt;/a&gt;&lt;object classid=&quot;clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B&quot; codebase=&quot;ht<br />
document.write('&lt;EMBED SRC=&quot;WinnieThePooha.mid&quot; HIDDEN=&quot;true&quot; LOOP=&quot;True&quot; AUTOPLAY=&quot;true&quot; autostart=&quot;true&quot;&gt;');function FWImage_Indigo(chain,msg){if (chain==</pre><br />
Thats actually an entire page, I cut that from putty and I think alot got cut off. Ill repost it when I get home if anyone thinks they can help!<br />
<br />
Well thanks alot!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>mekmiotek</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238388.html</guid>
		</item>
		<item>
			<title>Genealogy stuff</title>
			<link>http://www.daniweb.com/forums/thread238303.html</link>
			<pubDate>Fri, 13 Nov 2009 15:37:23 GMT</pubDate>
			<description><![CDATA[Hi! All 
 
I would like to have a way to do my application using a simple way. 
 
I have a genealogy site, since a long time ago. I have near 10,000 
pages (10,000 names) on a free hoster. Everything works fine. But I'd like to 
do the conversion from my FTW (Familky tree maker) to html page...]]></description>
			<content:encoded><![CDATA[<div>Hi! All<br />
<br />
I would like to have a way to do my application using a simple way.<br />
<br />
I have a genealogy site, since a long time ago. I have near 10,000<br />
pages (10,000 names) on a free hoster. Everything works fine. But I'd like to<br />
do the conversion from my FTW (Familky tree maker) to html page ,myself. I've use<br />
VB6 (Visula Basic 6) to do the conversion of all the pages, including all the <br />
html code on each page to link to other page. Like ,click on the father's name <br />
or the childre's name and it load the html page of this INDIVIDUAL. <br />
<br />
<br />
First  : I know very well VB6 , moderate in HTML , poor in Javascript.<br />
<br />
Second : I have 10,000 pages (One for each individual), so is there a way<br />
         to only have a template page (on the server side = my hoster) and<br />
         a few text file (.txt) to pick up the data. Cause there are only 40-50<br />
         string data to put on each page but a lot of html code to make a <br />
         good looking page. So having a template html page that we can just <br />
         add at the right place ,the data of this individual then send it<br />
         would be much smaller. So instead of a lot of pages there will be only a few.<br />
<br />
Third  : I'd like to place on the viewable page, 3 cascading &quot;selection list&quot;.<br />
         The first one will be populated with the letter from A to Z , from the<br />
         HTML code. The second list would have all the name of the family , like <br />
         Smith, Johnson, rimes etc , ordered. I already have a text file of <br />
         those names. And the third list , will have all the first name like Daniel<br />
         Steve, Leann, ordered too, and I also have this ordered text file.<br />
         So in a few click , we will be able to go to another individual.<br />
<br />
<br />
Have try a lot of things but never been able to do it.<br />
I like to keep the text file for data, as it's very easy <br />
to change using VB6 and easy to read, too. <br />
         <br />
As written before, it must be easy to understand. <br />
I don't mind giving a small donation to have it, cause I really<br />
try hard to do it without been able to do it working.<br />
And it could be useful to other, too.<br />
<br />
Thanks at advance.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>dj_dan23</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238303.html</guid>
		</item>
		<item>
			<title>Protecting a Page within a Forum</title>
			<link>http://www.daniweb.com/forums/thread238281.html</link>
			<pubDate>Fri, 13 Nov 2009 13:53:22 GMT</pubDate>
			<description><![CDATA[Alright, I made a form, but I don't want just anyone to be able to use it.  So I was wondering if it was possible for the page to check if they were logged into my forum.  Any suggestions would be great =].]]></description>
			<content:encoded><![CDATA[<div>Alright, I made a form, but I don't want just anyone to be able to use it.  So I was wondering if it was possible for the page to check if they were logged into my forum.  Any suggestions would be great =].</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>Moselekm</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238281.html</guid>
		</item>
		<item>
			<title>Modifying calcPrice() function in JavaScript</title>
			<link>http://www.daniweb.com/forums/thread238278.html</link>
			<pubDate>Fri, 13 Nov 2009 13:41:57 GMT</pubDate>
			<description><![CDATA[<div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags" target="_blank">Help with Code Tags</a> </div> <div> <strong>JavaScript / DHTML / AJAX...]]></description>
			<content:encoded><![CDATA[<div> <pre style="margin:20px; line-height:13px">&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;Moultrie Technical College - Worth County Campus&lt;/title&gt;<br />
<br />
&lt;style type=&quot;text/css&quot; media=&quot;all&quot;&gt;<br />
<br />
/* Ryan Blalock (ShoppingCart.htm)<br />
10/29/09 */<br />
<br />
body {<br />
background: transparent url(images/bg.gif) repeat left top; }<br />
<br />
table {<br />
color: white;<br />
width: 800px;<br />
margin-left: auto;<br />
margin-right: auto;<br />
font-size: 10pt;<br />
font-family: arial,helvetica,sans-serif;<br />
background-color: black; }<br />
<br />
td#header {<br />
font-size: 16pt;<br />
text-align: center; }<br />
<br />
td, th {<br />
padding: .3em; }<br />
<br />
td.align {<br />
vertical-align: top; }<br />
<br />
h1 {<br />
width: 775px;<br />
height: 125px;<br />
font-size: 20pt;<br />
font-family: &quot;bernhardmod BT&quot;,serif;<br />
padding: 15 15 0 40;<br />
background-image: url(logo.png);<br />
background-repeat: no-repeat;<br />
text-align: center;<br />
border-bottom: groove thick;<br />
margin-bottom: 0; }<br />
<br />
.center {<br />
text-align: center; }<br />
<br />
tr#black {<br />
color: white;<br />
background-color: black;<br />
font-weight: bold;<br />
text-align: center; }<br />
<br />
tr#nav {<br />
color: black;<br />
background: #000 url(images/headergradient.png) repeat-x left bottom;<br />
font-weight: bold;<br />
text-align: center; }<br />
<br />
tr#header {<br />
color: black;<br />
background-color: #FFF;<br />
font-weight: bold;<br />
text-align: center; }<br />
<br />
td#body {<br />
color: black;<br />
background-color: #FFF;<br />
text-align: justify; }<br />
<br />
&lt;/style&gt;<br />
<br />
&lt;script type=&quot;text/javascript&quot;&gt;<br />
<br />
var imageclock=new Object()<br />
&nbsp; &nbsp; &nbsp; &nbsp; //Enter path to clock digit images here, in order of 0-9, then &quot;am/pm&quot;, then colon image:<br />
&nbsp; &nbsp; &nbsp; &nbsp; imageclock.digits=[&quot;images/clock/c0.gif&quot;, &quot;images/clock/c1.gif&quot;, &quot;images/clock/c2.gif&quot;, <br />
<br />
&quot;images/clock/c3.gif&quot;, &quot;images/clock/c4.gif&quot;, &quot;images/clock/c5.gif&quot;, &quot;images/clock/c6.gif&quot;, <br />
<br />
&quot;images/clock/c7.gif&quot;, &quot;images/clock/c8.gif&quot;, &quot;images/clock/c9.gif&quot;, &quot;images/clock/cam.gif&quot;, <br />
<br />
&quot;images/clock/cpm.gif&quot;, &quot;images/clock/colon.gif&quot;]<br />
&nbsp; &nbsp; &nbsp; &nbsp; imageclock.instances=0<br />
&nbsp; &nbsp; &nbsp; &nbsp; var preloadimages=[]<br />
&nbsp; &nbsp; &nbsp; &nbsp; for (var i=0; i&lt;imageclock.digits.length; i++){ //preload images<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; preloadimages[i]=new Image()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; preloadimages[i].src=imageclock.digits[i]<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; imageclock.imageHTML=function(timestring){ //return timestring (ie: 1:56:38) into string of images <br />
<br />
instead<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var sections=timestring.split(&quot;:&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (sections[0]==&quot;0&quot;) //If hour field is 0 (aka 12 AM)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sections[0]=&quot;12&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else if (sections[0]&gt;=13)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sections[0]=sections[0]-12+&quot;&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (var i=0; i&lt;sections.length; i++){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (sections[i].length==1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sections[i]='&lt;img src=&quot;'+imageclock.digits[0]+'&quot; /&gt;'+'&lt;img <br />
<br />
src=&quot;'+imageclock.digits[parseInt(sections[i])]+'&quot; /&gt;'<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sections[i]='&lt;img <br />
<br />
src=&quot;'+imageclock.digits[parseInt(sections[i].charAt(0))]+'&quot; /&gt;'+'&lt;img <br />
<br />
src=&quot;'+imageclock.digits[parseInt(sections[i].charAt(1))]+'&quot; /&gt;'<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return sections[0]+'&lt;img src=&quot;'+imageclock.digits[12]+'&quot; /&gt;'+sections[1]+'&lt;img <br />
<br />
src=&quot;'+imageclock.digits[12]+'&quot; /&gt;'+sections[2]<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; imageclock.display=function(){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var clockinstance=this<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this.spanid=&quot;clockspan&quot;+(imageclock.instances++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.write('&lt;span id=&quot;'+this.spanid+'&quot;&gt;&lt;/span&gt;')<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this.update()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; setInterval(function(){clockinstance.update()}, 1000)<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; imageclock.display.prototype.update=function(){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var dateobj=new Date()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var currenttime=dateobj.getHours()+&quot;:&quot;+dateobj.getMinutes()+&quot;:&quot;+dateobj.getSeconds() <br />
<br />
//create time string<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var currenttimeHTML=imageclock.imageHTML(currenttime)+'&lt;img <br />
<br />
src=&quot;'+((dateobj.getHours()&gt;=12)? imageclock.digits[11] : imageclock.digits[10])+'&quot; /&gt;'<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.getElementById(this.spanid).innerHTML=currenttimeHTML<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&lt;/script&gt;<br />
<br />
&lt;script type=&quot;text/javascript&quot;&gt;<br />
<br />
function startForm() {<br />
&nbsp; document.form1.date.value = todayTxt();<br />
&nbsp; document.form1.prod.focus();<br />
}<br />
<br />
function calcPrice() {<br />
&nbsp; product = document.form1.prod;<br />
&nbsp; pindex = product.selectedIndex;<br />
&nbsp; product_price = product.options[pindex].value;<br />
&nbsp; quantity = document.form1.qty;<br />
&nbsp; qindex = quantity.selectedIndex;<br />
&nbsp; quantity_ordered = quantity.options[qindex].value;<br />
&nbsp; document.form1.price.value = product_price*quantity_ordered;<br />
}<br />
<br />
function calcShipping(shipoption) {<br />
&nbsp; document.form1.ship.value = shipoption.value;<br />
}<br />
<br />
function calcTotal() {<br />
&nbsp; priceVal = parserFloat(document.form1.price.value);<br />
&nbsp; shipVal = parserFloat(document.form1.ship.value);<br />
&nbsp; taxval = 0.05*(priceVal+shipVal);<br />
&nbsp; document.form1.sub.value = (priceVal+shipVal).toFixed(2);<br />
&nbsp; document.form1.tax.value = (taxVal).toFized(2);<br />
&nbsp; document.form1.tot.value = (priceVal+shipVal+taxVal).toFixed(2);<br />
}<br />
<br />
&lt;/script&gt;<br />
&lt;/head&gt;<br />
<br />
&lt;body onload=&quot;startForm()&quot;&gt;<br />
&lt;form name=&quot;form1&quot; method=&quot;post&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; onsubmit=&quot;return checkForm1()&quot; onreset=&quot;location.reload()&quot;&gt;<br />
&lt;div class=&quot;center&quot;&gt;<br />
<br />
&lt;table border=&quot;0&quot;&gt;<br />
&lt;tr id=&quot;header&quot;&gt;<br />
&nbsp; &lt;td colspan=&quot;2&quot;&gt;&lt;h1&gt;Moultrie Technical College&lt;br /&gt;Worth County Campus&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td align=&quot;right&quot;&gt;<br />
&lt;script type=&quot;text/javascript&quot;&gt;<br />
<br />
new imageclock.display()<br />
<br />
&lt;/script&gt;<br />
&lt;/td&gt;&lt;/tr&gt;<br />
&lt;tr id=&quot;nav&quot;&gt;<br />
<br />
&lt;td&gt;Navigation:: &lt;a href=&quot;index.html&quot;&gt;Home&lt;/a&gt; | &lt;a href=&quot;infotech.html&quot;&gt;Information Technology&lt;/a&gt; | &lt;a <br />
<br />
href=&quot;webdesign.html&quot;&gt;Web Design&lt;/a&gt; | &lt;a href=&quot;cosmo.html&quot;&gt;Cosmetology&lt;/a&gt; | &lt;a <br />
<br />
href=&quot;ShoppingCart.htm&quot;&gt;Shopping Cart&lt;/a&gt; | &lt;a href=&quot;welding.html&quot;&gt;Welding&lt;/a&gt; | &lt;a <br />
<br />
href=&quot;comptia.html&quot;&gt;CompTIA&lt;/a&gt;&lt;/td&gt;<br />
<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
<br />
&lt;td id=&quot;body&quot;&gt;E-mail us at: <br />
&lt;b&gt;&lt;script type=&quot;text/javascript&quot;&gt;<br />
document.write(&quot;moultrie@moultrietech.edu&quot;);<br />
&lt;/script&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;<br />
<br />
<br />
&lt;td id=&quot;body&quot;&gt;&lt;h2&gt;&lt;center&gt;&lt;u&gt;Moultrie Tech (Worth) Shopping Cart&lt;/u&gt;&lt;/center&gt;&lt;/h2&gt;<br />
<br />
&lt;table&gt;<br />
<br />
&lt;form name=&quot;orders&quot; id=&quot;orders&quot; method=&quot;post&quot; action=&quot;done.htm&quot;&gt;<br />
<br />
&lt;p id=&quot;datep&quot;&gt;<br />
&nbsp;  &lt;input id=&quot;text&quot; id=&quot;date&quot; name=&quot;date&quot; size=&quot;11&quot; value=&quot;mm-dd-yyyy&quot; <br />
&nbsp; &nbsp; tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;&lt;/td&gt;<br />
&lt;/p&gt;<br />
<br />
&lt;table cellspacing=&quot;2&quot;&gt;<br />
&lt;tr&gt;&lt;th id=&quot;label&quot;&gt;Product&lt;/th&gt;&lt;th&gt;Price&lt;/th&gt;<br />
&nbsp; &nbsp; &lt;th&gt;Quantity&lt;/th&gt;&lt;th&gt;Cost&lt;/th&gt;&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot; onchange=&quot;calcPrice()&quot;&gt;New Perspectives on Blended HTML, XHTML, and CSS, 1st Edition&lt;/td&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot;&gt;&lt;input name=&quot;price1&quot; id=&quot;price1&quot; size=&quot;8&quot; value=&quot;77.99&quot; <br />
&nbsp; &nbsp; &nbsp; &nbsp; tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; onFocus=&quot;return calcPrice('price1','qty1');&quot; /&gt;<br />
&nbsp;  &lt;/td&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot;&gt;&lt;input name=&quot;qty1&quot; id=&quot;qty1&quot; size=&quot;8&quot; value=&quot;0&quot; /&gt;<br />
&nbsp;  &lt;/td&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot;&gt;&lt;input name=&quot;cost1&quot; id=&quot;cost1&quot; size=&quot;12&quot; value=&quot;0.00&quot; <br />
&nbsp; &nbsp; &nbsp; &nbsp; tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; onFocus=&quot;return calcPrice('price1','qty1');&quot; /&gt;<br />
&nbsp;  &lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot; onchange=&quot;calcPrice()&quot;&gt;New Perspectives on JavaScript, 1st Edition&lt;/td&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot;&gt;&lt;input name=&quot;price2&quot; id=&quot;price2&quot; size=&quot;8&quot; value=&quot;66.99&quot; <br />
&nbsp; &nbsp; &nbsp; &nbsp; tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;<br />
&nbsp;  &lt;/td&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot;&gt;&lt;input name=&quot;qty2&quot; id=&quot;qty2&quot; size=&quot;8&quot; value=&quot;0&quot; /&gt;<br />
&nbsp;  &lt;/td&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot;&gt;&lt;input name=&quot;cost2&quot; id=&quot;cost2&quot; size=&quot;12&quot; value=&quot;0.00&quot; <br />
&nbsp; &nbsp; &nbsp; &nbsp; tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;<br />
&nbsp;  &lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot; onchange=&quot;calcPrice()&quot;&gt;New Perspectives on Macromedia Dreamweaver 8, Comprehensive, 1st <br />
<br />
Edition&lt;/td&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot;&gt;&lt;input name=&quot;price3&quot; id=&quot;price3&quot; size=&quot;8&quot; value=&quot;83.99&quot; <br />
&nbsp; &nbsp; &nbsp; &nbsp; tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;&lt;/td&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot;&gt;&lt;input name=&quot;qty3&quot; id=&quot;qty3&quot; size=&quot;8&quot; value=&quot;0&quot; /&gt;<br />
&nbsp;  &lt;/td&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot;&gt;&lt;input name=&quot;cost3&quot; id=&quot;cost3&quot; size=&quot;12&quot; value=&quot;0.00&quot; <br />
&nbsp; &nbsp; &nbsp; &nbsp; tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;<br />
&nbsp;  &lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot; onchange=&quot;calcPrice()&quot;&gt;Adobe Photoshop CS4: Complete Concepts and Techniques, 1st <br />
<br />
Edition&lt;/td&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot;&gt;&lt;input name=&quot;price4&quot; id=&quot;price4&quot; size=&quot;8&quot; value=&quot;69.99&quot; <br />
&nbsp; &nbsp; &nbsp; &nbsp; tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;&lt;/td&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot;&gt;&lt;input name=&quot;qty4&quot; id=&quot;qty4&quot; size=&quot;8&quot; value=&quot;0&quot; /&gt;<br />
&nbsp;  &lt;/td&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot;&gt;&lt;input name=&quot;cost4&quot; id=&quot;cost4&quot; size=&quot;12&quot; value=&quot;0.00&quot; <br />
&nbsp; &nbsp; &nbsp; &nbsp; tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;<br />
&nbsp;  &lt;/td&gt;<br />
&nbsp;  &lt;/tr&gt;<br />
&lt;tr&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot; onchange=&quot;calcPrice()&quot;&gt;Miladys Standard Cosmetology 2008, 1st Edition&lt;/td&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot;&gt;&lt;input name=&quot;price5&quot; id=&quot;price5&quot; size=&quot;8&quot; value=&quot;78.99&quot; <br />
&nbsp; &nbsp; &nbsp; &nbsp; tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;&lt;/td&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot;&gt;&lt;input name=&quot;qty5&quot; id=&quot;qty5&quot; size=&quot;8&quot; value=&quot;0&quot; /&gt;<br />
&nbsp;  &lt;/td&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot;&gt;&lt;input name=&quot;cost5&quot; id=&quot;cost5&quot; size=&quot;12&quot; value=&quot;0.00&quot; <br />
&nbsp; &nbsp; &nbsp; &nbsp; tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;<br />
&nbsp;  &lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot; onchange=&quot;calcPrice()&quot;&gt;Network+ Guide to Networks, 4th Edition&lt;/td&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot;&gt;&lt;input name=&quot;price6&quot; id=&quot;price6&quot; size=&quot;8&quot; value=&quot;106.95&quot; <br />
&nbsp; &nbsp; &nbsp; &nbsp; tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;&lt;/td&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot;&gt;&lt;input name=&quot;qty6&quot; id=&quot;qty6&quot; size=&quot;8&quot; value=&quot;0&quot; /&gt;<br />
&nbsp;  &lt;/td&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot;&gt;&lt;input name=&quot;cost6&quot; id=&quot;cost6&quot; size=&quot;12&quot; value=&quot;0.00&quot; <br />
&nbsp; &nbsp; &nbsp; &nbsp; tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;<br />
&nbsp;  &lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;&lt;td id=&quot;body&quot; colspan=&quot;4&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot; colspan=&quot;3&quot;&gt;Sales Tax (5%)&lt;/td&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot;&gt;&lt;input name=&quot;tax&quot; id=&quot;tax&quot; size=&quot;12&quot; value=&quot;0.00&quot; <br />
&nbsp; &nbsp; &nbsp; &nbsp; tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;<br />
&nbsp;  &lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot; colspan=&quot;4&quot;&gt;<br />
&nbsp; &nbsp;  &lt;p&gt;&lt;input type=&quot;radio&quot; name=&quot;shipType&quot; id=&quot;ship1&quot; value=&quot;4.95&quot; onclick=&quot;calcShipping(this)&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp;  &lt;label for=&quot;ship1&quot;&gt;Standard (4-6 business days): $4.95&lt;/label&gt;<br />
&nbsp; &nbsp;  &lt;/p&gt;<br />
&nbsp; &nbsp;  &lt;p&gt;&lt;input type=&quot;radio&quot; name=&quot;shipType&quot; id=&quot;ship2&quot; value=&quot;8.95&quot;<br />
onclick=&quot;calcShipping(this)&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp;  &lt;label for=&quot;ship2&quot;&gt;Express (2 days): $8.95&lt;/label&gt;<br />
&nbsp; &nbsp;  &lt;/p&gt;<br />
&nbsp; &nbsp;  &lt;p&gt;&lt;input type=&quot;radio&quot; name=&quot;shipType&quot; id=&quot;ship3&quot; value=&quot;12.95&quot;<br />
onclick=&quot;calcsShipping(this)&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp;  &lt;label for=&quot;ship3&quot;&gt;Next Day (1 Day): $12.95&lt;/label&gt;<br />
&nbsp; &nbsp;  &lt;/p&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot; colspan=&quot;3&quot;&gt;TOTAL&lt;/td&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot;&gt;&lt;input name=&quot;total&quot; id=&quot;total&quot; si<br />
value=&quot;0.00&quot; <br />
&nbsp; &nbsp; &nbsp; &nbsp; tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;<br />
&nbsp;  &lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&nbsp;<br />
&lt;p id=&quot;pbuttons&quot;&gt;&lt;center&gt;<br />
&nbsp;  &lt;input type=&quot;reset&quot; value=&quot;Reset&quot; /&gt;<br />
&nbsp;  &lt;input type=&quot;submit&quot; value=&quot;Submit Order&quot; /&gt;<br />
&lt;/center&gt;&lt;/p&gt;<br />
<br />
&lt;/form&gt;<br />
&lt;/script&gt;<br />
<br />
&lt;br /&gt;<br />
&lt;br /&gt;<br />
&lt;tr id=&quot;black&quot;&gt;<br />
&nbsp; &lt;td colspan=&quot;2&quot;&gt;1210 North Monroe Street Sylvester, GA 31791.&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;/div&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</pre><br />
How would I change the  <pre style="margin:20px; line-height:13px">function calcPrice() {<br />
&nbsp; product = document.form1.prod;<br />
&nbsp; pindex = product.selectedIndex;<br />
&nbsp; product_price = product.options[pindex].value;<br />
&nbsp; quantity = document.form1.qty;<br />
&nbsp; qindex = quantity.selectedIndex;<br />
&nbsp; quantity_ordered = quantity.options[qindex].value;<br />
&nbsp; document.form1.price.value = product_price*quantity_ordered;<br />
}</pre><br />
to accept the  <pre style="margin:20px; line-height:13px">&lt;td class=&quot;body&quot;&gt;&lt;input name=&quot;cost1&quot; id=&quot;cost1&quot; size=&quot;12&quot; value=&quot;0.00&quot;<br />
tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; onFocus=&quot;return calcPrice('price1','qty1');&quot; /&gt;<br />
&lt;/td&gt;</pre> element id too.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>Rblalock</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238278.html</guid>
		</item>
		<item>
			<title>Tree menu</title>
			<link>http://www.daniweb.com/forums/thread238275.html</link>
			<pubDate>Fri, 13 Nov 2009 13:27:49 GMT</pubDate>
			<description><![CDATA[<div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags" target="_blank">Help with Code Tags</a> </div> <div> <strong>JavaScript / DHTML / AJAX...]]></description>
			<content:encoded><![CDATA[<div> <pre style="margin:20px; line-height:13px">&lt;div id=&quot;menu&quot; class=&quot;menu&quot;&gt;<br />
&nbsp; &lt;a href=&quot;/&quot; title=&quot;Nornix TreeMenu&quot;&gt;start&lt;/a&gt;<br />
&nbsp; &lt;ul&gt;<br />
&nbsp; &nbsp; &lt;li&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;a href=&quot;/info&quot; title=&quot;Information&quot;&gt;info&lt;/a&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;ul&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;li&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;/info/features&quot;&gt;features&lt;/a&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/li&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;li&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;/info/layers&quot;&gt;layers&lt;/a&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/li&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;li&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;/info/compatibility&quot;&gt;compatibility&lt;/a&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/li&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;li&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;/info/usage&quot;&gt;usage&lt;/a&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;ul&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;li&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a title=&quot;HTML structure&quot;&gt;HTML&lt;/a&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/li&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;li&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;/info/usage/css&quot; title=&quot;CSS classes&quot;&gt;CSS&lt;/a&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/li&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;li&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;/info/usage/js&quot; title=&quot;JS behavior&quot;&gt;JS&lt;/a&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/li&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/ul&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/li&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/ul&gt;<br />
&nbsp; &nbsp; &lt;/li&gt;<br />
&nbsp; &nbsp; &lt;li&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;a href=&quot;/license&quot;&gt;license&lt;/a&gt;<br />
&nbsp; &nbsp; &lt;/li&gt;<br />
&nbsp; &nbsp; &lt;li&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;a href=&quot;/contact&quot;&gt;contact&lt;/a&gt;<br />
&nbsp; &nbsp; &lt;/li&gt;<br />
&nbsp; &lt;/ul&gt;<br />
&lt;/div&gt;</pre><br />
I wan tto do sthg similar, but without those squares and circles..<br />
I want it to be  by div and span maybe? can someone give me a code of tree menu without those squars/cirecles</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>hajjo</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238275.html</guid>
		</item>
		<item>
			<title>dhtml, element calling function that destroys element causes page reload, why?</title>
			<link>http://www.daniweb.com/forums/thread238154.html</link>
			<pubDate>Thu, 12 Nov 2009 23:10:56 GMT</pubDate>
			<description><![CDATA[hi friends, i try to make some selector of items placed in <div>, and click on some of items should delete one by changing innerHTML of <div>. delete works, but after delete html page reloads. i suppose its because element, originator, calling delete function exist at time of calling, but after...]]></description>
			<content:encoded><![CDATA[<div>hi friends, i try to make some selector of items placed in &lt;div&gt;, and click on some of items should delete one by changing innerHTML of &lt;div&gt;. delete works, but after delete html page reloads. i suppose its because element, originator, calling delete function exist at time of calling, but after delete no more exists and javascript engine forces page reload instead of error. is there any way to solve this behaviour?<br />
thanks a lot, have a good times<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;&gt;<br />
&lt;html&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;head&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;title&gt;&lt;/title&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;script type=&quot;text/javascript&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!--<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; selection = &quot;1:text1,2:text2,3:text3,&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; function getelebyid(id)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(document.layers)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  //NN4+<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; obj = document.layers[id];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else if(document.getElementById)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //gecko(NN6) + IE 5+<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; obj = document.getElementById(id);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else if(document.all)&nbsp; &nbsp; &nbsp; &nbsp; // IE 4<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; obj = document.all[id];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return obj;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; function showselected()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(selection)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tmp = selection<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; html = '&lt;table cellpadding=3&gt;&lt;tr&gt;'<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while (1==1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pos = tmp.indexOf(&quot;,&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (pos &lt; 0)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pos2 = tmp.indexOf(&quot;:&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; id = tmp.substring(0,pos2)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; text = tmp.substring(pos2 + 1, pos)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; html = html + '&lt;td&gt;&lt;a href=&quot;&quot; onclick=&quot;removefromselection(\'' + id + '\');&quot;&gt;X&lt;/a&gt;&lt;br&gt;&lt;b&gt;' + text + '&lt;/b&gt;&lt;/td&gt;'<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tmp = tmp.substring(pos + 1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; html = html + '&lt;/tr&gt;&lt;/table&gt;'<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; getelebyid('iddivselection').innerHTML = html<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return 0<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; function removefromselection(idtoremove)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tmp = selection<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; newselection = ''<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while (1==1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pos = tmp.indexOf(&quot;,&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (pos &lt; 0)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pos2 = tmp.indexOf(&quot;:&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; id = tmp.substring(0,pos2)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; text = tmp.substring(pos2 + 1, pos)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (id != idtoremove)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; newselection = newselection + id + &quot;:&quot; + text + &quot;,&quot; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tmp = tmp.substring(pos + 1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; selection = newselection<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; showselected()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return 0<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; // --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/script&gt;<br />
&nbsp; &lt;/head&gt;<br />
&nbsp; <br />
&nbsp; &lt;body onload=alert(&quot;loaded&quot;)&gt;<br />
&lt;div id=iddivselection&gt;&lt;/div&gt;<br />
&nbsp; &lt;/body&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;script type=&quot;text/javascript&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!--<br />
&nbsp; &nbsp; &nbsp; &nbsp; showselected();<br />
&nbsp; &nbsp; &nbsp; &nbsp; // --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/script&gt;<br />
&lt;/html&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>3.14</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238154.html</guid>
		</item>
		<item>
			<title>Array.push is STOPPING conditional code</title>
			<link>http://www.daniweb.com/forums/thread238057.html</link>
			<pubDate>Thu, 12 Nov 2009 16:00:23 GMT</pubDate>
			<description>Alright, I think 3 hours of feeling like an idiot and searching and then feeling even more stumped is grounds enough to post here. 
 
I am basically just practicing with javascript (Just started a few days ago) and wanted to create an array that pretty much checked a form for errors, listed errors,...</description>
			<content:encoded><![CDATA[<div>Alright, I think 3 hours of feeling like an idiot and searching and then feeling even more stumped is grounds enough to post here.<br />
<br />
I am basically just practicing with javascript (Just started a few days ago) and wanted to create an array that pretty much checked a form for errors, listed errors, then spewed them out in the end.<br />
<br />
I am sure there is source code for something like this, but I wanted to just do this out of practice, as I have done this before in PHP.<br />
<br />
I am basically making a function with a bunch of if statements and if any of them pop up I try to PUSH a string into the array.  Now, it has worked, somewhat and sometimes.  But then it just plain stopped working.<br />
<br />
I played with the code for a while, placing alerts in parts of the function and found that it WAS the push code that stopped it from running completely.  Can anyone help?  I honestly don't think posting my code will help.  Can a Push not exist in an If statement?<br />
<br />
[Yes, I have tried to old LENGTH fashion way of doing it.  NO my software is not outdated]</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>Moselekm</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238057.html</guid>
		</item>
		<item>
			<title>javascript to load images?</title>
			<link>http://www.daniweb.com/forums/thread238051.html</link>
			<pubDate>Thu, 12 Nov 2009 15:10:47 GMT</pubDate>
			<description>Hello! 
 
I got a page which whenever a checkbox is checked I want to insert an image to the right of the check box. Can anyone help? 
 
- realchamp.</description>
			<content:encoded><![CDATA[<div>Hello!<br />
<br />
I got a page which whenever a checkbox is checked I want to insert an image to the right of the check box. Can anyone help?<br />
<br />
- realchamp.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>realchamp</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238051.html</guid>
		</item>
		<item>
			<title>java script program to find dates between two dates</title>
			<link>http://www.daniweb.com/forums/thread237958.html</link>
			<pubDate>Thu, 12 Nov 2009 08:24:27 GMT</pubDate>
			<description>Hi , 
I need to find all the dates between two given dates. 
For e.g dates between, 02/03/09 and 02/15/09 format is in mm/dd/yy. 
I need java script program for this. Kindly help.</description>
			<content:encoded><![CDATA[<div>Hi ,<br />
I need to find all the dates between two given dates.<br />
For e.g dates between, 02/03/09 and 02/15/09 format is in mm/dd/yy.<br />
I need java script program for this. Kindly help.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>rashi_b</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237958.html</guid>
		</item>
		<item>
			<title>online chat for mysite</title>
			<link>http://www.daniweb.com/forums/thread237935.html</link>
			<pubDate>Thu, 12 Nov 2009 06:16:40 GMT</pubDate>
			<description>how to add online chat for my new website, 
what i to do, ineed assistance from u ist stage last stage, 
 
thank! 
 
 
 
regards, 
krishna.</description>
			<content:encoded><![CDATA[<div>how to add online chat for my new website,<br />
what i to do, ineed assistance from u ist stage last stage,<br />
<br />
thank!<br />
<br />
<br />
<br />
regards,<br />
krishna.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>krishnaboppana</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237935.html</guid>
		</item>
		<item>
			<title>Need help building an instant messaging system with AJAX/PHP</title>
			<link>http://www.daniweb.com/forums/thread237906.html</link>
			<pubDate>Thu, 12 Nov 2009 03:37:08 GMT</pubDate>
			<description>Hi guys, 
 
I am trying to add an instant messaging system to my website so that logged in member can chat one-on-one with other member on his/her contact list. I am aware that there are many of such free scripts that I can use but I would rather learn to do it myself. So, could anyone please tell...</description>
			<content:encoded><![CDATA[<div>Hi guys,<br />
<br />
I am trying to add an instant messaging system to my website so that logged in member can chat one-on-one with other member on his/her contact list. I am aware that there are many of such free scripts that I can use but I would rather learn to do it myself. So, could anyone please tell me how to set it up or at least where the resources are.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>anatta</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237906.html</guid>
		</item>
		<item>
			<title>Calculating Price in JavaScript</title>
			<link>http://www.daniweb.com/forums/thread237877.html</link>
			<pubDate>Thu, 12 Nov 2009 01:17:51 GMT</pubDate>
			<description><![CDATA[*I need help understand where to place (and how to create)   <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags" target="_blank">Help with...]]></description>
			<content:encoded><![CDATA[<div><span style="font-weight:bold">I need help understand where to place (and how to create)  <pre style="margin:20px; line-height:13px">function calcPrice() {<br />
&nbsp; product = document.form1.prod;<br />
&nbsp; pindex = product.selectedIndex;<br />
&nbsp; product_price = product.options[pindex].value;<br />
&nbsp; quantity = document.form1.qty;<br />
&nbsp; qindex = quantity.selectedIndex;<br />
&nbsp; quantity_ordered = quantity.options[qindex].value;<br />
&nbsp; document.form1.price.value = product_price*quantity_ordered;<br />
}</pre>.  I also need to know where to add the  <pre style="margin:20px; line-height:13px">onchange = &quot;calcPrice()&quot;</pre> event handler.  I will post my coding below, please help.</span><br />
<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;Moultrie Technical College - Worth County Campus&lt;/title&gt;<br />
<br />
&lt;style type=&quot;text/css&quot; media=&quot;all&quot;&gt;<br />
<br />
/* Ryan Blalock (ShoppingCart.htm)<br />
10/29/09 */<br />
<br />
body {<br />
background: transparent url(images/bg.gif) repeat left top; }<br />
<br />
table {<br />
color:white;<br />
width: 800px;<br />
margin-left: auto;<br />
margin-right: auto;<br />
font-size: 10pt;<br />
font-family: arial,helvetica,sans-serif;<br />
background-color: black; }<br />
<br />
td#header {<br />
font-size: 16pt;<br />
text-align: center; }<br />
<br />
td, th {<br />
padding: .3em; }<br />
<br />
td.align {<br />
vertical-align: top; }<br />
<br />
h1 {<br />
width: 775px;<br />
height: 125px;<br />
font-size: 20pt;<br />
font-family: &quot;bernhardmod BT&quot;,serif;<br />
padding: 15 15 0 40;<br />
background-image: url(logo.png);<br />
background-repeat: no-repeat;<br />
text-align: center;<br />
border-bottom: groove thick;<br />
margin-bottom: 0; }<br />
<br />
.center {<br />
text-align: center; }<br />
<br />
tr#black {<br />
color: white;<br />
background-color: black;<br />
font-weight: bold;<br />
text-align: center; }<br />
<br />
tr#nav {<br />
color: black;<br />
background: #000 url(images/headergradient.png) repeat-x left bottom;<br />
font-weight: bold;<br />
text-align: center; }<br />
<br />
tr#header {<br />
color: black;<br />
background-color: #FFF;<br />
font-weight: bold;<br />
text-align: center; }<br />
<br />
td#body {<br />
color: black;<br />
background-color: #FFF;<br />
text-align: justify; }<br />
<br />
&lt;/style&gt;<br />
<br />
&lt;script type=&quot;text/javascript&quot;&gt;<br />
<br />
var imageclock=new Object()<br />
	//Enter path to clock digit images here, in order of 0-9, then &quot;am/pm&quot;, then colon image:<br />
	imageclock.digits=[&quot;images/clock/c0.gif&quot;, &quot;images/clock/c1.gif&quot;, &quot;images/clock/c2.gif&quot;, <br />
<br />
&quot;images/clock/c3.gif&quot;, &quot;images/clock/c4.gif&quot;, &quot;images/clock/c5.gif&quot;, &quot;images/clock/c6.gif&quot;, <br />
<br />
&quot;images/clock/c7.gif&quot;, &quot;images/clock/c8.gif&quot;, &quot;images/clock/c9.gif&quot;, &quot;images/clock/cam.gif&quot;, <br />
<br />
&quot;images/clock/cpm.gif&quot;, &quot;images/clock/colon.gif&quot;]<br />
	imageclock.instances=0<br />
	var preloadimages=[]<br />
	for (var i=0; i&lt;imageclock.digits.length; i++){ //preload images<br />
		preloadimages[i]=new Image()<br />
		preloadimages[i].src=imageclock.digits[i]<br />
	}<br />
<br />
	imageclock.imageHTML=function(timestring){ //return timestring (ie: 1:56:38) into string of <br />
<br />
images instead<br />
		var sections=timestring.split(&quot;:&quot;)<br />
		if (sections[0]==&quot;0&quot;) //If hour field is 0 (aka 12 AM)<br />
			sections[0]=&quot;12&quot;<br />
		else if (sections[0]&gt;=13)<br />
			sections[0]=sections[0]-12+&quot;&quot;<br />
		for (var i=0; i&lt;sections.length; i++){<br />
			if (sections[i].length==1)<br />
				sections[i]='&lt;img src=&quot;'+imageclock.digits[0]+'&quot; /&gt;'+'&lt;img <br />
<br />
src=&quot;'+imageclock.digits[parseInt(sections[i])]+'&quot; /&gt;'<br />
			else<br />
				sections[i]='&lt;img <br />
<br />
src=&quot;'+imageclock.digits[parseInt(sections[i].charAt(0))]+'&quot; /&gt;'+'&lt;img <br />
<br />
src=&quot;'+imageclock.digits[parseInt(sections[i].charAt(1))]+'&quot; /&gt;'<br />
		}<br />
		return sections[0]+'&lt;img src=&quot;'+imageclock.digits[12]+'&quot; /&gt;'+sections[1]+'&lt;img <br />
<br />
src=&quot;'+imageclock.digits[12]+'&quot; /&gt;'+sections[2]<br />
	}<br />
<br />
	imageclock.display=function(){<br />
		var clockinstance=this<br />
		this.spanid=&quot;clockspan&quot;+(imageclock.instances++)<br />
		document.write('&lt;span id=&quot;'+this.spanid+'&quot;&gt;&lt;/span&gt;')<br />
		this.update()<br />
		setInterval(function(){clockinstance.update()}, 1000)<br />
	}<br />
<br />
	imageclock.display.prototype.update=function(){<br />
		var dateobj=new Date()<br />
		var currenttime=dateobj.getHours()+&quot;:&quot;+dateobj.getMinutes()+&quot;:&quot;+dateobj.getSeconds() <br />
<br />
//create time string<br />
		var currenttimeHTML=imageclock.imageHTML(currenttime)+'&lt;img <br />
<br />
src=&quot;'+((dateobj.getHours()&gt;=12)? imageclock.digits[11] : imageclock.digits[10])+'&quot; /&gt;'<br />
		document.getElementById(this.spanid).innerHTML=currenttimeHTML<br />
<br />
	}<br />
&lt;/script&gt;<br />
<br />
&lt;script type=&quot;text/javascript&quot;&gt;<br />
<br />
function startForm() {<br />
  document.form1.date.value = todayTxt();<br />
  document.form1.prod.focus();<br />
}<br />
<br />
function calcPrice() {<br />
  product = document.form1.prod;<br />
  pindex = product.selectedIndex;<br />
  product_price = product.options[pindex].value;<br />
  quantity = document.form1.qty;<br />
  qindex = quantity.selectedIndex;<br />
  quantity_ordered = quantity.options[qindex].value;<br />
  document.form1.price.value = product_price*quantity_ordered;<br />
}<br />
<br />
&lt;/script&gt;<br />
&lt;/head&gt;<br />
<br />
&lt;body onload=&quot;startForm()&quot;&gt;<br />
&lt;form name=&quot;form1&quot; method=&quot;post&quot;<br />
	onsubmit=&quot;return checkForm1()&quot; onreset=&quot;location.reload()&quot;&gt;<br />
&lt;div class=&quot;center&quot;&gt;<br />
<br />
&lt;table border=&quot;0&quot;&gt;<br />
&lt;tr id=&quot;header&quot;&gt;<br />
  &lt;td colspan=&quot;2&quot;&gt;&lt;h1&gt;Moultrie Technical College&lt;br /&gt;Worth County Campus&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td align=&quot;right&quot;&gt;<br />
&lt;script type=&quot;text/javascript&quot;&gt;<br />
<br />
new imageclock.display()<br />
<br />
&lt;/script&gt;<br />
&lt;/td&gt;&lt;/tr&gt;<br />
&lt;tr id=&quot;nav&quot;&gt;<br />
<br />
&lt;td&gt;Navigation:: &lt;a href=&quot;index.html&quot;&gt;Home&lt;/a&gt; | &lt;a href=&quot;infotech.html&quot;&gt;Information Technology&lt;/a&gt; | <br />
<br />
&lt;a href=&quot;webdesign.html&quot;&gt;Web Design&lt;/a&gt; | &lt;a href=&quot;cosmo.html&quot;&gt;Cosmetology&lt;/a&gt; | &lt;a <br />
<br />
href=&quot;cal.html&quot;&gt;Calendar&lt;/a&gt; | &lt;a href=&quot;comptia.html&quot;&gt;CompTIA&lt;/a&gt;&lt;/td&gt;<br />
<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
<br />
&lt;td id=&quot;body&quot;&gt;E-mail us at: <br />
&lt;b&gt;&lt;script type=&quot;text/javascript&quot;&gt;<br />
document.write(&quot;moultrie@moultrietech.edu&quot;);<br />
&lt;/script&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;<br />
<br />
<br />
&lt;td&gt;&lt;h2&gt;&lt;center&gt;&lt;u&gt;Moultrie Tech (Worth) Shopping Cart&lt;/u&gt;&lt;/center&gt;&lt;/h2&gt;<br />
<br />
&lt;table&gt;<br />
<br />
&lt;form name=&quot;orders&quot; id=&quot;orders&quot; method=&quot;post&quot; action=&quot;done.htm&quot;&gt;<br />
<br />
&lt;p id=&quot;datep&quot;&gt;<br />
   &lt;input class=&quot;text&quot; id=&quot;date&quot; name=&quot;date&quot; size=&quot;11&quot; value=&quot;mm-dd-yyyy&quot; <br />
    tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;&lt;/td&gt;<br />
&lt;/p&gt;<br />
<br />
&lt;table cellspacing=&quot;2&quot;&gt;<br />
&lt;tr&gt;&lt;th class=&quot;label&quot;&gt;Product&lt;/th&gt;&lt;th&gt;Price&lt;/th&gt;<br />
    &lt;th&gt;Quantity&lt;/th&gt;&lt;th&gt;Cost&lt;/th&gt;&lt;/tr&gt;<br />
&lt;tr&gt;<br />
   &lt;td class=&quot;body&quot;&gt;New Perspectives on Blended HTML, XHTML, and CSS, 1st Edition&lt;/td&gt;<br />
   &lt;td class=&quot;body&quot;&gt;&lt;input name=&quot;price1&quot; id=&quot;price1&quot; size=&quot;8&quot; value=&quot;77.99&quot; <br />
        tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;<br />
   &lt;/td&gt;<br />
   &lt;td class=&quot;body&quot;&gt;&lt;input name=&quot;qty1&quot; id=&quot;qty1&quot; size=&quot;8&quot; value=&quot;0&quot; /&gt;<br />
   &lt;/td&gt;<br />
   &lt;td class=&quot;body&quot;&gt;&lt;input name=&quot;cost1&quot; id=&quot;cost1&quot; size=&quot;12&quot; value=&quot;0.00&quot; <br />
        tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;<br />
   &lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
   &lt;td class=&quot;body&quot;&gt;New Perspectives on JavaScript, 1st Edition&lt;/td&gt;<br />
   &lt;td class=&quot;body&quot;&gt;&lt;input name=&quot;price2&quot; id=&quot;price2&quot; size=&quot;8&quot; value=&quot;66.99&quot; <br />
        tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;<br />
   &lt;/td&gt;<br />
   &lt;td class=&quot;body&quot;&gt;&lt;input name=&quot;qty2&quot; id=&quot;qty2&quot; size=&quot;8&quot; value=&quot;0&quot; /&gt;<br />
   &lt;/td&gt;<br />
   &lt;td class=&quot;body&quot;&gt;&lt;input name=&quot;cost2&quot; id=&quot;cost2&quot; size=&quot;12&quot; value=&quot;0.00&quot; <br />
        tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;<br />
   &lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
   &lt;td class=&quot;body&quot;&gt;New Perspectives on Macromedia Dreamweaver 8, Comprehensive, 1st Edition&lt;/td&gt;<br />
   &lt;td&gt;&lt;input name=&quot;price3&quot; id=&quot;price3&quot; size=&quot;8&quot; value=&quot;83.99&quot; <br />
        tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;&lt;/td&gt;<br />
   &lt;td&gt;&lt;input name=&quot;qty3&quot; id=&quot;qty3&quot; size=&quot;8&quot; value=&quot;0&quot; /&gt;<br />
   &lt;/td&gt;<br />
   &lt;td&gt;&lt;input name=&quot;cost3&quot; id=&quot;cost3&quot; size=&quot;12&quot; value=&quot;0.00&quot; <br />
        tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;<br />
   &lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
   &lt;td class=&quot;body&quot;&gt;Adobe Photoshop CS4: Complete Concepts and Techniques, 1st Edition&lt;/td&gt;<br />
   &lt;td class=&quot;body&quot;&gt;&lt;input name=&quot;price4&quot; id=&quot;price4&quot; size=&quot;8&quot; value=&quot;69.99&quot; <br />
        tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;&lt;/td&gt;<br />
   &lt;td class=&quot;body&quot;&gt;&lt;input name=&quot;qty4&quot; id=&quot;qty4&quot; size=&quot;8&quot; value=&quot;0&quot; /&gt;<br />
   &lt;/td&gt;<br />
   &lt;td class=&quot;body&quot;&gt;&lt;input name=&quot;cost4&quot; id=&quot;cost4&quot; size=&quot;12&quot; value=&quot;0.00&quot; <br />
        tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;<br />
   &lt;/td&gt;<br />
   &lt;/tr&gt;<br />
&lt;tr&gt;<br />
   &lt;td class=&quot;body&quot;&gt;Miladys Standard Cosmetology 2008, 1st Edition&lt;/td&gt;<br />
   &lt;td class=&quot;body&quot;&gt;&lt;input name=&quot;price5&quot; id=&quot;price5&quot; size=&quot;8&quot; value=&quot;78.99&quot; <br />
        tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;&lt;/td&gt;<br />
   &lt;td class=&quot;body&quot;&gt;&lt;input name=&quot;qty5&quot; id=&quot;qty5&quot; size=&quot;8&quot; value=&quot;0&quot; /&gt;<br />
   &lt;/td&gt;<br />
   &lt;td class=&quot;body&quot;&gt;&lt;input name=&quot;cost5&quot; id=&quot;cost5&quot; size=&quot;12&quot; value=&quot;0.00&quot; <br />
        tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;<br />
   &lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
   &lt;td class=&quot;body&quot;&gt;Network+ Guide to Networks, 4th Edition&lt;/td&gt;<br />
   &lt;td class=&quot;body&quot;&gt;&lt;input name=&quot;price6&quot; id=&quot;price6&quot; size=&quot;8&quot; value=&quot;106.95&quot; <br />
        tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;&lt;/td&gt;<br />
   &lt;td class=&quot;body&quot;&gt;&lt;input name=&quot;qty6&quot; id=&quot;qty6&quot; size=&quot;8&quot; value=&quot;0&quot; /&gt;<br />
   &lt;/td&gt;<br />
   &lt;td class=&quot;body&quot;&gt;&lt;input name=&quot;cost6&quot; id=&quot;cost6&quot; size=&quot;12&quot; value=&quot;0.00&quot; <br />
        tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;<br />
   &lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;&lt;td class=&quot;body&quot; colspan=&quot;4&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;<br />
&lt;tr&gt;<br />
   &lt;td class=&quot;body&quot; colspan=&quot;3&quot;&gt;Sales Tax (5%)&lt;/td&gt;<br />
   &lt;td class=&quot;body&quot;&gt;&lt;input name=&quot;tax&quot; id=&quot;tax&quot; size=&quot;12&quot; value=&quot;0.00&quot; <br />
        tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;<br />
   &lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
   &lt;td class=&quot;body&quot; colspan=&quot;3&quot;&gt;<br />
     &lt;p&gt;&lt;input type=&quot;radio&quot; name=&quot;shipType&quot; id=&quot;ship1&quot; value=&quot;4.95&quot; onclick=&quot;calcShipping(this)&quot; /&gt;<br />
       &lt;label for=&quot;ship1&quot;&gt;Standard (4-6 business days): $4.95&lt;/label&gt;<br />
     &lt;/p&gt;<br />
     &lt;p&gt;&lt;input type=&quot;radio&quot; name=&quot;shipType&quot; id=&quot;ship2&quot; value=&quot;8.95&quot;<br />
onclick=&quot;calcShipping(this)&quot;/&gt;<br />
       &lt;label for=&quot;ship2&quot;&gt;Express (2 days): $8.95&lt;/label&gt;<br />
     &lt;/p&gt;<br />
     &lt;p&gt;&lt;input type=&quot;radio&quot; name=&quot;shipType&quot; id=&quot;ship3&quot; value=&quot;12.95&quot;<br />
onclick=&quot;calcsShipping(this)&quot; /&gt;<br />
       &lt;label for=&quot;ship3&quot;&gt;Next Day (1 Day): $12.95&lt;/label&gt;<br />
     &lt;/p&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
   &lt;td class=&quot;body&quot; colspan=&quot;3&quot;&gt;TOTAL&lt;/td&gt;<br />
   &lt;td class=&quot;body&quot;&gt;&lt;input name=&quot;total&quot; id=&quot;total&quot; si<br />
value=&quot;0.00&quot; <br />
        tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;<br />
   &lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;<br />
 <br />
&lt;p id=&quot;pbuttons&quot;&gt;&lt;center&gt;<br />
   &lt;input type=&quot;reset&quot; value=&quot;Reset&quot; /&gt;<br />
   &lt;input type=&quot;submit&quot; value=&quot;Submit Order&quot; /&gt;<br />
&lt;/center&gt;&lt;/p&gt;<br />
<br />
&lt;/form&gt;<br />
&lt;/script&gt;<br />
<br />
&lt;br /&gt;<br />
&lt;br /&gt;<br />
&lt;tr id=&quot;black&quot;&gt;<br />
  &lt;td colspan=&quot;2&quot;&gt;1210 North Monroe Street Sylvester, GA 31791.&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;/div&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>Rblalock</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237877.html</guid>
		</item>
		<item>
			<title>Spry tabs</title>
			<link>http://www.daniweb.com/forums/thread237783.html</link>
			<pubDate>Wed, 11 Nov 2009 15:58:20 GMT</pubDate>
			<description><![CDATA[How to make something like spry tabs in dreamweaver with jquery or something. I don't have dreamweaver and i don't want to download a trial.]]></description>
			<content:encoded><![CDATA[<div>How to make something like spry tabs in dreamweaver with jquery or something. I don't have dreamweaver and i don't want to download a trial.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>web3</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237783.html</guid>
		</item>
		<item>
			<title>Dynamic table rows</title>
			<link>http://www.daniweb.com/forums/thread237773.html</link>
			<pubDate>Wed, 11 Nov 2009 15:12:20 GMT</pubDate>
			<description>Hello! 
 
I have been working on a dynamic solution for a web based purchase order system. When i enter a purchase order i am greeted with: 
 
Image: http://nenuno.co.uk/temp/12-rows.jpg  
 
And i have started to code a solution where I can add rows when I need them! 
 
Inspiration is:</description>
			<content:encoded><![CDATA[<div>Hello!<br />
<br />
I have been working on a dynamic solution for a web based purchase order system. When i enter a purchase order i am greeted with:<br />
<br />
<img src="http://nenuno.co.uk/temp/12-rows.jpg" border="0" alt="" /><br />
<br />
And i have started to code a solution where I can add rows when I need them!<br />
<br />
Inspiration is:<br />
<br />
<img src="http://nenuno.co.uk/temp/example.jpg" border="0" alt="" /><br />
<br />
The code I have so far is:<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;script type='text/javascript'&gt;<br />
&nbsp; var emptyRow = null;<br />
&nbsp; function init() {<br />
&nbsp; &nbsp; var table = document.getElementById( 'insertorder' );<br />
&nbsp; &nbsp; var tbody = table.getElementsByTagName( 'TBODY' )[ 0 ];<br />
&nbsp; &nbsp; var tr&nbsp; &nbsp; = tbody.firstChild;<br />
&nbsp; &nbsp; while ( tr &amp;&amp; tr.nodeName != 'TR' ) {<br />
&nbsp; &nbsp; &nbsp; tr = tr.nextSibling;<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; emptyRow = tr.cloneNode( true );<br />
&nbsp; }<br />
&nbsp; function AddRow() {<br />
&nbsp; &nbsp; var table = document.getElementById( 'insertorder' );<br />
&nbsp; &nbsp; var tbody = table.getElementsByTagName( 'TBODY' )[ 0 ];<br />
&nbsp; &nbsp; var numRows = tbody.rows.length;<br />
&nbsp; &nbsp; var where&nbsp;  = tbody.rows[ numRows - 1 ];<br />
&nbsp; &nbsp; var newRow&nbsp; = emptyRow.cloneNode( true );<br />
&nbsp; &nbsp; insertAfter( where, newRow );<br />
&nbsp; }<br />
&nbsp; function insertAfter( here, newNode ) {<br />
&nbsp; &nbsp; here.parentNode.insertBefore( newNode, here.nextSibling );<br />
&nbsp; }<br />
&lt;/script&gt;<br />
&lt;/head&gt;<br />
&lt;body onload='init()'&gt;<br />
&nbsp; &lt;table border='1' id='insertorder'&gt;<br />
&nbsp; &nbsp; &lt;thead&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;th&gt;Part Number&lt;/th&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;th&gt;Description&lt;/th&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;th&gt;Qty&lt;/th&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;th&gt;Unit Cost&lt;/th&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &lt;/thead&gt;<br />
&nbsp; &nbsp; &lt;tbody&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;th&gt;&lt;input type='text' size='10'&gt;&lt;/th&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;th&gt;&lt;input type='text' size='20'&gt;&lt;/th&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;th&gt;&lt;input type='text' size='5'&gt;&lt;/th&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;th&gt;&lt;input type='text' size='5'&gt;&lt;/th&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &lt;/tbody&gt;<br />
&nbsp; &lt;/table&gt;&lt;br&gt;<br />
&nbsp; &lt;input type='button' value='AddRow' onclick='AddRow()'&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</pre><br />
Currently each row has a unique reference<br />
<br />
Partnumber line 1 is &quot;l1pn&quot; line 2 is &quot;l2pn&quot; and so on till 12<br />
Description line 1 is &quot;l1desc&quot;  line 2 is &quot;l2desc&quot; and so on till 12<br />
etc etc<br />
<br />
What else do I need to add to the above code to make it when i add a new row that the row reference changes from &quot;l1pn&quot; to &quot;l2pn&quot; etc and limit it to creating 12 rows only.<br />
<br />
Many thanks in advance</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>oku</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237773.html</guid>
		</item>
		<item>
			<title>AJAX/Jquery Internet Explorer error</title>
			<link>http://www.daniweb.com/forums/thread237739.html</link>
			<pubDate>Wed, 11 Nov 2009 11:58:40 GMT</pubDate>
			<description><![CDATA[Hi guys 
 
I was wondering whether someone could help me with a slight issue I have. I'm trying to set up a quick poll using AJAX which all works fine when using Firefox but running into issues via IE. 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>Hi guys<br />
<br />
I was wondering whether someone could help me with a slight issue I have. I'm trying to set up a quick poll using AJAX which all works fine when using Firefox but running into issues via IE.<br />
<br />
 <pre style="margin:20px; line-height:13px">&nbsp; $(function() {<br />
&nbsp; &nbsp; $('.error').hide();<br />
&nbsp; &nbsp; $(&quot;.button&quot;).click(function() {<br />
&nbsp; &nbsp; &nbsp; var userid = $(&quot;input#userid&quot;).val();<br />
&nbsp; &nbsp; &nbsp; var name = $('input[name=name]:checked').val();<br />
<br />
&nbsp; &nbsp; &nbsp; var dataString = 'name='+ name + '&amp;userid=' + userid;<br />
<br />
&nbsp; $.ajax({<br />
&nbsp; &nbsp; type: &quot;POST&quot;,<br />
&nbsp; &nbsp; url: &quot;poll/process.php&quot;,<br />
&nbsp; &nbsp; data: dataString,<br />
&nbsp; &nbsp; success: function() {<br />
&nbsp; &nbsp; &nbsp; $('#weekly_poll').html(&quot;&lt;div id='message'&gt;&lt;/div&gt;&quot;);<br />
&nbsp; &nbsp; &nbsp; $('#message').html(&quot;&lt;h2&gt;Thanks for your vote!&lt;/h2&gt;&quot;)<br />
&nbsp; &nbsp; &nbsp; .hide()<br />
&nbsp; &nbsp; &nbsp; .fadeIn(500, function() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; $('#message');<br />
&nbsp; &nbsp; &nbsp; });<br />
&nbsp; &nbsp; }<br />
&nbsp; });<br />
&nbsp; return false;<br />
&nbsp; &nbsp; });<br />
&nbsp; });</pre><br />
The issue I'm having is that although the form is being processed OK with data being captured in the database, once the form is submitted, the above script just seems to stop the rest of the page from loading. This only happens on IE and it must be something to do with the success function but as I'm new to JavaScript I don't know what I'm doing wrong.<br />
<br />
Can anyway help me please? I think it's something really simple and I'm just being stupid.<br />
<br />
Many thanks for reading.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>calina</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237739.html</guid>
		</item>
		<item>
			<title>Cookies with javascript</title>
			<link>http://www.daniweb.com/forums/thread237702.html</link>
			<pubDate>Wed, 11 Nov 2009 08:34:45 GMT</pubDate>
			<description><![CDATA[Hi I have made a program in which we have to read cookies through javascript but I am facing a problem in it. And I am unable to understand where the problem is? Please help me understand the same. 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>Hi I have made a program in which we have to read cookies through javascript but I am facing a problem in it. And I am unable to understand where the problem is? Please help me understand the same.<br />
 <pre style="margin:20px; line-height:13px">&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;read cookies&lt;/title&gt;<br />
<br />
&lt;script language=&quot;javascript&quot;&gt;<br />
function gettime(){<br />
if(document.cookie)<br />
{<br />
index=document.cookie.indexOf(cookie_name);<br />
if(index!=-1)<br />
countbegin=(documnet.cookie.indexOf(&quot;=&quot;,index);<br />
countend=document.cookie.indexOf(&quot;;&quot;,index);<br />
if(countend == -1)<br />
countend=document.cookie.length;<br />
}<br />
count=document.cookie.substring(countbegin,countend);<br />
if(count==1)<br />
return(count+&quot;time&quot;);<br />
}<br />
else<br />
{<br />
return(count+ &quot;times&quot;);<br />
}<br />
}}<br />
return(&quot;0 times&quot;);<br />
}<br />
&lt;/script&gt;<br />
&lt;/head&gt;<br />
&lt;/html&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>namratakakkar84</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237702.html</guid>
		</item>
		<item>
			<title>onmouseover on parent element</title>
			<link>http://www.daniweb.com/forums/thread237690.html</link>
			<pubDate>Wed, 11 Nov 2009 08:03:12 GMT</pubDate>
			<description>Hi, 
This is probably a very simple problem, but still it is bugging me for a while. I have tried to google for solutions, but I did not find any. 
 
I have a div containing a few text elements like date and description. I want to change the background-color of the div to a light grey when the...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
This is probably a very simple problem, but still it is bugging me for a while. I have tried to google for solutions, but I did not find any.<br />
<br />
I have a div containing a few text elements like date and description. I want to change the background-color of the div to a light grey when the mouse is over it. This works fine. The problem: As soon as the mouse is over a child element, the background changes back!<br />
<br />
What to do?<br />
<br />
I appreciate your help.<br />
<br />
Regards,<br />
Ali Baradaran</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>Baradaran</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237690.html</guid>
		</item>
		<item>
			<title>onmouseover not working in ie</title>
			<link>http://www.daniweb.com/forums/thread237657.html</link>
			<pubDate>Wed, 11 Nov 2009 06:01:18 GMT</pubDate>
			<description><![CDATA[Hello pals, 
 
HTML code: 
<dt><a href="#" onmouseover="addButton(this);" onmouseout="removeButton(this);">CNN News<img src="images/cnn.gif" alt="cnn" style="width:67px; height:43px;"/></a></dt> 
 
java_script: 
function addButton(selected){  
	var add = "CNN News<img src=\"images/cnn.gif\"...]]></description>
			<content:encoded><![CDATA[<div>Hello pals,<br />
<br />
HTML code:<br />
&lt;dt&gt;&lt;a href=&quot;#&quot; onmouseover=&quot;addButton(this);&quot; onmouseout=&quot;removeButton(this);&quot;&gt;CNN News&lt;img src=&quot;images/cnn.gif&quot; alt=&quot;cnn&quot; style=&quot;width:67px; height:43px;&quot;/&gt;&lt;/a&gt;&lt;/dt&gt;<br />
<br />
Javascript<b></b>:<br />
function addButton(selected){ <br />
	var add = &quot;CNN News&lt;img src=\&quot;images/cnn.gif\&quot; alt=\&quot;cnn\&quot; style=\&quot;width:67px; height:43px;\&quot;/&gt;&lt;img id=\&quot;add\&quot; src=\&quot;images/add.gif\&quot; alt=\&quot;Add\&quot; /&gt;&quot;;<br />
	selected.innerHTML = add;<br />
}<br />
<br />
function removeButton(selected){ <br />
	var add = &quot;CNN News&lt;img src=\&quot;images/cnn.gif\&quot; alt=\&quot;cnn\&quot; style=\&quot;width:67px; height:43px;\&quot;/&gt;&quot;;<br />
	selected.innerHTML = add;<br />
}<br />
<br />
Here my problem is:<br />
 when the mouse moved over image its not calling the addButton() but  when mouse is outside of the image and on &lt;a&gt; element its calling the addButton() func.<br />
<br />
&lt;img&gt; is a child of &lt;a&gt; element and its working fine in FF....<br />
<br />
Any clues... Thanks in advance...</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>kshatriy</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237657.html</guid>
		</item>
		<item>
			<title>How to use Ajax to stay on the same page</title>
			<link>http://www.daniweb.com/forums/thread237573.html</link>
			<pubDate>Tue, 10 Nov 2009 22:01:14 GMT</pubDate>
			<description><![CDATA[Hello my name is steve & im trying to use ajax to change the content in a div when you click on a nav button (6 buttons in nav)...... I build out side using a Ajax book and it did not work...... deleted the project and im trying to start over..... Please help me with the js. and setting up the divs...]]></description>
			<content:encoded><![CDATA[<div>Hello my name is steve &amp; im trying to use ajax to change the content in a div when you click on a nav button (6 buttons in nav)...... I build out side using a Ajax book and it did not work...... deleted the project and im trying to start over..... Please help me with the js. and setting up the divs right.....<br />
Steve</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>stevenpetersen</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237573.html</guid>
		</item>
		<item>
			<title>How should I do so?</title>
			<link>http://www.daniweb.com/forums/thread237528.html</link>
			<pubDate>Tue, 10 Nov 2009 18:16:36 GMT</pubDate>
			<description><![CDATA[HI 
I want to write a search for my site .I make a new panel in the left of my menue and it has a text input and an image which when that user click on it javascript opens a new window which is a php page.The part I don't know how to do is when the user click on the image it should get the content...]]></description>
			<content:encoded><![CDATA[<div>HI<br />
I want to write a search for my site .I make a new panel in the left of my menue and it has a text input and an image which when that user click on it javascript opens a new window which is a php page.The part I don't know how to do is when the user click on the image it should get the content of the text input and pass it to the url.For the hyperlink of the image I use &quot;&lt;a href=&quot;javascript<b></b>:open_window('includes/func/search.php?id=&quot; But I don't know what should I write after that to get the content of the text input and put it in the next of the id.<br />
How can I do so?<br />
<br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>hno</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237528.html</guid>
		</item>
		<item>
			<title>HELP! to autoplay or setinterval to YUI carousel</title>
			<link>http://www.daniweb.com/forums/thread237508.html</link>
			<pubDate>Tue, 10 Nov 2009 16:23:22 GMT</pubDate>
			<description><![CDATA[I want this carousel slideshow to also start automatically if idle after a few secs... I tried adding a set interval but with no success so far, please help!!! 
 
[code] 
 
YAHOO.example = function() { 
		var $D = YAHOO.util.Dom; 
		var $E = YAHOO.util.Event; 
		var $A = YAHOO.util.Anim; 
		var $M...]]></description>
			<content:encoded><![CDATA[<div>I want this carousel slideshow to also start automatically if idle after a few secs... I tried adding a set interval but with no success so far, please help!!!<br />
<br />
[code]<br />
<br />
YAHOO.example = function() {<br />
		var $D = YAHOO.util.Dom;<br />
		var $E = YAHOO.util.Event;<br />
		var $A = YAHOO.util.Anim;<br />
		var $M = YAHOO.util.Motion;<br />
		var $DD = YAHOO.util.DD;<br />
		var $ = $D.get;<br />
		var mova = 1;<br />
		<br />
		return {<br />
			init : function() { <br />
				$E.on(['move-left','move-right','videos','podcasts','webinars'], 'click', this.move);<br />
			},<br />
			move : function(e) {<br />
				$E.stopEvent(e);<br />
				switch(this.id) {<br />
					case 'move-left':<br />
						if ( mova === 1 ) {<br />
							return;<br />
						}<br />
						var attributes = {<br />
							points : {<br />
								by : [500, 0]<br />
							}<br />
						};<br />
						mova--;<br />
					break;<br />
					case 'move-right':<br />
						if ( mova === 3 ) {<br />
							return;<br />
						}<br />
						var attributes = {<br />
							points : {<br />
								by : [-500, 0]<br />
							}<br />
						};<br />
						mova++;<br />
					break;					<br />
					<br />
   				    case 'videos':<br />
						mova = 1; <br />
					ajaxLoader('/xmlfiles/videos.xml','slide');<br />
					break;<br />
					<br />
					case 'podcasts':<br />
						mova = 1; <br />
					ajaxLoader('/xmlfiles/podcasts.xml','slide');<br />
	<br />
					break;<br />
					<br />
					case 'whitepapers':<br />
						mova = 1; <br />
					ajaxLoader('/xmlfiles/css/whitepapers.xml','slide');<br />
	<br />
					break;<br />
					<br />
					case 'webinars':<br />
						mova = 1;						<br />
					ajaxLoader('/xmlfiles/webinars.xml','slide');<br />
					break;<br />
					<br />
				};<br />
				<br />
				var anim = new $M('themes', attributes, 0.5, YAHOO.util.Easing.easeOut);<br />
				anim.animate(); <br />
<br />
			}<br />
		};<br />
	}();<br />
YAHOO.util.Event.onAvailable('doc',YAHOO.example.init, YAHOO.example, true); <br />
<br />
[code]</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>Ariel_medel</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237508.html</guid>
		</item>
		<item>
			<title>how to show a larger input field with mouseover?</title>
			<link>http://www.daniweb.com/forums/thread237340.html</link>
			<pubDate>Tue, 10 Nov 2009 00:06:00 GMT</pubDate>
			<description><![CDATA[I'm showing in a field the name of the file the user has chosen. I would like to show the whole name as the title when passing the mouse over the field, in case the name is too long. 
 
I swear this was working, but it's not anymore (I'm testing with FF). I don't know how it was working, maybe I...]]></description>
			<content:encoded><![CDATA[<div>I'm showing in a field the name of the file the user has chosen. I would like to show the whole name as the title when passing the mouse over the field, in case the name is too long.<br />
<br />
I swear this was working, but it's not anymore (I'm testing with FF). I don't know how it was working, maybe I used a different combination of quotes or semicolons or I don't know. I can't make it work again. When you pass de mouse over the field it is showing the code instead of the innerHTML referenced:<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;<br />
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;es&quot; lang=&quot;es&quot;&gt;<br />
&lt;head&gt;<br />
<br />
&lt;script type=&quot;text/javascript&quot;&gt;<br />
<br />
function newField()<br />
{<br />
document.getElementById('container').innerHTML = <br />
&nbsp; &nbsp; &nbsp; &nbsp; '&lt;div id=&quot;myFile&quot; style=&quot;width:100px;overflow:hidden;border:thin solid&quot; title=&quot;document.getElementById(\'myFile\').innerHTML&quot;&gt;thisisaverylongfilename.jpg&lt;/div&gt;';<br />
}<br />
<br />
&lt;/script&gt;<br />
&nbsp; &nbsp; <br />
&lt;/head&gt;<br />
&lt;body onload=&quot;newField()&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&quot;container&quot; /&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</pre><br />
demo:<br />
<a rel="nofollow" class="t" href="http://www.lloparts.com/america/editora/testTitle.html" target="_blank">http://www.lloparts.com/america/editora/testTitle.html</a></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>Altairzq</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237340.html</guid>
		</item>
		<item>
			<title>help altering mootools rating system to update database</title>
			<link>http://www.daniweb.com/forums/thread237323.html</link>
			<pubDate>Mon, 09 Nov 2009 22:26:53 GMT</pubDate>
			<description>im trying to add a star rating system to a website. id like to do something elegant graphically instead of just using a drop down... the javascript framework im using is mootools and i found a great rating system here (http://birijan.com.np/?q=mootools+star+rating), but have no idea how to adjust...</description>
			<content:encoded><![CDATA[<div>im trying to add a star rating system to a website. id like to do something elegant graphically instead of just using a drop down... the javascript framework im using is mootools and i found a great rating system <a rel="nofollow" class="t" href="http://birijan.com.np/?q=mootools+star+rating" target="_blank">here</a>, but have no idea how to adjust it so that it updates the database with the new rating vote from the user and it calculates the new average rating.<br />
<br />
the way i have the database set up for this is with the following fields:<br />
<span style="font-weight:bold">id </span>(the rating's unique id)<br />
<span style="font-weight:bold">listingid </span>(the listing that the rating corresponds to)<br />
<span style="font-weight:bold">userid </span>(the user that entered the rating)<br />
<span style="font-weight:bold">rating </span>(the rating itself)<br />
<br />
i use php to communicate with a mysql database.<br />
the file im going to write will check to see if there is already a rating entered in from the logged in user. if there is, it will update it. if not, it will insert it, then it will calculate the average of all votes for that listing (rounded up) and return the new rating to the page and set the stars to reflect that rating... ive tweaked the code a bit to represent a 5 star system instead of a 10 star system and also so it can be used multiple times on a page.<br />
<br />
heres what ive been playing with:<br />
 <pre style="margin:20px; line-height:13px">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;<br />
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;<br />
&lt;head&gt;<br />
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;<br />
&lt;title&gt;Mootools Simple Star Rating&lt;/title&gt;<br />
&lt;script type=&quot;text/javascript&quot; src=&quot;mootools.js&quot;&gt;&lt;/script&gt;<br />
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;star-rating.css&quot; /&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;ul id=&quot;rate1&quot; class=&quot;normal rating fourstar&quot;&gt;<br />
&nbsp; &lt;li title=&quot;1&quot; class=&quot;rate one&quot;&gt;&lt;a href=&quot;javascript<b></b>://&quot; title=&quot;1 Star&quot;&gt;1&lt;/a&gt;&lt;/li&gt;<br />
&nbsp; &lt;li title=&quot;2&quot; class=&quot;rate two&quot;&gt;&lt;a href=&quot;javascript<b></b>://&quot; title=&quot;2 Stars&quot;&gt;2&lt;/a&gt;&lt;/li&gt;<br />
&nbsp; &lt;li title=&quot;3&quot; class=&quot;rate three&quot;&gt;&lt;a href=&quot;javascript<b></b>://&quot; title=&quot;3 Stars&quot;&gt;3&lt;/a&gt;&lt;/li&gt;<br />
&nbsp; &lt;li title=&quot;4&quot; class=&quot;rate four&quot;&gt;&lt;a href=&quot;javascript<b></b>://&quot; title=&quot;4 Stars&quot;&gt;4&lt;/a&gt;&lt;/li&gt;<br />
&nbsp; &lt;li title=&quot;5&quot; class=&quot;rate five&quot;&gt;&lt;a href=&quot;javascript<b></b>://&quot; title=&quot;5 Stars&quot;&gt;5&lt;/a&gt;&lt;/li&gt;<br />
&lt;/ul&gt;<br />
&lt;ul class=&quot;featured rating fivestar&quot;&gt;<br />
&nbsp; &lt;li title=&quot;1&quot; class=&quot;rate one&quot;&gt;&lt;a href=&quot;javascript<b></b>://&quot; title=&quot;1 Star&quot;&gt;1&lt;/a&gt;&lt;/li&gt;<br />
&nbsp; &lt;li title=&quot;2&quot; class=&quot;rate two&quot;&gt;&lt;a href=&quot;javascript<b></b>://&quot; title=&quot;2 Stars&quot;&gt;2&lt;/a&gt;&lt;/li&gt;<br />
&nbsp; &lt;li title=&quot;3&quot; class=&quot;rate three&quot;&gt;&lt;a href=&quot;javascript<b></b>://&quot; title=&quot;3 Stars&quot;&gt;3&lt;/a&gt;&lt;/li&gt;<br />
&nbsp; &lt;li title=&quot;4&quot; class=&quot;rate four&quot;&gt;&lt;a href=&quot;javascript<b></b>://&quot; title=&quot;4 Stars&quot;&gt;4&lt;/a&gt;&lt;/li&gt;<br />
&nbsp; &lt;li title=&quot;5&quot; class=&quot;rate five&quot;&gt;&lt;a href=&quot;javascript<b></b>://&quot; title=&quot;5 Stars&quot;&gt;5&lt;/a&gt;&lt;/li&gt;<br />
&lt;/ul&gt;<br />
&lt;script&gt;<br />
$$('.rate').each(function(element,i){<br />
&nbsp; &nbsp; &nbsp; &nbsp; element.addEvent('mouseup', function(){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var myStyles = ['nostar', 'onestar', 'twostar', 'threestar', 'fourstar', 'fivestar'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; myStyles.each(function(myStyle){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(element.getParent().hasClass(myStyle)){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; element.getParent().removeClass(myStyle)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; });&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; myStyles.each(function(myStyle, index){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(index == element.title){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; element.getParent().toggleClass(myStyle);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(index);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; });&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; });<br />
});<br />
<br />
&lt;/script&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</pre>and the css:<br />
 <pre style="margin:20px; line-height:13px">/* star rating code - use lists because its more semantic */<br />
/* No javascript required */<br />
/* all the stars are contained in one matrix to solve rollover problems with delay */<br />
/* the background position is just shifted to reveal the correct image. */<br />
/* the images are 16px by 16px and the background position will be shifted in negative 16px increments */<br />
/*&nbsp; key:&nbsp; B=Blank : O=Orange : G = Green * /<br />
/*..... The Matrix ....... */<br />
/* colours ....Background position */<br />
/* B B B B B - (0 0)*/<br />
/* G B B B B - (0 -16px)*/<br />
/* G G B B B - (0 -32px)*/<br />
/* G G G B B - (0 -48px)*/<br />
/* G G G G B - (0 -64px)*/<br />
/* G G G G G - (0 -80px)*/<br />
/* O B B B B - (0 -96px)*/<br />
/* O O B B B - (0 -112px)*/<br />
/* O O O B B - (0 -128px)*/<br />
/* O O O O B - (0 -144px)*/<br />
/* O O O O O - (0 -160px)*/<br />
<br />
<br />
/* the default rating is placed as a background image in the ul */<br />
/* use the background position according to the table above to display the required images*/<br />
.rating{<br />
&nbsp; &nbsp; &nbsp; &nbsp; width:80px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; height:16px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; margin:0 0 20px 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; padding:0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; list-style:none;<br />
&nbsp; &nbsp; &nbsp; &nbsp; clear:both;<br />
&nbsp; &nbsp; &nbsp; &nbsp; position:relative;<br />
}<br />
.normal{background: url(star-bluebk.gif) no-repeat 0 0;}<br />
.featured{background: url(star-goldbk.gif) no-repeat 0 0;}<br />
/* add these classes to the ul to effect the change to the correct number of stars */<br />
.nostar {background-position:0 0}<br />
.onestar {background-position:0 -16px}<br />
.twostar {background-position:0 -32px}<br />
.threestar {background-position:0 -48px}<br />
.fourstar {background-position:0 -64px}<br />
.fivestar {background-position:0 -80px}<br />
ul.rating li {<br />
&nbsp; &nbsp; &nbsp; &nbsp; cursor: pointer;<br />
&nbsp;/*ie5 mac doesn't like it if the list is floated\*/<br />
&nbsp; &nbsp; &nbsp; &nbsp; float:left;<br />
&nbsp; &nbsp; &nbsp; &nbsp; /* end hide*/<br />
&nbsp; &nbsp; &nbsp; &nbsp; text-indent:-999em;<br />
}<br />
ul.rating li a {<br />
&nbsp; &nbsp; &nbsp; &nbsp; position:absolute;<br />
&nbsp; &nbsp; &nbsp; &nbsp; left:0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; top:0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; width:16px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; height:16px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; text-decoration:none;<br />
&nbsp; &nbsp; &nbsp; &nbsp; z-index: 200;<br />
}<br />
ul.rating li.one a {left:0}<br />
ul.rating li.two a {left:16px;}<br />
ul.rating li.three a {left:32px;}<br />
ul.rating li.four a {left:48px;}<br />
ul.rating li.five a {left:64px;}<br />
<br />
ul.rating li a:hover {<br />
&nbsp; &nbsp; &nbsp; &nbsp; z-index:2;<br />
&nbsp; &nbsp; &nbsp; &nbsp; width:80px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; height:16px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; overflow:hidden;<br />
&nbsp; &nbsp; &nbsp; &nbsp; left:0;&nbsp; &nbsp; &nbsp; &nbsp; <br />
}<br />
ul.normal li a:hover {&nbsp; &nbsp; &nbsp; &nbsp; background: url(star-bluebk.gif) no-repeat 0 0}<br />
ul.featured li a:hover {&nbsp; &nbsp; &nbsp; &nbsp; background: url(star-goldbk.gif) no-repeat 0 0}<br />
ul.rating li.one a:hover {background-position:0 -176px;}<br />
ul.rating li.two a:hover {background-position:0 -192px;}<br />
ul.rating li.three a:hover {background-position:0 -208px}<br />
ul.rating li.four a:hover {background-position:0 -224px}<br />
ul.rating li.five a:hover {background-position:0 -240px}</pre>i havent even been able to get the system to average the current rating and the new rating... HELP!!!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>thenajsays</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237323.html</guid>
		</item>
		<item>
			<title>Decimal places</title>
			<link>http://www.daniweb.com/forums/thread237237.html</link>
			<pubDate>Mon, 09 Nov 2009 14:18:41 GMT</pubDate>
			<description>Is there a code that changes decimal places?  Example if you have 333.333333..... can you make it say just 333 
 
Thanks</description>
			<content:encoded><![CDATA[<div>Is there a code that changes decimal places?  Example if you have 333.333333..... can you make it say just 333<br />
<br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>mcrawford3911</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237237.html</guid>
		</item>
		<item>
			<title>List Items</title>
			<link>http://www.daniweb.com/forums/thread237196.html</link>
			<pubDate>Mon, 09 Nov 2009 10:25:52 GMT</pubDate>
			<description><![CDATA[HI, 
 
 
            I am dynamically generating a unordered list. I want to get value("somevalue")  inside each <li> item. How can i access it please help me. 
 
<ul> 
<li value="somevalue" > item1 </li> 
<ul> 
 
Help me in using javascript or jsp to do the above.. thanx in advance]]></description>
			<content:encoded><![CDATA[<div>HI,<br />
<br />
<br />
            I am dynamically generating a unordered list. I want to get value(&quot;somevalue&quot;)  inside each &lt;li&gt; item. How can i access it please help me.<br />
<br />
&lt;ul&gt;<br />
&lt;li value=&quot;somevalue&quot; &gt; item1 &lt;/li&gt;<br />
&lt;ul&gt;<br />
<br />
Help me in using javascript or jsp to do the above.. thanx in advance</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>jaimca</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237196.html</guid>
		</item>
		<item>
			<title>Want to disaply entire string values in alertbox</title>
			<link>http://www.daniweb.com/forums/thread237193.html</link>
			<pubDate>Mon, 09 Nov 2009 10:16:42 GMT</pubDate>
			<description><![CDATA[Hiii. 
 
 Iam using alert box to display the total payment modes. 
But in Alert it displaying only 62 out of 110. 
 
my Code:: 
var hidpaym = document.frmrechnung.hidpayt.value; 
			var str = hidpaym.split(",") 
			var st = "" ; 
            alert("str.length::"+str.length)]]></description>
			<content:encoded><![CDATA[<div>Hiii.<br />
<br />
 Iam using alert box to display the total payment modes.<br />
But in Alert it displaying only 62 out of 110.<br />
<br />
my Code::<br />
var hidpaym = document.frmrechnung.hidpayt.value;<br />
			var str = hidpaym.split(&quot;,&quot;)<br />
			var st = &quot;&quot; ;<br />
            alert(&quot;str.length::&quot;+str.length)<br />
				for (i=0;i &lt; str.length ; i++)<br />
				{<br />
					if (st == &quot;&quot;)<br />
					{<br />
					<br />
						st = str[i];						<br />
						<br />
					}<br />
					else<br />
					{<br />
						st =st +&quot; \n &quot;+str[i];  // \n to create new line in alert						<br />
					}<br />
				 <br />
				 <br />
				}<br />
				alert(&quot;testing::&quot;+str.length)<br />
				<br />
			alert(&quot;Please enter integer values as follows,\r\n&quot;+st);<br />
			document.frmrechnung.txtSearch.focus();<br />
<br />
<br />
Please</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>vsource</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237193.html</guid>
		</item>
		<item>
			<title>conflicting javascript - clock/time and random background</title>
			<link>http://www.daniweb.com/forums/thread237143.html</link>
			<pubDate>Mon, 09 Nov 2009 06:21:05 GMT</pubDate>
			<description>Hi everyone, 
 
Im trying to make a personal home page that both shows the time and a random background each refresh using javascript. so far i have managed to get either one or the other to work but not both. 
i want to know if anyone could try and tell me what is wrong. 
 
the files can be found...</description>
			<content:encoded><![CDATA[<div>Hi everyone,<br />
<br />
Im trying to make a personal home page that both shows the time and a random background each refresh using javascript. so far i have managed to get either one or the other to work but not both.<br />
i want to know if anyone could try and tell me what is wrong.<br />
<br />
the files can be found at: <a rel="nofollow" class="t" href="http://ihf.lp.pl/narik/index.html" target="_blank">http://ihf.lp.pl/narik/index.html</a><br />
as you will see if you visit that the random image script works.<br />
(if u have slow net, you'll have to be patient the bg image is large)<br />
<br />
however if u visit <a rel="nofollow" class="t" href="http://ihf.lp.pl/narik/index_clock_nobg.html" target="_blank">http://ihf.lp.pl/narik/index_clock_nobg.html</a><br />
as hinted at by the name, the index file has the clock working but not the random background. They are both present in the html, but for some reason are not working together.<br />
<br />
the relevant javascript files within that folder are: randomimage.js &amp; clock.js<br />
the background images can be found at <a rel="nofollow" class="t" href="http://ihf.lp.pl/narik/images/wallpapers/1.jpg" target="_blank">http://ihf.lp.pl/narik/images/wallpapers/1.jpg</a> (the image names go from 1.jpg through to 17.jpg)<br />
<br />
if anyone could take a quick look and offer some suggestion as to what is wrong, or even better provide me a solution it would be much appreciated.<br />
<br />
thank you kindly,<br />
Narik<br />
<br />
PS: if u would like me to edit this post so as to include the code please say, i chose not too as i felt the post would be very large then.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>Nearly Narik</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237143.html</guid>
		</item>
		<item>
			<title>add text onclick to textarea where carot is</title>
			<link>http://www.daniweb.com/forums/thread236952.html</link>
			<pubDate>Sun, 08 Nov 2009 09:07:52 GMT</pubDate>
			<description><![CDATA[<div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags" target="_blank">Help with Code Tags</a> </div> <div> <strong>JavaScript / DHTML / AJAX...]]></description>
			<content:encoded><![CDATA[<div> <pre style="margin:20px; line-height:13px">&lt;script&gt;<br />
function addText(event){<br />
document.getElementById(&quot;insertid&quot;).value +=<br />
(event.srcElement || event.target).firstChild.nodeValue.toString();<br />
}<br />
&lt;/script&gt;<br />
&lt;textarea id=&quot;inserid&quot;&gt;&lt;/textarea&gt;<br />
&lt;table onclick=addText(event)&gt;&lt;tr&gt;&lt;td&gt;[bbcode][/bbcode]&lt;/td&gt;&lt;td&gt;[bbcode2][/bbcode2]&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</pre>problem is whe i click on the bbcode or bbcode2 it inserts it at the end of whatever is in the textarea. im looking to insert it into where the user clicks(where the carat is)<br />
like if  a user entered in the textearea:<br />
 <pre style="margin:20px; line-height:13px">hey whats up</pre>and the carrot was after hey then when they click the bbcode it enteres it as  <pre style="margin:20px; line-height:13px">hey[bbcode][/bbcode] whats up</pre><br />
how do i do that?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>SKANK!!!!!</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236952.html</guid>
		</item>
		<item>
			<title>how do i make a simple scrollbar with javascript and css</title>
			<link>http://www.daniweb.com/forums/thread236948.html</link>
			<pubDate>Sun, 08 Nov 2009 08:17:09 GMT</pubDate>
			<description>does anyone know of any tutorials? i don want to use jquery. just javascript. i googled and found nothing but i know its possible. does anyone know? just a simple one. for like divs</description>
			<content:encoded><![CDATA[<div>does anyone know of any tutorials? i don want to use jquery. just javascript. i googled and found nothing but i know its possible. does anyone know? just a simple one. for like divs</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>SKANK!!!!!</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236948.html</guid>
		</item>
		<item>
			<title>is this possible?</title>
			<link>http://www.daniweb.com/forums/thread236944.html</link>
			<pubDate>Sun, 08 Nov 2009 07:11:06 GMT</pubDate>
			<description><![CDATA[I am building a website that's worked out very nicely so far with few problems.  It's mainly coded in php and xhtml with css.  This site also uses 1 inline frame. 
 
I don't know much about javascript - it seems to be such an immense scripting language to me, but what I do know is that it's useful...]]></description>
			<content:encoded><![CDATA[<div>I am building a website that's worked out very nicely so far with few problems.  It's mainly coded in php and xhtml with css.  This site also uses 1 inline frame.<br />
<br />
I don't know much about javascript - it seems to be such an immense scripting language to me, but what I do know is that it's useful for things like what I'm trying to do - specifically refreshing/reloading pages.<br />
<br />
I found a snippet of javascript that works very well provided that it's only one child and one parent, but now I'm running into a problem.<br />
<br />
On the main site (parent page) there is a link to register.  This results in a pop up window - done by javascript.  This popup window contains the terms of registering to the site, and if the user agrees to the terms he/she clicks a button which will take the user to a registration form in the same popup, via a form submit button.<br />
<br />
After he/she registers and clicks on the submit button for the registration page, the popup window will then load a third page which processes user data, does checks against the database, etc etc, and if successful the user will then have a limited account for the site.<br />
<br />
My problem is trying to refresh the original parent (main site) page that executed the original popup, so that the links will update.<br />
<br />
When a user logs into the site, he/she is prompted to enter their information into an inline frame in the parent site, and the javascript snippet that I have will refresh the parent page just fine.<br />
<br />
When I use this same snippet or any of the other thousands of snippets out there on the web, it seems to refresh either the first popup window that contains the terms, or it will refresh the popup window that contains the registration process, which will result in an error saying the user is already logged in.<br />
<br />
What I would like to do is have the user click a continue button after reading the &quot;Welcome to the site blah blah blah&quot; /process registration page after user registration is successful and completed, which will close the popup window and refresh the original parent window.<br />
<br />
Does anyone know what I should look into for this, or can point me in the right direction?<br />
<br />
Site map is like:<br />
parent page<br />
     |<br />
     V<br />
popup1(terms) &gt; popup1(register form) &gt; popup1 (process data/welcome message)<br />
<br />
popup1(process data...etc) should refresh the parent page<br />
<br />
the snippet I'm using is:<br />
 <pre style="margin:20px; line-height:13px">&lt;script&gt;<br />
function checkit()<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; myvar = location.search.substr(1);<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (myvar==&quot;b&quot;){ }<br />
&nbsp; &nbsp; &nbsp; &nbsp; else{ setTimeout(&quot;window.parent.location.href = window.parent.location.href+'?b'&quot;,3000);}<br />
}<br />
<br />
window.onload=checkit;<br />
<br />
&lt;/script&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>sleign</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236944.html</guid>
		</item>
		<item>
			<title>sending more than the value through ajax</title>
			<link>http://www.daniweb.com/forums/thread236943.html</link>
			<pubDate>Sun, 08 Nov 2009 07:09:57 GMT</pubDate>
			<description>ok so i am an avid php developer and i am starting to get into ajax so i can keep file sizes and code down to a minimum. 
 
i am looking in the w3schools ajax examples but i am a little lost at how to send through a variable to the page i am using to process. 
 
what i would like to do is send...</description>
			<content:encoded><![CDATA[<div>ok so i am an avid php developer and i am starting to get into ajax so i can keep file sizes and code down to a minimum.<br />
<br />
i am looking in the w3schools ajax examples but i am a little lost at how to send through a variable to the page i am using to process.<br />
<br />
what i would like to do is send through an id that is being recalled from the database to tell it what to save over.<br />
<br />
any help would be very helpful. thanks in advance <br />
<br />
ajax<br />
 <pre style="margin:20px; line-height:13px">function action()<br />
{<br />
var xmlhttp;<br />
if (window.XMLHttpRequest)<br />
&nbsp; {<br />
&nbsp; // code for IE7+, Firefox, Chrome, Opera, Safari<br />
&nbsp; xmlhttp=new XMLHttpRequest();<br />
&nbsp; }<br />
else<br />
&nbsp; {<br />
&nbsp; // code for IE6, IE5<br />
&nbsp; xmlhttp=new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);<br />
&nbsp; }<br />
xmlhttp.onreadystatechange=function()<br />
{<br />
if(xmlhttp.readyState==4)<br />
&nbsp; {<br />
&nbsp; document.myForm.time.value=xmlhttp.responseText;<br />
&nbsp; }<br />
}<br />
xmlhttp.open(&quot;POST&quot;,&quot;action.php&quot;,true);<br />
xmlhttp.send(null);<br />
}</pre><br />
html form<br />
 <pre style="margin:20px; line-height:13px">&lt;form action=&quot;#&quot; method=&quot;post&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;button name=&quot;save&quot; type=&quot;submit&quot; value=&quot;Save&quot; onclick=&quot;action();&quot;&gt;Save&lt;/button&gt;<br />
&lt;input type=&quot;text&quot; name=&quot;address&quot; /&gt;<br />
&lt;/form&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>itisnot_me</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236943.html</guid>
		</item>
		<item>
			<title>opacity in javascript</title>
			<link>http://www.daniweb.com/forums/thread236551.html</link>
			<pubDate>Fri, 06 Nov 2009 11:45:03 GMT</pubDate>
			<description>document.getElementById(fadeImageID).style.opacity is working in firefox but its not working in ie</description>
			<content:encoded><![CDATA[<div>document.getElementById(fadeImageID).style.opacity is working in firefox but its not working in ie</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>rudz</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236551.html</guid>
		</item>
		<item>
			<title>Link with Focus</title>
			<link>http://www.daniweb.com/forums/thread236548.html</link>
			<pubDate>Fri, 06 Nov 2009 11:06:17 GMT</pubDate>
			<description>hi guys, just want to ask if it is possible to check which link on the page receives a focus? For example, i got Links name A1, A2, A3, A4 and A5. How to check which link is currently receiving the focus? is it possible to do? thanks ...</description>
			<content:encoded><![CDATA[<div>hi guys, just want to ask if it is possible to check which link on the page receives a focus? For example, i got Links name A1, A2, A3, A4 and A5. How to check which link is currently receiving the focus? is it possible to do? thanks ...</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>cguan_77</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236548.html</guid>
		</item>
		<item>
			<title>Question about pop up window(js) inside dynamic ajax content</title>
			<link>http://www.daniweb.com/forums/thread236542.html</link>
			<pubDate>Fri, 06 Nov 2009 10:46:29 GMT</pubDate>
			<description>Hi, 
 
My problem at the moment is a bit different than specified in topic title. 
 
I have an Iframe which displays .html file with js/ content slider 
when i click a link inside of that iframe I want for pop up window (greybox) to appear, but not inside of iframe , outside of it. 
 
I found a...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
My problem at the moment is a bit different than specified in topic title.<br />
<br />
I have an Iframe which displays .html file with js/ content slider<br />
when i click a link inside of that iframe I want for pop up window (greybox) to appear, but not inside of iframe , outside of it.<br />
<br />
I found a section of developers page about this, but I don't seem to be able to do this..  <a rel="nofollow" class="t" href="http://orangoo.com/labs/GreyBox/FAQ/#q12" target="_blank">http://orangoo.com/labs/GreyBox/FAQ/#q12</a><br />
<br />
I undersand that I must leave greybox folder/files where they normally are located?! <br />
<br />
Do i need to add something more to<br />
 <pre style="margin:20px; line-height:13px">&lt;a href=&quot;http://google.com/&quot; onclick=&quot;return parent.GB_show('Google', this.href)&quot;&gt;Visit Google&lt;/a&gt;</pre>as I just copied it. with no changes ..</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>wonderland</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236542.html</guid>
		</item>
		<item>
			<title>Javascript read text file and create table</title>
			<link>http://www.daniweb.com/forums/thread236519.html</link>
			<pubDate>Fri, 06 Nov 2009 09:11:02 GMT</pubDate>
			<description><![CDATA[Hi, 
 
I got a text file ('testdetails2.txt') and my text file looks something like this:  
 
abc123, 234 pqr,xyz "type"  
bc123, 234 pqr,xyz "type"  
c123, 234 pqr,xyz "type"  
n23, 234 pqr,xyz "type"  
aj23, 234 pqr,xyz "type"]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I got a text file ('testdetails2.txt') and my text file looks something like this: <br />
<br />
abc123, 234 pqr,xyz &quot;type&quot; <br />
bc123, 234 pqr,xyz &quot;type&quot; <br />
c123, 234 pqr,xyz &quot;type&quot; <br />
n23, 234 pqr,xyz &quot;type&quot; <br />
aj23, 234 pqr,xyz &quot;type&quot; <br />
<br />
As you notice, it has got &quot;,&quot; aswell a blank space and &quot;&quot;. all i wish to to do is preset the contents of the text file in a nice html table.<br />
<br />
Please can someone help?<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;html&gt;<br />
&lt;/head&gt;&nbsp;  <br />
&lt;script type=&quot;text/javascript&quot;&gt;&nbsp;  <br />
function loadTxtFile(){<br />
..<br />
..<br />
<br />
}<br />
&lt;/script&gt;<br />
<br />
&lt;body&gt;&nbsp;  <br />
&lt;div id=&quot;T1&quot; style=&quot;border:1px solid black;width:300;padding:5&quot;&gt;&lt;/div&gt;&lt;br /&gt;&nbsp;  <br />
&lt;button onclick=&quot;loadTxtDoc('testdetails2.txt')&quot;&gt;Click&lt;/button&gt;&nbsp;  <br />
&lt;button onclick=&quot;loadTxtDoc('testdetails3.csv')&quot;&gt;Click&lt;/button&gt;&nbsp;  <br />
&nbsp;&lt;/body&gt; <br />
&lt;/html&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>SALMANSOHAIL</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236519.html</guid>
		</item>
		<item>
			<title>Javascript problem in Ajax</title>
			<link>http://www.daniweb.com/forums/thread236479.html</link>
			<pubDate>Fri, 06 Nov 2009 05:08:49 GMT</pubDate>
			<description><![CDATA[clienthint.js 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags" target="_blank">Help with Code Tags</a> </div> <div>...]]></description>
			<content:encoded><![CDATA[<div>clienthint.js<br />
 <pre style="margin:20px; line-height:13px">var xmlhttp;<br />
var parameters=&quot;&quot;;<br />
<br />
function showHint(url) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; var myform = document.forms[0];<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (myform != undefined) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; parameters = getRequestBody(myform);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; if (url.length == 0) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.getElementById(&quot;txtHint&quot;).innerHTML = &quot;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; xmlhttp = GetXmlHttpObject();<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (xmlhttp == null) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;Your browser does not support XMLHTTP!&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; xmlhttp.onreadystatechange = stateChanged;<br />
&nbsp; &nbsp; &nbsp; &nbsp; xmlhttp.open(&quot;POST&quot;, url, true);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; xmlhttp.send(parameters);<br />
<br />
}<br />
<br />
function stateChanged() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (xmlhttp.readyState == 4) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.getElementById(&quot;txtHint&quot;).innerHTML = xmlhttp.responseText;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
}<br />
<br />
function GetXmlHttpObject() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (window.XMLHttpRequest) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // code for IE7+, Firefox, Chrome, Opera, Safari<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return new XMLHttpRequest();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (window.ActiveXObject) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // code for IE6, IE5<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; return null;<br />
}<br />
<br />
function getRequestBody(oForm) {<br />
&nbsp; &nbsp; var aParams = new Array();<br />
<br />
&nbsp; &nbsp; for (var i=0 ; i &lt; oForm.elements.length; i++) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; var sParam = encodeURIComponent(oForm.elements[i].name);<br />
&nbsp; &nbsp; &nbsp; &nbsp; sParam += &quot;=&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; sParam += encodeURIComponent(oForm.elements[i].value);<br />
&nbsp; &nbsp; &nbsp; &nbsp; aParams.push(sParam);<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; return aParams.join(&quot;&amp;&quot;) + &quot;&amp;sid=&quot; + Math.random();<br />
}</pre><br />
test.jsp<br />
 <pre style="margin:20px; line-height:13px">this is test.jsp &lt;br&gt;<br />
<br />
&lt;script&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; function myfunc1() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;button click&quot;);&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
<br />
&lt;/script&gt;<br />
<br />
&lt;input name=&quot;mybutton&quot; value=&quot;Click to Alert&quot; type=&quot;button&quot; onclick=&quot;myfunc1();&quot;&gt;</pre><br />
index.jsp<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;html&gt;<br />
&lt;head&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;script src=&quot;clienthint.js&quot;&gt;&lt;/script&gt;&nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
<br />
Test Ajax &lt;br&gt;&lt;br&gt;<br />
<br />
&lt;input type=&quot;button&quot; value=&quot;test.jsp&quot; onclick=&quot;showHint('test.jsp');&quot;/&gt; <br />
&lt;hr/&gt;<br />
<br />
&lt;div id=&quot;txtHint&quot; style=&quot;background:gray;height:200px;&quot;&gt;&lt;/div&gt;<br />
<br />
&lt;/body&gt;<br />
&lt;/html&gt;</pre><br />
<span style="font-weight:bold">Test Flow 1:</span><br />
<br />
. When open page test.jsp directly<br />
. Click on button &quot;Click to Alert&quot;<br />
. Message &quot;button click&quot; appears<br />
<br />
<span style="font-weight:bold">Test Flow 2:</span><br />
<br />
. When open page index.jsp <br />
. Click on button &quot;test.jsp&quot;<br />
. Contents of DIV appears (contents of test.jsp)<br />
<br />
<span style="font-weight:bold">Question (on Test Flow 2):</span><br />
<br />
1. When Click on button &quot;Click to Alert&quot; at DIV section, but the message &quot;button click&quot; doesn't appears ? <br />
2. Why JavaScript on test.jsp doesn't work ?<br />
3. Is this JavaScript problem through Ajax ?<br />
4. By keeping the function myfunc1() in test.jsp, how to make this function myfunc1() worked at side of index.jsp page?<br />
<br />
<br />
Thanks in advance!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>manofspider</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236479.html</guid>
		</item>
		<item>
			<title>Help...Please!</title>
			<link>http://www.daniweb.com/forums/thread236346.html</link>
			<pubDate>Thu, 05 Nov 2009 18:39:46 GMT</pubDate>
			<description><![CDATA[Below is my code, I have two problems. 
1.  I would like to remove the E with the box from the webscreen.  Is there a way to do this without messing up the calculations? 
2.  Would like question 2 and the answer to have a , .  Example want 100,000 and not 100000. 
  <div class="codeblock"> <div...]]></description>
			<content:encoded><![CDATA[<div>Below is my code, I have two problems.<br />
1.  I would like to remove the E with the box from the webscreen.  Is there a way to do this without messing up the calculations?<br />
2.  Would like question 2 and the answer to have a , .  Example want 100,000 and not 100000.<br />
 <pre style="margin:20px; line-height:13px">&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;script type=&quot;text/javascript&quot;&gt;<br />
function CalculateSum(form)<br />
<br />
{<br />
Atext=form.input_A.value;<br />
Btext=form.input_B.value;<br />
Ctext=form.input_C.value;<br />
Dtext=form.input_D.value;<br />
Etext=form.input_E.value;<br />
var A = parseFloat(Atext);<br />
var B = parseFloat(Btext);<br />
var C = parseFloat(Ctext);<br />
var D = parseFloat(Dtext);<br />
var E =parseFloat(Etext);<br />
if(E&lt;300)<br />
form.Answer_for_E.value=&quot;Jugs&quot;;<br />
else<br />
if((E&gt;=300) &amp;&amp; (E&lt;800))<br />
form.Answer_for_E.value=&quot;Drums&quot;;<br />
else<br />
if((E&gt;=800) &amp;&amp; (E&lt;6601))<br />
form.Answer_for_E.value=&quot;IBC&quot;;<br />
else<br />
form.Answer_for_E.value=&quot;Bulk&quot;;<br />
form.Answer.value = (A * B / C * D);<br />
<br />
}<br />
&lt;/script&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;form name=&quot;Calculator&quot; method=&quot;post&quot;&gt;<br />
<br />
&lt;p&gt;Enter the number of SCR trucks you operate: &lt;input type=text name=&quot;input_A&quot; size=10&gt;&lt;/p&gt;<br />
<br />
&lt;p&gt;Enter the average miles for a single truck, traveled in one year (default is 100,000 miles p.a.): &lt;input type='text' name=&quot;input_B&quot; size='10' value='100000'&gt;&lt;/p&gt;<br />
<br />
&lt;p&gt;Enter the average fuel mileage of your trucks (measured as MPG, defaults is 6 MPG): &lt;input type='text' name=&quot;input_C&quot; size='10' value='6'&gt;&lt;/p&gt;<br />
<br />
&lt;P style=&quot;margin-top: 0; margin-bottom: 0&quot;&gt;Default dosage rate is 2% DEF per every gallon of diesel fuel based on engine manufactures: &lt;input type='text' name=&quot;input_D&quot; size='10' value=.02&gt;&lt;/p&gt;<br />
&lt;p style=&quot;margin-top: 0; margin-bottom: 0&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;<br />
(Please enter percent as a decimal. ie 2% is entered as .02) &lt;/p&gt;<br />
&lt;p&gt;E&lt;INPUT TYPE=TEXT NAME=&quot;input_E&quot; SIZE=10&gt;<br />
&lt;P&gt;&lt;INPUT TYPE=&quot;button&quot; VALUE=&quot;Average yearly gallons of DEF you may consume:&quot; name=&quot;AddButton&quot; onClick=&quot;CalculateSum(this.form)&quot;&gt;<br />
&nbsp; &lt;input name='Answer' type=text value&quot;gallons comsumed&quot; size=&quot;20&quot;&gt;<br />
&lt;p&gt;Recommended form of package to be used when ordering DEF: <br />
&lt;input name='Answer_for_E' type=text value&quot;here will be the answer for E&quot; size=&quot;20&quot;&gt;<br />
<br />
&lt;P&gt;&lt;INPUT TYPE=&quot;reset&quot; VALUE=&quot;Clear Fields&quot; name=&quot;ClearButton&quot;&gt;&lt;/P&gt;<br />
<br />
<br />
<br />
&lt;/FORM&gt;<br />
<br />
<br />
<br />
&lt;/BODY&gt;<br />
<br />
&lt;/HTML&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>mcrawford3911</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236346.html</guid>
		</item>
		<item>
			<title>RSS reader needed</title>
			<link>http://www.daniweb.com/forums/thread236297.html</link>
			<pubDate>Thu, 05 Nov 2009 14:59:39 GMT</pubDate>
			<description><![CDATA[Hi forum, 
 
I'm searching for RSS reader, specialities: 
 
- access only Wordpress 
- the Wordpress installation is within the same company 
- reader with no costs 
 
Could you reccomend some stable "products" ?]]></description>
			<content:encoded><![CDATA[<div>Hi forum,<br />
<br />
I'm searching for RSS reader, specialities:<br />
<br />
- access only Wordpress<br />
- the Wordpress installation is within the same company<br />
- reader with no costs<br />
<br />
Could you reccomend some stable &quot;products&quot; ?<br />
<br />
Thanks in advance,<br />
<br />
Michel</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>Michel777</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236297.html</guid>
		</item>
		<item>
			<title>scrollTo(x.y)</title>
			<link>http://www.daniweb.com/forums/thread236232.html</link>
			<pubDate>Thu, 05 Nov 2009 10:45:13 GMT</pubDate>
			<description><![CDATA[I am using scrollTo(x,y) function in my web application and function is not working in IE. But it is working with firefox. I'm using IE6. So can someone give me the reason and how to use scrollTo function with IE?]]></description>
			<content:encoded><![CDATA[<div>I am using scrollTo(x,y) function in my web application and function is not working in IE. But it is working with firefox. I'm using IE6. So can someone give me the reason and how to use scrollTo function with IE?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>isuruj</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236232.html</guid>
		</item>
		<item>
			<title>Get, show PDF, JPG, Video</title>
			<link>http://www.daniweb.com/forums/thread236199.html</link>
			<pubDate>Thu, 05 Nov 2009 09:10:20 GMT</pubDate>
			<description>Hi Forum, 
 
we want shown some pages, documents on by on in fullscreen, without any user interaction. 
This is a kind of digital signage application. 
 
All of them are accesable via http: 
 
1) http://.....any1.html  
2) http://.....any2.pdf 
3) http://.....any3.jpg</description>
			<content:encoded><![CDATA[<div>Hi Forum,<br />
<br />
we want shown some pages, documents on by on in fullscreen, without any user interaction.<br />
This is a kind of digital signage application.<br />
<br />
All of them are accesable via http:<br />
<br />
1) <a rel="nofollow" class="t" href="http://.....any1.html" target="_blank">http://.....any1.html</a> <br />
2) <a rel="nofollow" class="t" href="http://.....any2.pdf" target="_blank">http://.....any2.pdf</a><br />
3) <a rel="nofollow" class="t" href="http://.....any3.jpg" target="_blank">http://.....any3.jpg</a><br />
4) <a rel="nofollow" class="t" href="http://." target="_blank">http://.</a>... any4.mp4<br />
<br />
<br />
We have no problems with 1). But what about the rest ?<br />
How insert the contents to be able later rotat over them ?<br />
<br />
Thanks in advance,<br />
<br />
Michel</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>Michel777</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236199.html</guid>
		</item>
		<item>
			<title>HELP PLZ.  content appear/disappear</title>
			<link>http://www.daniweb.com/forums/thread236135.html</link>
			<pubDate>Thu, 05 Nov 2009 04:15:06 GMT</pubDate>
			<description><![CDATA[i'm trying to create a code where every content image in my html that is click must display a <div id="credits"> whenever the image is clicked. 
so the  <div id="credits"> must display information  in a format where it shows: 
 
File Name - image_file_name.jpg 
File Size - image_file_size (with...]]></description>
			<content:encoded><![CDATA[<div>i'm trying to create a code where every content image in my html that is click must display a &lt;div id=&quot;credits&quot;&gt; whenever the image is clicked.<br />
so the  &lt;div id=&quot;credits&quot;&gt; must display information  in a format where it shows:<br />
<br />
File Name - image_file_name.jpg<br />
File Size - image_file_size (with units of the image itself)<br />
 <br />
after an image is clicked on it must disappear after 3 seconds</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>dmmajorstudent</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236135.html</guid>
		</item>
		<item>
			<title>Javascript and Iframe Help</title>
			<link>http://www.daniweb.com/forums/thread236132.html</link>
			<pubDate>Thu, 05 Nov 2009 04:09:19 GMT</pubDate>
			<description><![CDATA[Hi, 
 
I'm a newbie and trying to use javascript to hide or display different divs within a single IFRAME.  I can't seem to get the syntax right... the Iframe, ID "frame", has 5 div's which I want to show depending on what link someone clicks.   
 
here's the js : 
 
  <div class="codeblock"> <div...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I'm a newbie and trying to use javascript to hide or display different divs within a single IFRAME.  I can't seem to get the syntax right... the Iframe, ID &quot;frame&quot;, has 5 div's which I want to show depending on what link someone clicks.  <br />
<br />
here's the js :<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;script type=&quot;text/javascript&quot;&gt;<br />
<br />
&lt;!--<br />
<br />
var iframe = document.getElementByID(&quot;frame&quot;);<br />
var info = iframe.contentDocument<br />
<br />
function showFrame(page)={<br />
&nbsp; &nbsp; &nbsp; &nbsp; iframe.style.display=&quot;block&quot;;<br />
if (page = 'weak') {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; info.getElementByID(&quot;weak&quot;).style.display = &quot;block&quot;; <br />
} else if (page = 'decap') {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; info.getElementByID(&quot;decap&quot;).style.display = &quot;block&quot;; <br />
} else if (page = 'fire') {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; info.getElementByID(&quot;fire&quot;).style.display = &quot;block&quot;; <br />
} else if (page = 'peppers') {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; info.getElementByID(&quot;peppers&quot;).style.display = &quot;block&quot;; <br />
} else if (age = 'bottles') {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; info.getElementByID(&quot;bottles&quot;).style.display = &quot;block&quot;; <br />
} else {&nbsp; &nbsp; &nbsp; &nbsp;  iframe.style.display=&quot;hidden&quot;;}<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
//--&gt;<br />
&lt;/script&gt;</pre><br />
and here's the html <br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;body&gt;<br />
&lt;div id=&quot;container&quot;&gt;<br />
&lt;div id=&quot;top&quot;&gt;<br />
&lt;img src=&quot;dhlogo.gif&quot; id=&quot;logo&quot;/&gt;<br />
&lt;img src=&quot;tagline.jpg&quot; id=&quot;logo&quot;/&gt;<br />
&lt;/div&gt;<br />
<br />
&lt;div id=&quot;decap&quot;&gt;<br />
&lt;a href=&quot;#&quot; onclick=&quot;showFrame('weak')&quot;&gt;&lt;img src=&quot;weaksaucelogo.jpg&quot; width=&quot;224&quot; height=&quot;144&quot; /&gt;&lt;/a&gt;<br />
&lt;a href=&quot;#&quot; onclick=&quot;showFrame('decap')&quot;&gt;&lt;img src=&quot;decapsaicinlogo.jpg&quot; /&gt;&lt;/a&gt;<br />
&lt;a href=&quot;#&quot; onclick=&quot;showFrame('fire')&quot;&gt;&lt;img src=&quot;fireandice.jpg&quot;&nbsp; /&gt;&lt;/a&gt;<br />
&lt;p&gt;<br />
&lt;a href=&quot;#&quot; onclick=&quot;showFrame('peppers')&quot;&gt;&lt;img src=&quot;pepperinfo.jpg&quot;&nbsp; /&gt;&lt;/a&gt;<br />
&lt;a href=&quot;#&quot; onclick=&quot;showFrame('bottles')&quot;&gt;&lt;img src=&quot;bottleinfo.jpg&quot; /&gt;&lt;/a&gt;<br />
<br />
&lt;img src=&quot;shake.jpg&quot; /&gt;<br />
&lt;/p&gt;<br />
<br />
&lt;p&gt;&lt;a href=&quot;mailto:decaphotsauce@gmail.com&quot;&gt;&lt;img src=&quot;email.jpg&quot;&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;<br />
<br />
&lt;iframe width=&quot;400px&quot; height=&quot;500px&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; src=&quot;frame.html&quot; id=&quot;frame&quot; name=&quot;frame&quot; style=&quot;left:50%; margin-left: -200px; position:absolute; top:50%; margin-top:-250px; display: none;&quot; &gt;&lt;/iframe&gt;<br />
&lt;/div&gt;<br />
&lt;/body&gt;</pre><br />
and here's frame.html : <br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;body&gt;<br />
&lt;a href=&quot;javascipt:hideFrame()&quot;&gt;&lt;img src=&quot;bones2.gif&quot; id=&quot;bones&quot; style=&quot;border:none&quot;/&gt;&lt;/a&gt;<br />
&lt;div id=&quot;info&quot;&gt;<br />
&lt;div name=&quot;weak&quot; id=&quot;weak&quot; style=&quot;display: hidden;&quot;&gt;&lt;img src=&quot;weakinfo.jpg&quot; /&gt;&lt;/div&gt;<br />
&lt;div name=&quot;decap&quot; id=&quot;decap&quot; style=&quot;display: hidden;&quot;&gt;&lt;img src=&quot;decapsininfo.jpg&quot; /&gt;&lt;/div&gt;<br />
&lt;div name=&quot;fire&quot; id=&quot;fire&quot; style=&quot;display: hidden;&quot;&gt;&lt;img src=&quot;fireinfo.jpg&quot; /&gt;&lt;/div&gt;<br />
&lt;div name=&quot;peppers&quot; id=&quot;peppers&quot; style=&quot;display: hidden;&quot;&gt;&lt;img src=&quot;pepperinfotext.jpg&quot; /&gt;&lt;/div&gt;<br />
&lt;div name=&quot;bottles&quot; id=&quot;bottles&quot; style=&quot;display: hidden;&quot;&gt;&lt;img src=&quot;recycle.jpg&quot; /&gt;&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;/body&gt;</pre><br />
Perhaps there's a better way to approach this all together... as I said I'm a newb and any help would be greatly appreciated.   Also, how do I close the iframe from within the iframe? I'm not sure that the javascript<b></b>:Hideframe command is gonna work. <br />
<br />
thanks again,<br />
<br />
Andrew</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>A___F</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236132.html</guid>
		</item>
		<item>
			<title>Javascript stop function problem</title>
			<link>http://www.daniweb.com/forums/thread236105.html</link>
			<pubDate>Thu, 05 Nov 2009 01:30:14 GMT</pubDate>
			<description><![CDATA[Hi! 
of cause,  you already know, i'm gonna say im new to javascript and blahblahblah.... anyway, its a simple changing images animation starting by clicking on button. However, i stuck on stopping animation by clicking "stop" button.... here is my code, please if somebody can take time to look at...]]></description>
			<content:encoded><![CDATA[<div>Hi!<br />
of cause,  you already know, i'm gonna say im new to javascript and blahblahblah.... anyway, its a simple changing images animation starting by clicking on button. However, i stuck on stopping animation by clicking &quot;stop&quot; button.... here is my code, please if somebody can take time to look at it, i would really appreciate it!<br />
<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;script language=&quot;JavaScript&quot;&gt;<br />
<br />
&nbsp; &nbsp; // Preloaded images<br />
<br />
&nbsp; &nbsp; if (document.images)<br />
<br />
&nbsp; &nbsp; { <br />
<br />
&nbsp; &nbsp; &nbsp; demo1 = new Image();<br />
<br />
&nbsp; &nbsp; &nbsp; demo1.src = &quot;images/breakdance1.gif&quot;<br />
<br />
&nbsp;<br />
<br />
&nbsp; &nbsp; &nbsp; demo2 = new Image();<br />
<br />
&nbsp; &nbsp; &nbsp; demo2.src = &quot;images/breakdance2.gif&quot;;<br />
<br />
&nbsp;<br />
<br />
&nbsp; &nbsp; &nbsp; demo3 = new Image();<br />
<br />
&nbsp; &nbsp; &nbsp; demo3.src = &quot;images/breakdance3.gif&quot;;<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; demo4 = new Image();<br />
<br />
&nbsp; &nbsp; &nbsp; demo4.src = &quot;images/breakdance4.gif&quot;<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; demo5 = new Image();<br />
<br />
&nbsp; &nbsp; &nbsp; demo5.src = &quot;images/breakdance5.gif&quot;<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; demo6 = new Image();<br />
<br />
&nbsp; &nbsp; &nbsp; demo6.src = &quot;images/breakdance6.gif&quot;<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; demo7 = new Image();<br />
<br />
&nbsp; &nbsp; &nbsp; demo7.src = &quot;images/breakdance7.gif&quot;<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; demo8 = new Image();<br />
<br />
&nbsp; &nbsp; &nbsp; demo8.src = &quot;images/breakdance8.gif&quot;<br />
<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; // Reusable timer<br />
<br />
&nbsp; &nbsp; function timeimgs(numb)<br />
<br />
&nbsp; &nbsp; { <br />
<br />
&nbsp; &nbsp; &nbsp; thetimer = setTimeout(&quot;imgturn('&quot; +numb+ &quot;')&quot;, 1000);<br />
<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; // Reusable image turner<br />
<br />
&nbsp; &nbsp; function imgturn(numb)<br />
<br />
&nbsp; &nbsp; { <br />
<br />
&nbsp; &nbsp; &nbsp; if (document.images)<br />
<br />
&nbsp; &nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; // This will loop the image<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (numb == &quot;8&quot;) <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; { <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document&#91;&quot;demo&quot;&#93;.src = eval(&quot;demo8.src&quot;);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; timeimgs('1');<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; else<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; { <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document&#91;&quot;demo&quot;&#93;.src = eval(&quot;demo&quot; + numb + &quot;.src&quot;);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; timeimgs(numb = ++numb);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &lt;/script&gt;<br />
&lt;body&gt;<br />
<br />
&nbsp;  &lt;img src=&quot;images/breakdance1.gif&quot; name=&quot;demo&quot;/&gt; &lt;form action=&quot;&quot;&gt;&lt;p&gt; &lt;input type=&quot;button&quot; value=&quot;Watch this lesson&quot; onclick=&quot;timeimgs('2');&quot;/&gt;&lt;input type=&quot;button&quot; value=&quot;stop&quot; onclick=&quot;clearInterval(timeimgs);&quot;/&gt;&nbsp; &lt;/p&gt;&lt;/form&gt;<br />
&lt;/body&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>tatyana84</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236105.html</guid>
		</item>
		<item>
			<title>Please help!!!  JavaScript!</title>
			<link>http://www.daniweb.com/forums/thread236102.html</link>
			<pubDate>Thu, 05 Nov 2009 01:17:34 GMT</pubDate>
			<description>i’m using javascript, below is the form.  If you go to the(A * B / C * D); part of the form.  For some reason it does not work…do not know if I have something wrong.  But if I were to enter 30 as A, 100,000 as B, 6 as C, and .2 as D.  The answer should be 10,000.   Can you help me figure out what...</description>
			<content:encoded><![CDATA[<div>i’m using javascript, below is the form.  If you go to the(A * B / C * D); part of the form.  For some reason it does not work…do not know if I have something wrong.  But if I were to enter 30 as A, 100,000 as B, 6 as C, and .2 as D.  The answer should be 10,000.   Can you help me figure out what is wrong? <br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;!-- 2005/11/08 Science Buddies: JavaScript calculator, adds two numbers --&gt;<br />
&lt;HTML&gt;<br />
&lt;HEAD&gt;<br />
&lt;TITLE&gt;Simple Adder&lt;/TITLE&gt;<br />
<br />
&lt;!-- saved from url=(0030)&#91;url&#93;http://www.sciencebuddies.org/&#91;/url&#93; --&gt;<br />
&lt;!-- When this code is saved as a local file, the preceding line tells Internet Explorer to treat this file according to the security rules for the Internet zone (plus any security rules specific for the Science Buddies website). --&gt;<br />
&lt;SCRIPT LANGUAGE=&quot;JavaScript&quot;&gt;<br />
&lt;!-- old browsers can't handle JavaScript functions so comment them out<br />
// This is a single-line JavaScript comment.<br />
// Below is a multi-line JavaScript comment.<br />
/* CalculateSum: this function has 3 arguments:<br />
&nbsp;  Atext, Btext and form. It converts Atext and Btext to <br />
&nbsp;  numbers using the built-in JavaScript &quot;parseFloat&quot; method. <br />
&nbsp;  It then uses the form argument to output the sum of the <br />
&nbsp;  numbers to the form's Answer field. Notice that the <br />
&nbsp;  function does *not* need to know the the names of the <br />
&nbsp;  form's input fields. Those values are passed as arguments. <br />
&nbsp;  It does need to know that the form has a field named <br />
&nbsp;  &quot;Answer&quot; so that it can put the result there.<br />
<br />
&nbsp;  Here is how to end a multi-line JavaScript comment: */<br />
<br />
function CalculateSum(Atext, Btext, Ctext, Dtext, form)<br />
{<br />
var A = parseFloat(Atext);<br />
var B = parseFloat(Btext);<br />
var C = parseFloat(Ctext);<br />
var D = parseFloat(Ctext);<br />
form.Answer.value = (A * B / C * D);<br />
}<br />
<br />
/* ClearForm: this function has 1 argument: form.<br />
&nbsp;  It clears the input and answer fields on the form. <br />
&nbsp;  It needs to know the names of the INPUT elements in order<br />
&nbsp;  to do this. */<br />
<br />
function ClearForm(form)<br />
{<br />
form.input_A.value = &quot;&quot;;<br />
form.input_B.value = &quot;&quot;;<br />
form.input_C.value = &quot;&quot;;<br />
form.input_D.value = &quot;&quot;;<br />
form.Answer.value = &quot;&quot;;<br />
}<br />
<br />
// end of JavaScript functions --&gt;<br />
&lt;/SCRIPT&gt;<br />
&lt;/HEAD&gt;<br />
<br />
&lt;BODY&gt;<br />
<br />
&lt;P&gt;&lt;FONT SIZE=&quot;+2&quot;&gt;Simple Adder&lt;/FONT&gt;&lt;/P&gt;<br />
<br />
&lt;FORM NAME=&quot;Calculator&quot; METHOD=&quot;post&quot;&gt;<br />
&lt;P&gt;Enter the number of SCR trucks you operate: &lt;INPUT TYPE=TEXT NAME=&quot;input_A&quot; SIZE=10&gt;&lt;/P&gt;<br />
&lt;P&gt;Enter the average miles for a single truck, traveled in one year (default is 100,000 miles p.a.): &lt;INPUT TYPE=TEXT NAME=&quot;input_B&quot; SIZE=10&gt;&lt;/P&gt;<br />
&lt;P&gt;Enter the average fuel mileage of your trucks (measured as MPG, defaults is 6 MPG): &lt;INPUT TYPE=TEXT NAME=&quot;input_C&quot; SIZE=10&gt;&lt;/P&gt;<br />
&lt;P&gt;Default dosage rate is 2% DEF per every gallon of diesel fuel based on engine manufactures: &lt;INPUT TYPE=TEXT NAME=&quot;input_D&quot; SIZE=10&gt;&lt;/P&gt;<br />
&lt;P&gt;&lt;INPUT TYPE=&quot;button&quot; VALUE=&quot;Average yearly gallons of DEF you may consume&quot; name=&quot;AddButton&quot; onClick=&quot;CalculateSum(this.form.input_A.value, this.form.input_B.value, this.form.input_C.value, this.form.input_D.value, this.form)&quot;&gt;&lt;/P&gt;<br />
&lt;P&gt;&lt;INPUT TYPE=&quot;button&quot; VALUE=&quot;Clear Fields&quot; name=&quot;ClearButton&quot; onClick=&quot;ClearForm(this.form)&quot;&gt;&lt;/P&gt;<br />
&lt;P&gt;Answer = &lt;INPUT TYPE=TEXT NAME=&quot;Answer&quot; SIZE=12&gt;&lt;/P&gt;<br />
&lt;/FORM&gt;<br />
<br />
&lt;/BODY&gt;<br />
&lt;/HTML&gt;<br />
<br />
&lt;/html&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>mcrawford3911</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236102.html</guid>
		</item>
		<item>
			<title>how can i make a window close itself after running the php code</title>
			<link>http://www.daniweb.com/forums/thread236094.html</link>
			<pubDate>Thu, 05 Nov 2009 00:14:10 GMT</pubDate>
			<description>i know how to do the link thing that if u click it it closes the window. but im wondering if theres a way to automatically close a window after the php code is done running. 
 cause i have an inbox and theres a link to delete the message if you click on it it will open up a new windows and run the...</description>
			<content:encoded><![CDATA[<div>i know how to do the link thing that if u click it it closes the window. but im wondering if theres a way to automatically close a window after the php code is done running.<br />
 cause i have an inbox and theres a link to delete the message if you click on it it will open up a new windows and run the php script to delete the message then it will say message deleted. im wondering how instead if just saying msg deleted it can close itself(the window) as well? does anyone know how? can i do it with pure php or do i need javascript too? i figured javascript.<br />
 <br />
 because the link ive come up with stuff im working on elsewhere is a javascript link to close the window.<br />
<br />
anyone know the javascript to do this? plz helps.?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>SKANK!!!!!</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236094.html</guid>
		</item>
		<item>
			<title>onClick code dont now how to use.</title>
			<link>http://www.daniweb.com/forums/thread236058.html</link>
			<pubDate>Wed, 04 Nov 2009 21:30:24 GMT</pubDate>
			<description>Hi  
 
I am an turkish student trying to got understood of java ajax complition.. 
 
I have checked out the hole threads but cant see or ı have missed it up. 
 
SO here is my problem. 
 
I have a blog in blogspot. so in an post. ı want to do something like this.</description>
			<content:encoded><![CDATA[<div>Hi <br />
<br />
I am an turkish student trying to got understood of java ajax complition..<br />
<br />
I have checked out the hole threads but cant see or ı have missed it up.<br />
<br />
SO here is my problem.<br />
<br />
I have a blog in blogspot. so in an post. ı want to do something like this.<br />
<br />
İn the post ı have a code with &quot;java&quot; center of the post or where ever. and is with clicking on this code or something jpeg or video etc but with javascripted..  ı want to call the posts real content.. but without clicking that. ı dont want to show up the content.<br />
<br />
so is ; if u click you wıll get the content ..if you not. you wont get it until you cilck it :)<br />
<br />
p.s; sorry for my poor english. ı am so new on these coding part and trying to figure out the idea of it.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>kaankucuk</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236058.html</guid>
		</item>
		<item>
			<title><![CDATA[Regex to remove 'Illegal Characters']]></title>
			<link>http://www.daniweb.com/forums/thread235970.html</link>
			<pubDate>Wed, 04 Nov 2009 13:32:47 GMT</pubDate>
			<description><![CDATA[Hi all 
 
I've been trying to find a regular expression that checks if input contains any of the following characters only: 
 
`~!@#$%^&*()-=+\|/?.>,<;:'"[{]} 
 
I want to allow users to input any normal character a-z or any numbers as well as underscores and any special character that resembles a...]]></description>
			<content:encoded><![CDATA[<div>Hi all<br />
<br />
I've been trying to find a regular expression that checks if input contains any of the following characters only:<br />
<br />
`~!@#$%^&amp;*()-=+\|/?.&gt;,&lt;;:'&quot;[{]}<br />
<br />
I want to allow users to input any normal character a-z or any numbers as well as underscores and any special character that resembles a letter such as é, ê, ô or ÿ etc<br />
<br />
So far I have the following which doesn't allow for any of the special characters that I want to allow users to use:<br />
 <pre style="margin:20px; line-height:13px">/&#91;^\w\s&#93;/g</pre>The code i'm using is as follows:<br />
 <pre style="margin:20px; line-height:13px">function checkName (strng) {<br />
var error = &quot;&quot;;<br />
<br />
&nbsp; &nbsp; var illegalChars = /&#91;^\w\s&#93;/g; // allow letters, numbers, and underscores<br />
&nbsp; &nbsp; if (strng == &quot;&quot;) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  error = &quot;Please enter your name.\n&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; else if((strng.length &lt; 2)) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; error = &quot;The name is the wrong length.\n&quot;;<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; else if (illegalChars.test(strng)) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; error = &quot;The name contains illegal characters.\n&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
return error;<br />
}</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>Venom Rush</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235970.html</guid>
		</item>
		<item>
			<title>IE6/IE7 bug in jQuery/CSS</title>
			<link>http://www.daniweb.com/forums/thread235904.html</link>
			<pubDate>Wed, 04 Nov 2009 09:17:50 GMT</pubDate>
			<description>I can reproduce this bug in IE7 (and a colleague in IE6), my link is here: 
 
http://www.pritaeas.net/tools/linkfarm/ 
 
If you select a tag the list gets filtered and the tag added to the selected div. Unselecting it will reset the taglist, and remove() the tag from the selected div. Selecting...</description>
			<content:encoded><![CDATA[<div>I can reproduce this bug in IE7 (and a colleague in IE6), my link is here:<br />
<br />
<a rel="nofollow" class="t" href="http://www.pritaeas.net/tools/linkfarm/" target="_blank">http://www.pritaeas.net/tools/linkfarm/</a><br />
<br />
If you select a tag the list gets filtered and the tag added to the selected div. Unselecting it will reset the taglist, and remove() the tag from the selected div. Selecting another one will result in positioning the new tag next to the element that has been removed.<br />
<br />
Is this a jQuery issue, or can this be fixed by changing my css.<br />
<br />
After a suggestion on StackOverflow I've also tried to use .hide() and .hide(&quot;fast&quot;) but to no avail.<br />
<br />
T.i.a.<br />
<br />
<br />
Originally posted here: <a rel="nofollow" class="t" href="http://stackoverflow.com/questions/1668042/jquery-remove-doesnt-hide-used-space-in-ie6-and-ie7" target="_blank">http://stackoverflow.com/questions/1...in-ie6-and-ie7</a></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>pritaeas</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235904.html</guid>
		</item>
		<item>
			<title>change link border</title>
			<link>http://www.daniweb.com/forums/thread235891.html</link>
			<pubDate>Wed, 04 Nov 2009 08:44:03 GMT</pubDate>
			<description><![CDATA[Hi 
 
I have a link, which triggers a script, but when the link is clicked, i want it to get a border around it... currently tried using  
 
 
onclick="this.style.borderWidth = 1px" 
 
but no luck, 
 
lworks]]></description>
			<content:encoded><![CDATA[<div>Hi<br />
<br />
I have a link, which triggers a script, but when the link is clicked, i want it to get a border around it... currently tried using <br />
<br />
 <pre style="margin:20px; line-height:13px">onclick=&quot;this.style.borderWidth = 1px&quot;</pre><br />
but no luck,<br />
<br />
lworks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>lifeworks</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235891.html</guid>
		</item>
		<item>
			<title>Warning Message on Browser Close</title>
			<link>http://www.daniweb.com/forums/thread235886.html</link>
			<pubDate>Wed, 04 Nov 2009 08:09:53 GMT</pubDate>
			<description><![CDATA[Hi, 
Even I am trying the browser close event for cross browser and this should trigger only when X button is clicked or page is refreshed. Here's the code pasted above which I am using but it only works in IE. 
I know the issue is because of window.events and ClientX/ClientY. 
Could someone please...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
Even I am trying the browser close event for cross browser and this should trigger only when X button is clicked or page is refreshed. Here's the code pasted above which I am using but it only works in IE.<br />
I know the issue is because of window.events and ClientX/ClientY.<br />
Could someone please fix my code to make it work in all browsers? This is very urgent and have been striving since 3 days...<br />
<br />
*Please Note: Current code is working in IE only and to check you have to close the browser window or refresh the page with mouse click <pre style="margin:20px; line-height:13px">=====================<br />
&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot; &quot;http://www.w3.org/TR/html4/loose.dtd&quot;&gt;&lt;head&gt;<br />
&lt;title&gt;Warning Test&lt;/title&gt;<br />
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;&gt;<br />
&lt;meta http-equiv=&quot;Content-Style-Type&quot; content=&quot;text/css&quot;&gt;<br />
&lt;meta http-equiv=&quot;Content-Script-Type&quot; content=&quot;text/javascript&quot;&gt;<br />
&lt;script language=&quot;JavaScript&quot;&gt;<br />
<br />
// warning message javascript<br />
<br />
var isOpera, isIE, isNav, isFox, isOther = false;<br />
if (navigator.userAgent.indexOf(&quot;Opera&quot;) != -1) {<br />
isOpera = true;<br />
} else if (navigator.userAgent.indexOf(&quot;Firefox&quot;) != -1) {<br />
isFox = true;<br />
} else if (navigator.appName == &quot;Microsoft Internet Explorer&quot;) {<br />
isIE = true;<br />
} else if (navigator.appName == &quot;Netscape&quot;) {<br />
isNav = true;<br />
} else {<br />
isOther = true;<br />
}<br />
<br />
if (isIE || isOpera || isNav || isFox || isOther) {<br />
window.onbeforeunload = WarnUser;<br />
function WarnUser() {<br />
OffsetX = window.event.clientX;<br />
OffsetY = window.event.clientY;<br />
if (((window.event.clientX &lt; 0) || (window.event.clientY &lt; 0))<br />
&amp;&amp; (isWarnUser == true)) {<br />
event.returnValue = &quot; &quot;;<br />
//window. önunload = sessionInvalidate;<br />
} else {<br />
// Reset the flag to its default value.<br />
isWarnUser = true;<br />
}<br />
}<br />
}<br />
<br />
<br />
<br />
<br />
&lt;/script&gt;<br />
<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;script type=&quot;text/javascript&quot;&gt;<br />
var isWarnUser = true;<br />
&lt;/script&gt;<br />
test<br />
&lt;/body&gt;<br />
&lt;/html&gt;<br />
========================</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>ayusman.mohanty</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235886.html</guid>
		</item>
		<item>
			<title>please help onClick js code</title>
			<link>http://www.daniweb.com/forums/thread235854.html</link>
			<pubDate>Wed, 04 Nov 2009 05:03:51 GMT</pubDate>
			<description><![CDATA[hello, i'm a student trying create a website using javascript. i am not familiar with javascript and i must use it to change only the content on my page. i have been stuck on this for days and i just cannot get it right.  
 
using the 960 grid on the website what is the code to remove the behavior...]]></description>
			<content:encoded><![CDATA[<div>hello, i'm a student trying create a website using javascript. i am not familiar with javascript and i must use it to change only the content on my page. i have been stuck on this for days and i just cannot get it right. <br />
<br />
using the 960 grid on the website what is the code to remove the behavior of my sidebar links?<br />
<br />
also how do i add an onClick feature to my sidebar links?<br />
<br />
the last question i have is. what is the correct code to change <span style="font-weight:bold">only</span> the content of the page while everything else remains the same??<br />
<br />
This is my html for the side bar and content div.<br />
<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;!--HOT RODS LINKS --&gt;<br />
<br />
&lt;div class=&quot;grid_3&quot; id=&quot;car_links&quot;&gt;<br />
&nbsp;  &lt;script type=&quot;text/javascript&quot; src=&quot;js/hotrods.js&quot;&gt;<br />
&nbsp; &nbsp; &lt;ul&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;li &gt;&lt;a href=&quot;#&quot;&gt;Famous Hot Rods&lt;/a&gt;&lt;/li&gt;<br />
&nbsp; &nbsp; &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Electric Cars&lt;/a&gt;&lt;/li&gt;<br />
&nbsp; &nbsp; &lt;li &gt;&lt;a href=&quot;#&quot;&gt;Pre World War II&lt;/a&gt;&lt;/li&gt;<br />
&nbsp;  &lt;/script&gt;&nbsp;  <br />
<br />
&lt;/ul&gt;<br />
&lt;/div&gt;<br />
&lt;!--CONTENT --&gt;<br />
<br />
<br />
&lt;div class=&quot;grid_8&quot; id=&quot;content&quot;&gt; <br />
<br />
&lt;p&gt;Click On list for Hot Rod List for details. &lt;/p&gt;<br />
&nbsp;&lt;p id=&quot;text1&quot;&gt; <br />
&nbsp;&lt;/p&gt;<br />
<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <br />
&nbsp;  &lt;/div&gt;&nbsp;  <br />
&nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>dmmajorstudent</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235854.html</guid>
		</item>
		<item>
			<title>Aptana Studio Nokia WRT RSS Reader help</title>
			<link>http://www.daniweb.com/forums/thread235815.html</link>
			<pubDate>Wed, 04 Nov 2009 01:58:29 GMT</pubDate>
			<description><![CDATA[hi, i'm currently working on a project that require me to read from several servlet/feed. i am able to read from one servlet but am facing problem reading from the second servlet. 
below are my codes (i only uses one .js file for the project and serveral .js files to process the data retrieved from...]]></description>
			<content:encoded><![CDATA[<div>hi, i'm currently working on a project that require me to read from several servlet/feed. i am able to read from one servlet but am facing problem reading from the second servlet.<br />
below are my codes (i only uses one .js file for the project and serveral .js files to process the data retrieved from the servlet):<br />
<br />
 <pre style="margin:20px; line-height:13px">///////////////////////////////////////////////////////////////////////////////<br />
// RSS Reader example widget that demonstrates use of the WRTKit UI toolkit<br />
// in a real-world widget.<br />
<br />
// Feed update frequency.<br />
var updateFrequencyOptions = [<br />
&nbsp; &nbsp; { value: -1, text: &quot;never&quot; },<br />
&nbsp; &nbsp; { value: (1000 * 60 * 5), text: &quot;every 5 min&quot; },<br />
&nbsp; &nbsp; { value: (1000 * 60 * 15), text: &quot;every 15 min&quot; },<br />
&nbsp; &nbsp; { value: (1000 * 60 * 60), text: &quot;every 60 min&quot; },<br />
];<br />
<br />
// Feed update broker.<br />
var feedUpdateBroker = null;<br />
var feedUpdateBroker2 = null;<br />
<br />
// Reference to current feed items controls.<br />
var feedItemControls = [];<br />
var feedItemControls2 = [];<br />
<br />
// Feed item control pool.<br />
var feedItemControlPool = [];<br />
var feedItemControlPool2 = [];<br />
<br />
// Time when the feed was last modified.<br />
var feedLastModified = null;<br />
<br />
// Flag that tracks if a feed update is commanded or automatic.<br />
var feedUpdateCommanded = false;<br />
var feedUpdateCommanded2 = false;<br />
<br />
// Reference to the WRTKit user interface manager and views.<br />
var uiManager;<br />
var mainView;<br />
var settingsView;<br />
var currentView;<br />
<br />
// breakfast<br />
var breakfastView;<br />
var bfMainDishView;<br />
var bfIngredientsView;<br />
<br />
<br />
//Reference to main view controls<br />
var BreakfastButton;<br />
<br />
<br />
//Reference to breakfast view controls<br />
var BfMainDishButton;<br />
var BfIngredientsButton;<br />
<br />
// Reference to settings controls.<br />
var feedNameText;<br />
var feedName2Text;<br />
var feedUrlText;<br />
var feedUrl2Text;<br />
var eventLabel;<br />
var feedSelection;<br />
var feedUpdateFrequencySelection;<br />
var settingsSaveButton;<br />
var settingsCancelButton;<br />
<br />
// Constants for menu item identifiers.<br />
var MENU_ITEM_SETTINGS = 0;<br />
var MENU_ITEM_REFRESH = 1;<br />
var MENU_ITEM_ABOUT = 2;<br />
<br />
<br />
// Feed update timer identifier.<br />
var updateTimerId = null;<br />
<br />
//About menu lable<br />
var aboutLabel;<br />
<br />
// Feed name, URL and update frequency (in milliseconds; -1 if no auto update).<br />
var feedName = &quot;Meal Planner&quot;;<br />
//var feedURL = &quot;http://sitconnect.nyp.edu.sg/citizenryWidgetServer/latestNews&quot;;<br />
var feedURL = &quot;http://172.20.45.45:8080/FYPJ_Meal_Planner/BreakfastServlet&quot;;<br />
//Ingredients<br />
var feedName2 = &quot;Ingredients&quot;;<br />
var feedURL2 = &quot;http://172.20.45.45:8080/FYPJ_Meal_Planner/breakfastIngredients&quot;;<br />
var feedUpdateFrequency = -1;<br />
<br />
// Next scheduled update time; -1 if never.<br />
var feedUpdateTime = -1;<br />
<br />
var currentViewIndex = -1;<br />
<br />
// Called from the onload event handler to initialize the widget.<br />
function init() {<br />
&nbsp; &nbsp; if (window.widget) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; // set tab-navigation mode and show softkeys<br />
&nbsp; &nbsp; &nbsp; &nbsp; widget.setNavigationEnabled(false);<br />
&nbsp; &nbsp; &nbsp; &nbsp; window.menu.showSoftkeys();<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; // create menu<br />
&nbsp; &nbsp; &nbsp; &nbsp; var settingsMenuItem = new MenuItem(&quot;Settings&quot;, MENU_ITEM_SETTINGS);<br />
&nbsp; &nbsp; &nbsp; &nbsp; settingsMenuItem.onSelect = menuItemSelected;<br />
&nbsp; &nbsp; &nbsp; &nbsp; menu.append(settingsMenuItem);<br />
&nbsp; &nbsp; &nbsp; &nbsp; var refreshMenuItem = new MenuItem(&quot;Refresh&quot;, MENU_ITEM_REFRESH);<br />
&nbsp; &nbsp; &nbsp; &nbsp; refreshMenuItem.onSelect = menuItemSelected;<br />
&nbsp; &nbsp; &nbsp; &nbsp; menu.append(refreshMenuItem);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var aboutMenuItem = new MenuItem(&quot;About&quot;, MENU_ITEM_ABOUT);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; aboutMenuItem.onSelect = menuItemSelected;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; menu.append(aboutMenuItem);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; // load preferences<br />
&nbsp; &nbsp; &nbsp; &nbsp; loadPreferences();<br />
<br />
&nbsp; &nbsp; // create UI manager<br />
&nbsp; &nbsp; uiManager = new UIManager();<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // create main view<br />
&nbsp; &nbsp; mainView = new ListView();<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; // create settings view<br />
&nbsp; &nbsp; settingsView = new ListView(null, &quot;Settings&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; //Create about view<br />
&nbsp; &nbsp; &nbsp; &nbsp; aboutView = new ListView(null, &quot;RSS Reader&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; //create breakfast view<br />
&nbsp; &nbsp; &nbsp; &nbsp; breakfastView = new ListView(null, &quot;Breakfast&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; //create bfMainDish view<br />
&nbsp; &nbsp; &nbsp; &nbsp; bfMainDishView = new ListView(null, &quot;MainDish&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; //create bfIngredientsView<br />
&nbsp; &nbsp; &nbsp; &nbsp; bfIngredientsView = new ListView(null, &quot;Ingredients&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; //add button to main view<br />
&nbsp; &nbsp; &nbsp; &nbsp; BreakfastButton = new FormButton(null,&quot;Breakfast&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; BreakfastButton.addEventListener(&quot;ActionPerformed&quot;, showbreakfastView);<br />
&nbsp; &nbsp; &nbsp; &nbsp; mainView.addControl(BreakfastButton);<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; //add button to breakfast view<br />
&nbsp; &nbsp; &nbsp; &nbsp; BfMainDishButton = new FormButton(null,&quot;MainDish&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; BfMainDishButton.addEventListener(&quot;ActionPerformed&quot;, showbfMainDishView);<br />
&nbsp; &nbsp; &nbsp; &nbsp; breakfastView.addControl(BfMainDishButton);<br />
<br />
&nbsp; &nbsp; BfIngredientsButton = new FormButton(null, &quot;Ingredients&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; BfIngredientsButton.addEventListener(&quot;ActionPerformed&quot;, showbfIngredientsView);<br />
&nbsp; &nbsp; &nbsp; &nbsp; breakfastView.addControl(BfIngredientsButton);<br />
<br />
<br />
<br />
&nbsp; &nbsp; // feed name control<br />
&nbsp; &nbsp; feedNameText = new TextField('feedNameText', &quot;Feed name&quot;, feedName);<br />
&nbsp; &nbsp; settingsView.addControl(feedNameText);<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; feedName2Text = new TextField('feedNameText2', &quot;Feed name&quot;, feedName2);<br />
&nbsp; &nbsp; &nbsp; &nbsp; settingsView.addControl(feedName2Text);<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; // feed url control<br />
&nbsp; &nbsp; feedUrlText = new TextField('feedUrlText', &quot;Feed URL&quot;, feedURL);<br />
&nbsp; &nbsp; settingsView.addControl(feedUrlText);<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; feedUrl2Text = new TextField('feedUrl2Text', &quot;FeedURL&quot;, feedURL2);<br />
&nbsp; &nbsp; &nbsp; &nbsp; settingsView.addControl(feedUrl2Text);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; // About lable control<br />
&nbsp; &nbsp; &nbsp; &nbsp; aboutLabel = new Label();<br />
&nbsp; &nbsp; &nbsp; &nbsp; aboutView.addControl(aboutLabel);<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; // feed update frequency selection control<br />
&nbsp; &nbsp; feedUpdateFrequencySelection = new SelectionList(null, &quot;Check for updates&quot;, updateFrequencyOptions);<br />
&nbsp; &nbsp; settingsView.addControl(feedUpdateFrequencySelection);<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; // save settings button<br />
&nbsp; &nbsp; settingsSaveButton = new FormButton(null, &quot;Save&quot;);<br />
&nbsp; &nbsp; settingsSaveButton.addEventListener(&quot;ActionPerformed&quot;, saveSettingsClicked);<br />
&nbsp; &nbsp; settingsView.addControl(settingsSaveButton);<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; // cancel settings button<br />
&nbsp; &nbsp; settingsCancelButton = new FormButton(null, &quot;Cancel&quot;);<br />
&nbsp; &nbsp; settingsCancelButton.addEventListener(&quot;ActionPerformed&quot;, showMainView);<br />
&nbsp; &nbsp; settingsView.addControl(settingsCancelButton);<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; // display the main view if a feed has been configured<br />
&nbsp; &nbsp; // otherwise show the settings view<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (feedURL != null) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; showMainView();<br />
&nbsp; &nbsp; &nbsp;  // updateFeed();<br />
&nbsp; &nbsp; } <br />
&nbsp; &nbsp; &nbsp; &nbsp; else {<br />
&nbsp; &nbsp; &nbsp; &nbsp; showSettings();<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; if (feedURL2 != null) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; showMainView();<br />
&nbsp; &nbsp; &nbsp; &nbsp; updateFeed();<br />
&nbsp; &nbsp; } else {<br />
&nbsp; &nbsp; &nbsp; &nbsp; showSettings();<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; // start feed update timer (called once every second)<br />
&nbsp; &nbsp; updateTimerId = setInterval(updateFeedTimerFunc, 1000);<br />
&nbsp; &nbsp; &nbsp; &nbsp;  updateTimerId = setInterval(updateFeedTimerFunc2, 1000);<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
}<br />
<br />
// Callback for when menu items are selected.<br />
function menuItemSelected(id) {<br />
&nbsp; &nbsp; switch (id) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; case MENU_ITEM_SETTINGS:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; showSettings();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; case MENU_ITEM_REFRESH:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; updateFeed();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case MENU_ITEM_ABOUT<b></b>:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; showAboutView();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; }<br />
}<br />
<br />
// Loads widget preferences.<br />
function loadPreferences(){<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (window.widget) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // read feed URL, name and update frequency from the widget settings<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (typeof widget.preferenceForKey(&quot;FeedURL&quot;) != 'undefined' &amp;&amp; typeof widget.preferenceForKey(&quot;FeedName&quot;) != 'undefined') {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; feedURL = widget.preferenceForKey(&quot;FeedURL&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; feedName = widget.preferenceForKey(&quot;FeedName&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; feedURL2 = widget.preferenceForKey(&quot;FeedURL&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; feedName2 = widget.preferenceForKey(&quot;FeedName&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var feedUpdateFrequencyStr = widget.preferenceForKey(&quot;FeedUpdateFrequency&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; feedUpdateFrequency = (feedUpdateFrequencyStr == null) ? -1 : parseInt(feedUpdateFrequencyStr);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
}<br />
<br />
// Loads widget preferences.<br />
function savePreferences() {<br />
&nbsp; &nbsp; if (window.widget) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; // save settings in widget preferences store<br />
&nbsp; &nbsp; &nbsp; &nbsp; widget.setPreferenceForKey(feedURL, &quot;FeedURL&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; widget.setPreferenceForKey(feedName, &quot;FeedName&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; widget.setPreferenceForKey(feedURL2, &quot;FeedURL2&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; widget.setPreferenceForKey(feedName2, &quot;FeedName2&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; widget.setPreferenceForKey(feedUpdateFrequency.toString(), &quot;FeedUpdateFrequency&quot;);<br />
&nbsp; &nbsp; }<br />
}<br />
<br />
// Callback for settings view save button.<br />
function saveSettingsClicked() {<br />
&nbsp; &nbsp; // remember old URL<br />
&nbsp; &nbsp; var oldURL = feedURL;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; // update feed name and URL<br />
&nbsp; &nbsp; var selectedFeed = feedUrlText.getText();<br />
<br />
&nbsp; &nbsp; if (selectedFeed != null) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; feedURL = selectedFeed;<br />
&nbsp; &nbsp; &nbsp; &nbsp; feedName = feedNameText.getText();<br />
&nbsp; &nbsp; } else {<br />
&nbsp; &nbsp; &nbsp; &nbsp; feedURL = null;<br />
&nbsp; &nbsp; &nbsp; &nbsp; feedName = null;<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp;  // update frequency<br />
&nbsp; &nbsp; var selectedFrequency = feedUpdateFrequencySelection.getSelected();<br />
&nbsp; &nbsp; feedUpdateFrequency = (selectedFrequency != null) ? selectedFrequency.value : -1;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; // save preferences<br />
&nbsp; &nbsp; savePreferences();<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; // return to main view<br />
&nbsp; &nbsp; showMainView();<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp;function saveSettingsClicked() {<br />
&nbsp; &nbsp; // remember old URL<br />
&nbsp; &nbsp; var oldURL = feedURL2;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; // update feed name and URL<br />
&nbsp; &nbsp; var selectedFeed2 = feedUrl2Text.getText();<br />
<br />
&nbsp; &nbsp; if (selectedFeed2 != null) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; feedURL2 = selectedFeed2;<br />
&nbsp; &nbsp; &nbsp; &nbsp; feedName2 = feedName2Text.getText();<br />
&nbsp; &nbsp; } else {<br />
&nbsp; &nbsp; &nbsp; &nbsp; feedURL2 = null;<br />
&nbsp; &nbsp; &nbsp; &nbsp; feedName2 = null;<br />
&nbsp; &nbsp; }<br />
&nbsp;  <br />
&nbsp; &nbsp; // update frequency<br />
&nbsp; &nbsp; var selectedFrequency2 = feedUpdateFrequencySelection2.getSelected2();<br />
&nbsp; &nbsp; feedUpdateFrequency2 = (selectedFrequency2 != null) ? selectedFrequency2.value : -1;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; // save preferences<br />
&nbsp; &nbsp; savePreferences();<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; // return to main view<br />
&nbsp; &nbsp; showMainView();<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; // update the feed if the feed URL has changed<br />
&nbsp; &nbsp; if (feedURL != oldURL) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; feedLastModified = null;<br />
&nbsp; &nbsp; &nbsp; &nbsp; removeFeedItems();<br />
&nbsp; &nbsp; &nbsp; &nbsp; updateFeed();<br />
&nbsp; &nbsp; }<br />
}<br />
&nbsp;// update the feed if the feed URL has changed<br />
&nbsp; &nbsp; if (feedURL2 != oldURL) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; feedLastModified = null;<br />
&nbsp; &nbsp; &nbsp; &nbsp; removeFeedItems2();<br />
&nbsp; &nbsp; &nbsp; &nbsp; updateFeed2();<br />
&nbsp; &nbsp; }<br />
}<br />
<br />
// Show main view.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function showMainView(){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // set main view caption from feed name<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var mainViewCaption = (feedName == null) ? null : feedName;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mainView.setCaption(mainViewCaption);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // set right softkey to &quot;exit&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (window.widget) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; menu.setRightSoftkeyLabel(&quot;&quot;, null);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // show the main view<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; uiManager.setView(mainView);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
//show brakfast view<br />
function showbreakfastView(){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // set main view caption from feed name<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var breakfastViewCaption = (feedName == null) ? null : feedName;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; breakfastView.setCaption(breakfastViewCaption);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // set right softkey to &quot;exit&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (window.widget) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; menu.setRightSoftkeyLabel(&quot;&quot;, null);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // show the main view<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; uiManager.setView(breakfastView);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; //show bfMainDishView<br />
&nbsp; &nbsp; &nbsp; &nbsp; function showbfMainDishView(){<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; // set main view caption from feed name<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var bfMainDishViewCaption = (feedName == null) ? null : feedName;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bfMainDishView.setCaption(bfMainDishViewCaption);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // set right softkey to &quot;exit&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (window.widget) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; menu.setRightSoftkeyLabel(&quot;&quot;, null);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // show the main view<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; uiManager.setView(bfMainDishView);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; updateFeedTimerFunc();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; //show bf ingredients view<br />
&nbsp; &nbsp; &nbsp; &nbsp; function showbfIngredientsView(){<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // set main view caption from feed name<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var bfIngredientsViewCaption = (feedName2 == null) ? null : feedName2;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bfIngredientsView.setCaption(bfIngredientsViewCaption);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // set right softkey to &quot;exit&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (window.widget) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; menu.setRightSoftkeyLabel(&quot;&quot;, null);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // show the main view<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; uiManager.setView(bfIngredientsViewCaption);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; updateFeedTimerFunc2();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
// Show settings view.<br />
function showSettings() {<br />
&nbsp; &nbsp; // Feed Name<br />
&nbsp; &nbsp; feedNameText.setText(feedName);<br />
&nbsp; &nbsp; &nbsp; &nbsp; feedName2Text.setText(feedName2);<br />
<br />
&nbsp; &nbsp; // URL<br />
&nbsp; &nbsp; feedUrlText.setText(feedURL);<br />
&nbsp; &nbsp; &nbsp; &nbsp; feedUrl2Text.setText(feedUrl2);<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; // frequency<br />
&nbsp; &nbsp; var feedUpdateFrequencyOption = feedUpdateFrequencySelection.getOptionForValue(feedUpdateFrequency);<br />
&nbsp; &nbsp; feedUpdateFrequencySelection.setSelected(feedUpdateFrequencyOption);<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; if (feedURL == null) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; // no valid configuration<br />
&nbsp; &nbsp; &nbsp; &nbsp; // disable cancel button - set right softkey to &quot;exit&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; settingsCancelButton.setEnabled(false);<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (window.widget) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; menu.setRightSoftkeyLabel(&quot;&quot;, null);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; } else {<br />
&nbsp; &nbsp; &nbsp; &nbsp; // we have a valid configuration<br />
&nbsp; &nbsp; &nbsp; &nbsp; // enable cancel button - set right softkey to &quot;cancel&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; settingsCancelButton.setEnabled(true);<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (window.widget) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; menu.setRightSoftkeyLabel(&quot;Cancel&quot;, showMainView);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp;  if (feedURL2 == null) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; // no valid configuration<br />
&nbsp; &nbsp; &nbsp; &nbsp; // disable cancel button - set right softkey to &quot;exit&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; settingsCancelButton.setEnabled(false);<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (window.widget) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; menu.setRightSoftkeyLabel(&quot;&quot;, null);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; } else {<br />
&nbsp; &nbsp; &nbsp; &nbsp; // we have a valid configuration<br />
&nbsp; &nbsp; &nbsp; &nbsp; // enable cancel button - set right softkey to &quot;cancel&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; settingsCancelButton.setEnabled(true);<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (window.widget) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; menu.setRightSoftkeyLabel(&quot;Cancel&quot;, showMainView);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; // show the settings view<br />
&nbsp; &nbsp; uiManager.setView(settingsView);<br />
}<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Displays the About view<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function showAboutView(){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; aboutLabel.setText(&quot;This Widget includes software licensed from Nokia &amp;copy 2008&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; setAboutViewSoftkeys();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; uiManager.setView(aboutView);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Sets the softkeys for about view.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function setAboutViewSoftkeys(){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (window.widget) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // set right softkey to &quot;Ok&quot; (returns to main view)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; menu.setRightSoftkeyLabel(&quot;Ok&quot;, showMainView);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Schedules an immediate feed update.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function updateFeed(){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; feedUpdateTime = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; feedUpdateCommanded = true;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function updateFeed2(){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; feedUpdateTime2 = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; feedUpdateCommanded2 = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; // Timer function for feed updates - called once every second.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function updateFeedTimerFunc(){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var now = new Date().getTime();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // check if a feed update has been scheduled, if it's time to update now,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // and if there's no update currently in progress and if we're in the main view<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ((feedURL != null) &amp;&amp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (feedUpdateTime != -1) &amp;&amp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (now &gt; feedUpdateTime) &amp;&amp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (feedUpdateBroker == null) &amp;&amp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (uiManager.getView() == mainView)) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // show progress dialog if this is a commanded feed update<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (feedUpdateCommanded) {<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; // no auto hiding, wait-type notification, unknown progress<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; uiManager.showNotification(-1, &quot;wait&quot;, &quot;Loading feed...&quot;, -1);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // fetch the feed from the specified URL<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; feedUpdateBroker = new FeedUpdateBroker();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; feedUpdateBroker.fetchFeed(feedURL, feedUpdateCompleted);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (feedUpdateFrequency != -1) {<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; // schedule next update<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; feedUpdateTime = now + feedUpdateFrequency;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else {<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; // feed update frequency is &quot;never&quot;<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; feedUpdateTime = -1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function updateFeedTimerFunc2(){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var now = new Date().getTime();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // check if a feed update has been scheduled, if it's time to update now,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // and if there's no update currently in progress and if we're in the main view<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ((feedURL2 != null) &amp;&amp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (feedUpdateTime != -1) &amp;&amp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (now &gt; feedUpdateTime) &amp;&amp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (feedUpdateBroker2 == null) &amp;&amp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (uiManager.getView() == bfIngredientsView)) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // show progress dialog if this is a commanded feed update<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (feedUpdateCommanded2) {<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; // no auto hiding, wait-type notification, unknown progress<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; uiManager.showNotification(-1, &quot;wait&quot;, &quot;Loading feed...&quot;, -1);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // fetch the feed from the specified URL<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; feedUpdateBroker2 = new FeedUpdateBroker2();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; feedUpdateBroker2.fetchFeed(feedURL2, feedUpdateCompleted2);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (feedUpdateFrequency != -1) {<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; // schedule next update<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; feedUpdateTime = now + feedUpdateFrequency;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else {<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; // feed update frequency is &quot;never&quot;<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; feedUpdateTime = -1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Callback function that gets called when a feed update has completed.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function feedUpdateCompleted(event){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (event.status == &quot;ok&quot;) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // if there aren't any feed items yet, we'll hide the progress dialog<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (feedUpdateCommanded) {<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; uiManager.hideNotification();<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; <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; setFeedItems(event.item);<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; feedItemControls[0].setFocused(true);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function feedUpdateCompleted2(event){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (event.status == &quot;ok&quot;) {<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; // if there aren't any feed items yet, we'll hide the progress dialog<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; if (feedUpdateCommanded2) {<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; &nbsp; &nbsp; &nbsp; &nbsp; uiManager.hideNotification();<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; &nbsp; &nbsp; &nbsp; &nbsp; <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; &nbsp; &nbsp; &nbsp; &nbsp; if (uiManager.getView() == bfIngredientsView) {<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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; setFeedItems2(event.item);<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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; feedItemControls2[0].setFocused(true);<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; &nbsp; &nbsp; &nbsp; &nbsp; }<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; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else {<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; // show error message<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; uiManager.showNotification(3000, &quot;warning&quot;, &quot;Error while updating feed!&lt;br/&gt;(check network settings)&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // null the broker reference to indicate that there's no current<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // update in progress<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; feedUpdateBroker2 = null;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // reset commanded feed update flag<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; feedUpdateCommanded2 = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Removes feed items.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function removeFeedItems(){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // remove all current feed items from the main view<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (var i = 0; i &lt; feedItemControls.length; i++) {<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; bfMainDishView.removeControl(feedItemControls[i]);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // reset feed item control array<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; feedItemControls = [];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Removes feed items.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function removeFeedItems2(){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // remove all current feed items from the main view<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (var i = 0; i &lt; feedItemControls2.length; i++) {<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; bfIngredientsView.removeControl(feedItemControls2[i]);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // reset feed item control array<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; feedItemControls2 = [];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Sets feed items.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function setFeedItems(items){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // start by removing all current feed items<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; removeFeedItems();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // create new feed items and add them to the main view<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // use feed item pool to recycle controls<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (var i = 0; i &lt; items.length; i++) {<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; // get a feed item control from the pool or create one and<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; // place it in the pool if there aren't enough feed item controls<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; var feedItemControl;<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; if (i == feedItemControlPool.length) {<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; &nbsp; &nbsp; &nbsp; &nbsp; feedItemControl = new ContentPanel(null, true);<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; &nbsp; &nbsp; &nbsp; &nbsp; feedItemControlPool.push(feedItemControl);<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; }<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; else {<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; &nbsp; &nbsp; &nbsp; &nbsp; feedItemControl = feedItemControlPool[i];<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; }<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; <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; // initialize feed item control<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; var item = items[i];<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; feedItemControl.setCaption(&quot;&quot;);<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; feedItemControl.setContent(getContentHTMLForFeedItem(item));<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; feedItemControl.setExpanded(false);<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; <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; // add the feed item control to the main view<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; feedItemControls.push(feedItemControl);<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; bfMainDishView.addControl(feedItemControl);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function setFeedItems2(items){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // start by removing all current feed items<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; removeFeedItems2();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // create new feed items and add them to the main view<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // use feed item pool to recycle controls<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (var i = 0; i &lt; items.length; i++) {<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; // get a feed item control from the pool or create one and<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; // place it in the pool if there aren't enough feed item controls<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; var feedItemControl2;<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; if (i == feedItemControlPool2.length) {<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; &nbsp; &nbsp; &nbsp; &nbsp; feedItemControl2 = new ContentPanel(null, true);<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; &nbsp; &nbsp; &nbsp; &nbsp; feedItemControlPool2.push(feedItemControl2);<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; }<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; else {<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; &nbsp; &nbsp; &nbsp; &nbsp; feedItemControl2 = feedItemControlPool2[i];<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; }<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; <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; // initialize feed item control<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; var item2 = item2s[i];<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; feedItemControl2.setCaption(&quot;&quot;);<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; feedItemControl2.setContent(getContentHTML2ForFeedItem(item));<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; feedItemControl2.setExpanded(false);<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; <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; // add the feed item control to the main view<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; feedItemControls2.push(feedItemControl2);<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; bfIngredientsView.addControl(feedItemControl2);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Returns the content HTML for a feed item.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function getContentHTMLForFeedItem(item){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var buf = &quot;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // item date<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (item.name != null) {<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; buf += &quot;&lt;div&gt;&quot; + &quot;Name:&quot; + item.name + &quot;&lt;/div&gt;&quot;;<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; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /*if (item.ingredients != null){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  buf += &quot;&lt;div&gt;&quot; + &quot;Ingredients:&nbsp; &quot; + item.ingredients + &quot;&lt;/div&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if(item.grocerylist != null){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  buf += &quot;&lt;div&gt;&quot; + &quot;Grocery List:&nbsp; &quot; + item.grocerylist +&quot;&lt;/div&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if(item.instructions != null){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  buf += &quot;&lt;div&gt;&quot; + &quot;Instructions:&nbsp; &quot; + item.instructions +&quot;&lt;/div&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if(item.calories != null){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  buf += &quot;&lt;div&gt;&quot; + &quot;Total Calories:&nbsp; &quot; + item.calories +&quot;&lt;/div&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if(item.cholesterol != null){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  buf += &quot;&lt;div&gt;&quot; + &quot;Total Cholesterol::&nbsp; &quot; + item.cholesterol +&quot;&lt;/div&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if(item.sodium != null){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  buf += &quot;&lt;div&gt;&quot; + &quot;Total Sodium:&nbsp; &quot; + item.sodium +&quot;&lt;/div&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if(item.carbohydrate != null){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  buf += &quot;&lt;div&gt;&quot; + &quot;Total Carbohydrate:&nbsp; &quot; + item.carbohydrate +&quot;&lt;/div&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if(item.protein != null){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  buf += &quot;&lt;div&gt;&quot; + &quot;Total Protein:&nbsp; &quot; + item.protein +&quot;&lt;/div&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if(item.fat != null){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  buf += &quot;&lt;div&gt;&quot; + &quot;Total Fat:&nbsp; &quot; + item.fat +&quot;&lt;/div&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  */<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return buf;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function getContentHTML2ForFeedItem(item2){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var buf = &quot;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // item date<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (item2.ingredients != null) {<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; buf += &quot;&lt;div&gt;&quot; + &quot;Ingredients:&nbsp; &quot; + item2.ingredients + &quot;&lt;/div&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /*if(item.grocerylist != null){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  buf += &quot;&lt;div&gt;&quot; + &quot;Grocery List:&nbsp; &quot; + item.grocerylist +&quot;&lt;/div&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if(item.instructions != null){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  buf += &quot;&lt;div&gt;&quot; + &quot;Instructions:&nbsp; &quot; + item.instructions +&quot;&lt;/div&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if(item.calories != null){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  buf += &quot;&lt;div&gt;&quot; + &quot;Total Calories:&nbsp; &quot; + item.calories +&quot;&lt;/div&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if(item.cholesterol != null){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  buf += &quot;&lt;div&gt;&quot; + &quot;Total Cholesterol::&nbsp; &quot; + item.cholesterol +&quot;&lt;/div&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if(item.sodium != null){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  buf += &quot;&lt;div&gt;&quot; + &quot;Total Sodium:&nbsp; &quot; + item.sodium +&quot;&lt;/div&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if(item.carbohydrate != null){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  buf += &quot;&lt;div&gt;&quot; + &quot;Total Carbohydrate:&nbsp; &quot; + item.carbohydrate +&quot;&lt;/div&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if(item.protein != null){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  buf += &quot;&lt;div&gt;&quot; + &quot;Total Protein:&nbsp; &quot; + item.protein +&quot;&lt;/div&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if(item.fat != null){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  buf += &quot;&lt;div&gt;&quot; + &quot;Total Fat:&nbsp; &quot; + item.fat +&quot;&lt;/div&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  */<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return buf;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Opens a URL.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function openURL(url){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (window.widget) {<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; // in WRT<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; widget.openURL(url);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else {<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; // outside WRT<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; window.open(url, &quot;NewWindow&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</pre><br />
<br />
is there any error in my codes. because i keep getting error stating that the feedURL2 is not defined and is pointing error to the WRTKit uiManager.js.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>leesyy</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235815.html</guid>
		</item>
		<item>
			<title>Function works and then says not defined</title>
			<link>http://www.daniweb.com/forums/thread235686.html</link>
			<pubDate>Tue, 03 Nov 2009 15:43:55 GMT</pubDate>
			<description>Hi, 
I have some code to dynamically retrieve one of three AJAX files and insert it into a DIV 
 
The Javascript is 
 
function createajax() { 
	var Ajax; 
	try{ 
		Ajax = new XMLHttpRequest(); 
	} catch (e){</description>
			<content:encoded><![CDATA[<div>Hi,<br />
I have some code to dynamically retrieve one of three AJAX files and insert it into a DIV<br />
<br />
The Javascript is<br />
 <pre style="margin:20px; line-height:13px">function createajax() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; var Ajax;<br />
&nbsp; &nbsp; &nbsp; &nbsp; try{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Ajax = new XMLHttpRequest();<br />
&nbsp; &nbsp; &nbsp; &nbsp; } catch (e){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; try{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Ajax = new ActiveXObject(&quot;Msxml2.XMLHTTP&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } catch (e) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; try{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Ajax = new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } catch (e){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;Error!!!&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; return Ajax;<br />
}<br />
<br />
function basicAjaxSwitch(File, Recipient, Animate) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; if ( Animate == true ) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Animation(document.getElementById(Recipient)).duration(100).from('opacity', 1).to('opacity', 0).go();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; basicAjaxSwitch = createajax();<br />
&nbsp; &nbsp; &nbsp; &nbsp; basicAjaxSwitch.onreadystatechange = function(){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(basicAjaxSwitch.readyState == 4){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ( Animate == true ) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Animation(document.getElementById(Recipient)).duration(100).checkpoint().duration(100).from('opacity', 0).to('opacity', 1).go();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; setTimeout('document.getElementById(&quot;'+Recipient+'&quot;).innerHTML = basicAjaxSwitch.responseText;', 100);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } else {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.getElementById(Recipient).innerHTML = basicAjaxSwitch.responseText;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; basicAjaxSwitch.open(&quot;GET&quot;, &quot;/ajax/&quot;+File, true);<br />
&nbsp; &nbsp; &nbsp; &nbsp; basicAjaxSwitch.send(null);<br />
}<br />
<br />
function changesidebarinfo(changeto) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; if ( changeto == 'login' ) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Animation(document.getElementById('main_layout_accountlinks_background')).to('left', '0px').duration(100).go();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Animation(document.getElementById('main_layout_accountlinks_login')).duration(100).to('color', '#FFF').go();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Animation(document.getElementById('main_layout_accountlinks_signup')).duration(100).to('color', '#000').go();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Animation(document.getElementById('main_layout_accountlinks_about')).duration(100).to('color', '#000').go();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; basicAjaxSwitch('contentinfo/login.php', 'main_layout_rsbinfo_container', true);<br />
&nbsp; &nbsp; &nbsp; &nbsp; } else if ( changeto == 'join' ) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Animation(document.getElementById('main_layout_accountlinks_background')).to('left', '50px').duration(100).go();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Animation(document.getElementById('main_layout_accountlinks_login')).duration(100).to('color', '#000').go();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Animation(document.getElementById('main_layout_accountlinks_signup')).duration(100).to('color', '#FFF').go();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Animation(document.getElementById('main_layout_accountlinks_about')).duration(100).to('color', '#000').go();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; basicAjaxSwitch('contentinfo/join.php', 'main_layout_rsbinfo_container', true);<br />
&nbsp; &nbsp; &nbsp; &nbsp; } else if ( changeto == 'about' ) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Animation(document.getElementById('main_layout_accountlinks_background')).to('left', '100px').duration(100).go();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Animation(document.getElementById('main_layout_accountlinks_login')).duration(100).to('color', '#000').go();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Animation(document.getElementById('main_layout_accountlinks_signup')).duration(100).to('color', '#000').go();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Animation(document.getElementById('main_layout_accountlinks_about')).duration(100).to('color', '#FFF').go();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; basicAjaxSwitch('contentinfo/about.php', 'main_layout_rsbinfo_container', true);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
}</pre><br />
And the HTML that triggers the actions is<br />
 <pre style="margin:20px; line-height:13px">&lt;div id=&quot;main_layout_accountlinks&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&quot;main_layout_accountlinks_background&quot;&gt;&amp;nbsp;&lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&quot;main_layout_accountlinks_login&quot; onclick=&quot;changesidebarinfo('login');&quot;&gt;Log In&lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&quot;main_layout_accountlinks_signup&quot; onclick=&quot;changesidebarinfo('join');&quot;&gt;Join&lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&quot;main_layout_accountlinks_about&quot; onclick=&quot;changesidebarinfo('about');&quot;&gt;About&lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;</pre><br />
When I click one of the 3 buttons (doesn't matter which) the result is exactly as intended. Then when I click another (or the same) button, nothing happens and Firebug gives the error<br />
 <pre style="margin:20px; line-height:13px">basicAjaxSwitch is not a function<br />
changesidebarinfo(&quot;login&quot;)site.js (line 61)<br />
function onclick(event) { changesidebarinfo(&quot;login&quot;); }(click clientX=816, clientY=41)2 (line 2)<br />
&#91;Break on this error&#93; basicAjaxSwitch('contentinfo/login.php...'main_layout_rsbinfo_container', true);\n</pre><br />
Regards,<br />
Sam Rudge</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>samarudge</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235686.html</guid>
		</item>
		<item>
			<title>Dynamic Ajax Content and Jquery</title>
			<link>http://www.daniweb.com/forums/thread235579.html</link>
			<pubDate>Tue, 03 Nov 2009 06:34:51 GMT</pubDate>
			<description><![CDATA[Hi,  
I'm new on ajax/jquery. I will try to explain what is my problem. 
 
I'm building a page in which have three div separating (top, left, right) 
I'm using dynamic ajax content in which on the left side have some href which change the right side of the page like this...]]></description>
			<content:encoded><![CDATA[<div>Hi, <br />
I'm new on ajax/jquery. I will try to explain what is my problem.<br />
<br />
I'm building a page in which have three div separating (top, left, right)<br />
I'm using dynamic ajax content in which on the left side have some href which change the right side of the page like this <a rel="nofollow" class="t" href="http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm" target="_blank">http://www.dynamicdrive.com/dynamici...jaxcontent.htm</a><br />
Instead of displaying car it should display a form with input text with a datepicker(jquery). However, the datepicker jquery is not loading on the page.<br />
<a rel="nofollow" class="t" href="http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerDefaultToday.html" target="_blank">http://www.kelvinluck.com/assets/jqu...aultToday.html</a><br />
<br />
Please advise me of what I should do. <br />
Thanks, in advance.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>yhoo</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235579.html</guid>
		</item>
		<item>
			<title>How to Password protect files / sections on web page ?</title>
			<link>http://www.daniweb.com/forums/thread235493.html</link>
			<pubDate>Mon, 02 Nov 2009 22:34:36 GMT</pubDate>
			<description><![CDATA[Hi, 
 
I'm sorry in advance if this is the wrong section. 
 
I wanted to know is it possible to password protect some files in web page ?  
For example, If someone wants to download file, browsers requests password(one for all visitors), idea is that some files and/or sections of web site is...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I'm sorry in advance if this is the wrong section.<br />
<br />
I wanted to know is it possible to password protect some files in web page ? <br />
For example, If someone wants to download file, browsers requests password(one for all visitors), idea is that some files and/or sections of web site is accessible to those who know the password..<br />
<br />
Any advice , help much appreciated ! :)</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>wonderland</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235493.html</guid>
		</item>
		<item>
			<title>New web design need help connecting sql database to display content in a form mask</title>
			<link>http://www.daniweb.com/forums/thread235404.html</link>
			<pubDate>Mon, 02 Nov 2009 16:31:31 GMT</pubDate>
			<description>Hi All, 
 
If anyone can help me take my sql database (a single table) that information and display it in a form on my web page.  Sometimes the Sql request will be multiple lines of the table.  I have my database created am completely lost in the form view or how to connect.  Is it even possible to...</description>
			<content:encoded><![CDATA[<div>Hi All,<br />
<br />
If anyone can help me take my sql database (a single table) that information and display it in a form on my web page.  Sometimes the Sql request will be multiple lines of the table.  I have my database created am completely lost in the form view or how to connect.  Is it even possible to do this.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>NicoleB</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235404.html</guid>
		</item>
		<item>
			<title>HELP! SOS</title>
			<link>http://www.daniweb.com/forums/thread235400.html</link>
			<pubDate>Mon, 02 Nov 2009 15:45:05 GMT</pubDate>
			<description>my instructor is gonna give me a failing grade if i did not make 10 java scripts using all the statement and the three control function. please help me asap even if it is a simple statement i just need to show her all</description>
			<content:encoded><![CDATA[<div>my instructor is gonna give me a failing grade if i did not make 10 java scripts using all the statement and the three control function. please help me asap even if it is a simple statement i just need to show her all</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>haunt_me_gently</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235400.html</guid>
		</item>
		<item>
			<title>responseText format??</title>
			<link>http://www.daniweb.com/forums/thread235386.html</link>
			<pubDate>Mon, 02 Nov 2009 15:17:32 GMT</pubDate>
			<description><![CDATA[Hey Guys, 
I am using JSP with AJAX. After a certain JSP script is processed the output is sent to the responseText. Now, I want to check what output responseText  consists so that i can perform further processing. For eg, I want responseText to contain"yes" or "no" and depending on what it...]]></description>
			<content:encoded><![CDATA[<div>Hey Guys,<br />
I am using JSP with AJAX. After a certain JSP script is processed the output is sent to the responseText. Now, I want to check what output responseText  consists so that i can perform further processing. For eg, I want responseText to contain&quot;yes&quot; or &quot;no&quot; and depending on what it contains i want to execute client side script. I hope i have nt confuse you.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>anuj576</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235386.html</guid>
		</item>
		<item>
			<title>Textbox validate</title>
			<link>http://www.daniweb.com/forums/thread235361.html</link>
			<pubDate>Mon, 02 Nov 2009 14:10:51 GMT</pubDate>
			<description><![CDATA[Hi everyone, 
Firstly,sorry about my bad english.i hope telling my problem clearly:) anyway i want to tell about my project.it s about survey system..I am creatin g dynamic questions and question's choices(radiobuttons or checkboxes) from database when runtime..after users answer the question,press...]]></description>
			<content:encoded><![CDATA[<div>Hi everyone,<br />
Firstly,sorry about my bad english.i hope telling my problem clearly:) anyway i want to tell about my project.it s about survey system..I am creatin g dynamic questions and question's choices(radiobuttons or checkboxes) from database when runtime..after users answer the question,press next button to pass the next questions<br />
<br />
For examle<br />
1) Question definition<br />
a)choice definition<br />
b)choice definition<br />
c)....<br />
<br />
Users have to choosee any choices..if not,my system is giving alert,Actually my problem is about checkboxes..I created hidden textboxes,if question choices' type is checkbox..so the last choice definition is name &quot;Other&quot;..if user checks the other choice,the hidden textbox is going to be visible..it is all okay until here..I want to give a error alert if user checks the other choice and doesnt fill the textbox when press next question..I dont validate this..How can i do it..Anyone can help me?<br />
<br />
Thanks for all...</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>ofoman</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235361.html</guid>
		</item>
		<item>
			<title>Vertically Expanding a DIV inside a Table TD</title>
			<link>http://www.daniweb.com/forums/thread235356.html</link>
			<pubDate>Mon, 02 Nov 2009 13:47:51 GMT</pubDate>
			<description><![CDATA[I looked around for a solution on the site but I couldn't find exactly what I was looking for so... 
 
On my website I have a Table with 2 columns, each column has a DIV in it. How can I make it so that each of the DIVs take up the entire space in the Table TD? I can post an example or link to the...]]></description>
			<content:encoded><![CDATA[<div>I looked around for a solution on the site but I couldn't find exactly what I was looking for so...<br />
<br />
On my website I have a Table with 2 columns, each column has a DIV in it. How can I make it so that each of the DIVs take up the entire space in the Table TD? I can post an example or link to the site itself...if thats allowed.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>UzuNarU</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235356.html</guid>
		</item>
		<item>
			<title>Google Maps Directions in infowindows</title>
			<link>http://www.daniweb.com/forums/thread235278.html</link>
			<pubDate>Mon, 02 Nov 2009 07:52:32 GMT</pubDate>
			<description>Take a look at the link below. Click on one of my markers in the map. Inside the info windows I would like to have “Directions: To here - From here” feature in it. 
 
Thanks in advance for your assistance. 
 
http://www.crucialdesign.net/diningguide/test.html</description>
			<content:encoded><![CDATA[<div>Take a look at the link below. Click on one of my markers in the map. Inside the info windows I would like to have “Directions: To here - From here” feature in it.<br />
<br />
Thanks in advance for your assistance.<br />
<br />
<a rel="nofollow" class="t" href="http://www.crucialdesign.net/diningguide/test.html" target="_blank">http://www.crucialdesign.net/diningguide/test.html</a></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>ib4dogz</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235278.html</guid>
		</item>
		<item>
			<title>suggest in ajax..</title>
			<link>http://www.daniweb.com/forums/thread235270.html</link>
			<pubDate>Mon, 02 Nov 2009 07:31:52 GMT</pubDate>
			<description>i hav this code for autosuggest.. 
it retrieves the desired values from the datbase.. 
and produces a list..like in google.. 
 
however the values in the list cannot be selected using the arrow keys.. 
could anybody familiar with google suggest help me out with this.. 
 
am using this for an...</description>
			<content:encoded><![CDATA[<div>i hav this code for autosuggest..<br />
it retrieves the desired values from the datbase..<br />
and produces a list..like in google..<br />
<br />
however the values in the list cannot be selected using the arrow keys..<br />
could anybody familiar with google suggest help me out with this..<br />
<br />
am using this for an textbox in html file..!!<br />
<br />
thanks in advance.. <pre style="margin:20px; line-height:13px">/*livesearch.js*/<br />
var xmlhttp;<br />
<br />
function showResult(str)<br />
{<br />
if (str.length==0)<br />
&nbsp; {<br />
&nbsp; document.getElementById(&quot;livesearch&quot;).innerHTML=&quot;&quot;;<br />
&nbsp; document.getElementById(&quot;livesearch&quot;).style.border=&quot;0px&quot;;<br />
&nbsp; return;<br />
&nbsp; }<br />
xmlhttp=GetXmlHttpObject()<br />
if (xmlhttp==null)<br />
&nbsp; {<br />
&nbsp; alert (&quot;Your browser does not support XML HTTP Request&quot;);<br />
&nbsp; return;<br />
&nbsp; }<br />
var url=&quot;livesearch.php&quot;;<br />
url=url+&quot;?q=&quot;+str;<br />
url=url+&quot;&amp;sid=&quot;+Math.random();<br />
xmlhttp.onreadystatechange=stateChanged ;<br />
xmlhttp.open(&quot;GET&quot;,url,true);<br />
xmlhttp.send(null);<br />
}<br />
function stateChanged()<br />
{<br />
if (xmlhttp.readyState==4)<br />
&nbsp; {<br />
&nbsp; document.getElementById(&quot;livesearch&quot;).innerHTML=xmlhttp.responseText;<br />
&nbsp; document.getElementById(&quot;livesearch&quot;).style.border=&quot;1px solid #A5ACB2&quot;;<br />
&nbsp;// document.getElementById(&quot;livesearch&quot;).style.cursor=&quot;default&quot;;<br />
&nbsp; }<br />
}<br />
<br />
function GetXmlHttpObject()<br />
{<br />
if (window.XMLHttpRequest)<br />
&nbsp; {<br />
&nbsp; // code for IE7+, Firefox, Chrome, Opera, Safari<br />
&nbsp; return new XMLHttpRequest();<br />
&nbsp; }<br />
if (window.ActiveXObject)<br />
&nbsp; {<br />
&nbsp; // code for IE6, IE5<br />
&nbsp; return new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);<br />
&nbsp; }<br />
return null;<br />
}</pre><br />
 <pre style="margin:20px; line-height:13px">/*livesearch.php*/<br />
&lt;?php<br />
<br />
$strSearchVal = $_GET['q'];<br />
<br />
if (strlen($strSearchVal) &lt; 1) {<br />
&nbsp;return false;<br />
}<br />
<br />
// Opens a connection to a MySQL server<br />
$connection=mysql_connect (&quot;localhost&quot;, &quot;root&quot;, &quot;&quot;);<br />
if (!$connection) {<br />
&nbsp; die('Not connected : ' . mysql_error());<br />
}<br />
// Sanitize User Input for Security<br />
$strSearchVal = mysql_real_escape_string($strSearchVal);<br />
<br />
<br />
// Set the active MySQL database<br />
$db_selected = mysql_select_db(&quot;hospitals_info&quot;, $connection);<br />
if (!$db_selected) {<br />
&nbsp; die ('Can\'t use db : ' . mysql_error());<br />
}<br />
<br />
$strSQL = &quot;SELECT DISTINCT area FROM hospital WHERE area like '$strSearchVal%'&quot;;<br />
$result = mysql_query($strSQL)<br />
or<br />
&nbsp;die(&quot;Query to get blah failed with error: &quot;.mysql_error());<br />
<br />
<br />
while ($a=mysql_fetch_array($result)) {<br />
&nbsp;echo&nbsp; $a['area'].&quot;&lt;br /&gt;&quot;;<br />
}<br />
<br />
<br />
<br />
?&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>jyotidagia</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235270.html</guid>
		</item>
		<item>
			<title>need help with making a onine game web site</title>
			<link>http://www.daniweb.com/forums/thread235127.html</link>
			<pubDate>Sun, 01 Nov 2009 17:04:48 GMT</pubDate>
			<description>Hi 
I want to make a online game web site . i want to klnow , what do i need for now ? should i install any script ?  
 
please give me some information about it 
 
thanks</description>
			<content:encoded><![CDATA[<div>Hi<br />
I want to make a online game web site . i want to klnow , what do i need for now ? should i install any script ? <br />
<br />
please give me some information about it<br />
<br />
thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>hno</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235127.html</guid>
		</item>
		<item>
			<title>Tab Style Links in Header</title>
			<link>http://www.daniweb.com/forums/thread235101.html</link>
			<pubDate>Sun, 01 Nov 2009 14:07:11 GMT</pubDate>
			<description><![CDATA[Hi everybody I am building a website but having some trouble figuring out the right way to achieve my goal. 
 
Here is what I have currently: 
 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>Hi everybody I am building a website but having some trouble figuring out the right way to achieve my goal.<br />
<br />
Here is what I have currently:<br />
<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;div id=&quot;Header&quot;&gt;&lt;div id=&quot;Banner&quot;&gt;Business Name*&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;a href=&quot;#&quot;&gt;&lt;span class=&quot;style3&quot;&gt;&lt;strong&gt;Home&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;a href=&quot;#&quot;&gt;&lt;span class=&quot;style4&quot;&gt;&lt;strong&gt;Portfolio&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;a href=&quot;#&quot;&gt;&lt;span class=&quot;style5&quot;&gt;&lt;strong&gt;About Us&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;</pre><br />
<br />
Each of the styles have margins set to position them over the Tab markings on the Header Background which is set by CSS.<br />
<br />
Now my problem is because I set margins to position the Links over the Tabs if I turn Underline on hover on for link action it draws a line the whole way across the header, and also the links active in this random space before the actual text is moused over.<br />
<br />
Can someone help me, if I can get approval I'll post a link to the site so you can see what I am talking about.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>UzuNarU</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235101.html</guid>
		</item>
		<item>
			<title>bookmarklet problem</title>
			<link>http://www.daniweb.com/forums/thread235097.html</link>
			<pubDate>Sun, 01 Nov 2009 13:47:37 GMT</pubDate>
			<description><![CDATA[Hi, I am trying to make a twitter bookmarklet that will tweet the current page, I currently have this code: 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox"...]]></description>
			<content:encoded><![CDATA[<div>Hi, I am trying to make a twitter bookmarklet that will tweet the current page, I currently have this code:<br />
 <pre style="margin:20px; line-height:13px">javascript<b></b>:window.open('http://twitter.com/?status='+self.location)</pre>but when I try it, it changes the page its tweeting to just show [object Window]<br />
<br />
how can I fix this?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>leegeorg07</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235097.html</guid>
		</item>
		<item>
			<title>Need Help</title>
			<link>http://www.daniweb.com/forums/thread235094.html</link>
			<pubDate>Sun, 01 Nov 2009 13:21:39 GMT</pubDate>
			<description>Hey Guys, 
I am using Ajax with JSP.What I am trying to do is when the user enters a name and clicks on the button it goes to a jsp page. 
On the jsp page it is checked whether the name is present in the database or not. If it is present then the table is shown with the name and the corresponding...</description>
			<content:encoded><![CDATA[<div>Hey Guys,<br />
I am using Ajax with JSP.What I am trying to do is when the user enters a name and clicks on the button it goes to a jsp page.<br />
On the jsp page it is checked whether the name is present in the database or not. If it is present then the table is shown with the name and the corresponding password.<br />
Till this it is working fine but when the name is not found in the database i want to redirect to another page. I don't know how to do this.<br />
Please give some code.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>anuj576</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235094.html</guid>
		</item>
		<item>
			<title>Redirect to page??</title>
			<link>http://www.daniweb.com/forums/thread235059.html</link>
			<pubDate>Sun, 01 Nov 2009 11:16:29 GMT</pubDate>
			<description>Hey Guys, 
I want to redirect a page to another page in JSP after a certain validation has been done using AJAX. If the validation is done it should redirect the user to another page but if validation is not done then it should remain on the same page.  
Please tell me how to do this.</description>
			<content:encoded><![CDATA[<div>Hey Guys,<br />
I want to redirect a page to another page in JSP after a certain validation has been done using AJAX. If the validation is done it should redirect the user to another page but if validation is not done then it should remain on the same page. <br />
Please tell me how to do this.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>anuj576</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235059.html</guid>
		</item>
	</channel>
</rss>
