<?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, 07 Nov 2009 23:27:49 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>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>
		<item>
			<title>What Do I need to learn AJAX?</title>
			<link>http://www.daniweb.com/forums/thread235056.html</link>
			<pubDate>Sun, 01 Nov 2009 11:11:17 GMT</pubDate>
			<description><![CDATA[Hello all, 
I have basics for JavaScript (syntax, controls, loops, object etc) and also basics of XML. What else should I know to learn AJAX? What does Ajax 'animal' look like? 
 
Thanks guys]]></description>
			<content:encoded><![CDATA[<div>Hello all,<br />
I have basics for JavaScript (syntax, controls, loops, object etc) and also basics of XML. What else should I know to learn AJAX? What does Ajax 'animal' look like?<br />
<br />
Thanks guys</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>evstevemd</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235056.html</guid>
		</item>
		<item>
			<title><![CDATA[Lightbox with Java/jQery tips&trics]]></title>
			<link>http://www.daniweb.com/forums/thread235020.html</link>
			<pubDate>Sun, 01 Nov 2009 04:39:29 GMT</pubDate>
			<description><![CDATA[Hy again, 
I have a quick question that I can't figurite out so I'm just gonna show it to you. 
I'm not shore if it is Lightbox sample, but it's Java and jQuery comb. 
 
1st. Link http://www.cmsmadesimple.org/ 
2nd. Link http://www.omniture.com/en/ 
 
At the 1st link, on the Left side under the...]]></description>
			<content:encoded><![CDATA[<div>Hy again,<br />
I have a quick question that I can't figurite out so I'm just gonna show it to you.<br />
I'm not shore if it is Lightbox sample, but it's Java and jQuery comb.<br />
<br />
1st. Link <a rel="nofollow" class="t" href="http://www.cmsmadesimple.org/" target="_blank">http://www.cmsmadesimple.org/</a><br />
2nd. Link <a rel="nofollow" class="t" href="http://www.omniture.com/en/" target="_blank">http://www.omniture.com/en/</a><br />
<br />
At the 1st link, on the Left side under the header, there is a 4 horizontal tabs that I realy realy like them, reason is coz its edge-rounded with gradient background, I never finde edge-rounded trick like that. Next more complex is 2nd link, in whole size of a footer webpage. This one is more interesting coz it's vertical 3sliced tab and horizontal 3...tabs.<br />
<br />
Plase if you can direct me where tro look and the name of technique, I would be very happy. Anyhow idf you do-not know of this technique, it's a goot time to satisfied our costumers. Thank you!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>vladacmba</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235020.html</guid>
		</item>
		<item>
			<title>change html table td value without refreshing</title>
			<link>http://www.daniweb.com/forums/thread234865.html</link>
			<pubDate>Sat, 31 Oct 2009 09:45:21 GMT</pubDate>
			<description><![CDATA[Hi all,suppose i got two rows like this picture 
 
http://i575.photobucket.com/albums/ss197/yonghan79/ask-1.jpg 
 
I'm trying to change the modified column value to current datetime without refreshing the page when i click the update button..The first row worked,the second doesn't work..Here is my...]]></description>
			<content:encoded><![CDATA[<div>Hi all,suppose i got two rows like this picture<br />
<br />
<a rel="nofollow" class="t" href="http://i575.photobucket.com/albums/ss197/yonghan79/ask-1.jpg" target="_blank">http://i575.photobucket.com/albums/s...an79/ask-1.jpg</a><br />
<br />
I'm trying to change the modified column value to current datetime without refreshing the page when i click the update button..The first row worked,the second doesn't work..Here is my codes<br />
<br />
views/order_home<br />
 <pre style="margin:20px; line-height:13px">&lt;script type=&quot;text/javascript&quot; src=&quot;&lt;?php echo base_url(); ?&gt;js/jquery.js&quot;&gt;&lt;/script&gt;<br />
&lt;script type=&quot;text/javascript&quot; src=&quot;&lt;?php echo base_url(); ?&gt;js/jquery.form.js&quot;&gt;&lt;/script&gt;<br />
<br />
&lt;script type=&quot;text/javascript&quot;&gt; <br />
// wait for the DOM to be loaded <br />
$(document).ready(function() <br />
{ <br />
$(&quot;#msg&quot;).hide();<br />
&nbsp; &nbsp; &nbsp; &nbsp; $('#myform').ajaxForm(function()<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var no_id=$('#no_id').val();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $.post(&quot;getOrder/&quot;, { 'id' : no_id },<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function(data){<br />
&nbsp; &nbsp; &nbsp; &nbsp; $('#modif').html(data.modified);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }, &quot;json&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //nampilin di div message string yg ada di dalam html()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(&quot;#msg&quot;).html(&quot;Berhasil update order&quot;).fadeIn(1500);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(&quot;#msg&quot;).fadeOut(1500);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; });<br />
&nbsp; &nbsp; &nbsp; &nbsp; }); <br />
&lt;/script&gt; &lt;h1&gt;&lt;?php echo $title;?&gt;&lt;/h1&gt;<br />
&lt;?php<br />
if ($this-&gt;session-&gt;flashdata('message')){<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;div class='message' name='msg' id='msg'&gt;&quot;.$this-&gt;session-&gt;flashdata('message').&quot;&lt;/div&gt;&quot;;<br />
}<br />
echo &quot;&lt;div name='msg' class ='msg' id='msg'&gt;&lt;/div&gt;&quot;;<br />
<br />
echo &quot;&lt;table border='1' cellspacing='0' cellpadding='3' width='100%' id='order_home' name='order_home'&gt;\n&quot;;<br />
echo &quot;&lt;tr valign='top'&gt;\n&quot;;<br />
echo &quot;&lt;th&gt;No Order&lt;/th&gt;\n&lt;th&gt;No Cust&lt;/th&gt;&lt;th&gt;Tgl Pesan&lt;/th&gt;&lt;th&gt;Modified&lt;/th&gt;&lt;th&gt;Status&lt;/th&gt;&lt;th&gt;Update&lt;/th&gt;&lt;th&gt;id&lt;/th&gt;&lt;th&gt;Actions&lt;/th&gt;\n&quot;;<br />
echo &quot;&lt;/tr&gt;\n&quot;;<br />
if (count($order)){<br />
&nbsp; &nbsp; &nbsp; &nbsp; foreach ($order as $key =&gt; $list){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;tr valign='top'&gt;\n&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;td&gt;&quot;.anchor(&quot;admin/order/detail/&quot;.$list['no_order'],$list['no_order']).&quot;&lt;/td&gt;\n&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;td&gt;&quot;.$list['custid'].&quot;&lt;/td&gt;\n&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $datetime = strtotime($list['tgl_pesan']);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $orderdate = date(&quot;d-m-y H:i &quot;, $datetime);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;td&gt;&quot;.$orderdate.&quot;&lt;/td&gt;\n&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $modifieddate = strtotime($list['modified']);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $modified = date(&quot;d-m-y H:i &quot;, $modifieddate);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;td id='modif' name='modif'&gt;&quot;.$modified.&quot;&lt;/td&gt;\n&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $attributes = array('id' =&gt; 'myform');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo form_open('admin/order/edit',$attributes);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;td align='center'&gt;&quot;.form_dropdown('status',$status,$list['status']).&quot;&lt;/td&gt;\n&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $btn = array('id'=&gt;'update','name'=&gt;'update','value'=&gt;'Update'); <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $data = array('name'=&gt;'notif','id'=&gt;'notif');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;td align='center'&gt;&quot;.form_checkbox($data).&quot;&lt;label for='update'&gt;Notifikasi cust&lt;/label&gt;&quot;.form_submit($btn).&quot;&lt;/td&gt;\n&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  echo '&lt;input type=&quot;hidden&quot; id=&quot;no_id&quot; name=&quot;no_id&quot; value=&quot;'.$list['id'].'&quot; /&gt;';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo form_close();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;td align='center'&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo anchor(&quot;admin/order/edit/&quot;.$list['no_order'],img(base_url().'/images/edit.jpg'));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot; | &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo anchor(&quot;admin/order/delete/&quot;.$list['no_order'],img(base_url().'/images/delete.jpg'));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;/td&gt;\n&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;/tr&gt;\n&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
}<br />
echo &quot;&lt;/table&gt;&quot;;<br />
?&gt;</pre><br />
controller/order<br />
 <pre style="margin:20px; line-height:13px">function edit($no=0)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($this-&gt;input-&gt;post('no_id'))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (isset($_REQUEST['notif']))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;input-&gt;post('status_order');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $result=$this-&gt;MOrder-&gt;updateOrder();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;email-&gt;from('admin@7com.cphoster.com','Admin');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;email-&gt;to('yonghan79@gmail.com');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;email-&gt;subject('Testing email class');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;email-&gt;message('Status order '.$status);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;email-&gt;send();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //return $result;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;session-&gt;set_flashdata('message','Berhasil update order');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; redirect('admin/order/index','refresh');<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; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;MOrder-&gt;updateOrder();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;session-&gt;set_flashdata('message','Berhasil update order');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; redirect('admin/order/index','refresh');<br />
&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; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //$id = $this-&gt;uri-&gt;segment(4);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $data['title'] = &quot;Edit Order&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $data['main'] = 'admin/order_edit';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $data['order'] = $this-&gt;MOrder-&gt;getOrder($no);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $data['status']=$this-&gt;MOrder-&gt;getStatus();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (!count($data['order'])){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; redirect('admin/order/index','refresh');<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; $this-&gt;load-&gt;vars($data);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;load-&gt;view('dashboard');<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; //buat ambil data dari db menggunakan jquery n json<br />
&nbsp; &nbsp; &nbsp; &nbsp; function getOrder()<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; $no=trim($this-&gt;input-&gt;post('id'));<br />
&nbsp; &nbsp; &nbsp; &nbsp; $hasil=$this-&gt;MOrder-&gt;getOrder($no);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $datetime = strtotime($hasil['modified']);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $orderdate = date(&quot;d-m-y H:i &quot;, $datetime);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $array=array('modified'=&gt;$orderdate);<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo json_encode($array);&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; }</pre><br />
Are there anything wrong with my codes?What should i do?Thanks a lot...</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>yonghan</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234865.html</guid>
		</item>
		<item>
			<title>Preview Pic on page Script</title>
			<link>http://www.daniweb.com/forums/thread234811.html</link>
			<pubDate>Sat, 31 Oct 2009 04:19:33 GMT</pubDate>
			<description><![CDATA[Just to say hello again and to ask if someone knows what is the name of that Script at this site:  
 
http://www.infoway.us/products/index.php#Desktop%20wallpaper 
 
You'll see on rollover like in a eBay can show you image before you search the gallery. 
 
I would ask if anyone can give me deeper...]]></description>
			<content:encoded><![CDATA[<div>Just to say hello again and to ask if someone knows what is the name of that Script at this site: <br />
<br />
<a rel="nofollow" class="t" href="http://www.infoway.us/products/index.php#Desktop%20wallpaper" target="_blank">http://www.infoway.us/products/index...op%20wallpaper</a><br />
<br />
You'll see on rollover like in a eBay can show you image before you search the gallery.<br />
<br />
I would ask if anyone can give me deeper explan... but I respect you privacy and DaniWeb Policy.<br />
<br />
Thanks in advance!!!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>vladacmba</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234811.html</guid>
		</item>
		<item>
			<title>Draggable elements in JQUERY</title>
			<link>http://www.daniweb.com/forums/thread234673.html</link>
			<pubDate>Fri, 30 Oct 2009 12:05:11 GMT</pubDate>
			<description>Hi i am generating dynamically a list of books. Each book should be draggable to a certain place in a page. I gave the same id for all the books by keepin each book reference inside a div element. But only the first element is draggable . Please help me in making all the books in a list to be...</description>
			<content:encoded><![CDATA[<div>Hi i am generating dynamically a list of books. Each book should be draggable to a certain place in a page. I gave the same id for all the books by keepin each book reference inside a div element. But only the first element is draggable . Please help me in making all the books in a list to be draggable .<br />
I am using JQUERY. Please help me out....</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/thread234673.html</guid>
		</item>
		<item>
			<title>Adding elements dynamically in javascript using jquery</title>
			<link>http://www.daniweb.com/forums/thread234614.html</link>
			<pubDate>Fri, 30 Oct 2009 07:29:25 GMT</pubDate>
			<description>hi, 
 in my case i want to add a new menu item(actually a div tag) to my existing menu when an event or method calling occurs. i want to append a div tag dynamically to my existing menu with all css and effects. so if you guys have a better idea for this matter plz  let me know.  that will be a...</description>
			<content:encoded><![CDATA[<div>hi,<br />
 in my case i want to add a new menu item(actually a div tag) to my existing menu when an event or method calling occurs. i want to append a div tag dynamically to my existing menu with all css and effects. so if you guys have a better idea for this matter plz  let me know.  that will be a great pleasure .<br />
<br />
:)<br />
thanks. regards.<br />
<br />
udayanga...</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>udayangaS</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234614.html</guid>
		</item>
		<item>
			<title>Onmouse over Javascript</title>
			<link>http://www.daniweb.com/forums/thread234608.html</link>
			<pubDate>Fri, 30 Oct 2009 06:53:14 GMT</pubDate>
			<description>I need onmouse over video file preview code using javascript....anybody knows kindly reply me</description>
			<content:encoded><![CDATA[<div>I need onmouse over video file preview code using javascript....anybody knows kindly reply me</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>ramkumaran</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234608.html</guid>
		</item>
		<item>
			<title>How to update automatically?</title>
			<link>http://www.daniweb.com/forums/thread234574.html</link>
			<pubDate>Fri, 30 Oct 2009 03:38:49 GMT</pubDate>
			<description><![CDATA[In orkut, as soon as one receives a new scrap, one gets an alert at side bottom even if page is not refreshed. I am sure that orkut doesn't check for scraps again and again by Ajax. Then how does orkut know that i have received a new scrap?? Similar thing is in shout boxes, whenever a new message...]]></description>
			<content:encoded><![CDATA[<div>In orkut, as soon as one receives a new scrap, one gets an alert at side bottom even if page is not refreshed. I am sure that orkut doesn't check for scraps again and again by Ajax. Then how does orkut know that i have received a new scrap?? Similar thing is in shout boxes, whenever a new message is received they update automatically. Anyone know how it happens?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>shubhamjain1</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234574.html</guid>
		</item>
		<item>
			<title>HELP!!  Tabifier JavaScript blanking out tab</title>
			<link>http://www.daniweb.com/forums/thread234568.html</link>
			<pubDate>Fri, 30 Oct 2009 03:03:38 GMT</pubDate>
			<description>I am using a tabifier to create a tabbed webpart within a tabbed webpart in Sharepoint 2004.  My problem is that when I place the inner tabbed web part inside the outer tabbed webpart, one of the tabs on the outer tabbed webpart disappears.  Can anyone help ASAP?  If so, it would be MUCH...</description>
			<content:encoded><![CDATA[<div>I am using a tabifier to create a tabbed webpart within a tabbed webpart in Sharepoint 2004.  My problem is that when I place the inner tabbed web part inside the outer tabbed webpart, one of the tabs on the outer tabbed webpart disappears.  Can anyone help ASAP?  If so, it would be MUCH appreciated!<br />
<br />
<br />
<br />
Here is my code (sorry so long):<br />
<br />
<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;font color=#000000 size=2&gt;&lt;strong&gt;Featured Content&lt;br&gt;&lt;/strong&gt;&lt;/font&gt;&lt;br&gt;<br />
<br />
&lt;hr&gt;<br />
<br />
&lt;!-- END RELATED SITES TABLE DECORATION --&gt;&lt;!-- BEGIN TABBED WEB PART CONTENT --&gt;&lt;/font&gt;<br />
<br />
&lt;div class=tabber id=Eight isTwoRow=&quot;False&quot;&gt;&lt;!-- INDUSTRY TAB --&gt;<br />
<br />
&lt;div class=tabbertab&gt;&lt;!-- TAB 1 HEADING --&gt;<br />
<br />
&lt;h2&gt;Industry&lt;/h2&gt;<br />
<br />
&lt;div class=tabberlive&gt;<br />
<br />
&lt;ul class=tabbernav&gt;<br />
<br />
&lt;div class=tabber&gt;<br />
<br />
&lt;div class=tabbertab title=&quot;Consumer &amp;amp; Industrial Products&quot;&gt;<br />
<br />
&lt;h3&gt;Section One&lt;/h3&gt;The following studies are available to C&amp;amp;IP clients. Click on the name of the industry study below to learn more. Finance for Process and Industrial Products SGA for Industrial Products SGA for Automotive SGA for Retail Supply Chain for Industrial Products The following studies are available to clients in any industry. Click on the name of the study below to learn more. Finance Human Resources SGA &lt;/div&gt;<br />
<br />
&lt;div class=tabbertab title=&quot;Energy&quot;&gt;<br />
<br />
&lt;h3&gt;Section Two&lt;/h3&gt;The following studies are available to Energy clients. Click on the name of the industry study below to learn more. Finance Human Resources SGA Supply Chain &lt;/div&gt;<br />
<br />
&lt;div class=tabbertab title=&quot;Financial Services&quot;&gt;<br />
<br />
&lt;h3&gt;Section Three&lt;/h3&gt;The following studies are available to Financial Services clients. Click on the name of the industry study below to learn more. Annuity Operations (ACES) Finance for Insurance Human Resources for Insurance Life Insurance Operations (LIONS) The following studies are available to clients in any industry. Click on the name of the study below to learn more. Finance Human Resources SGA &lt;/div&gt;<br />
<br />
&lt;div class=tabbertab title=&quot;Government&quot;&gt;<br />
<br />
&lt;h3&gt;Section Four&lt;/h3&gt;The following studies are available to Government clients. Click on the name of the industry study below to learn more. Finance Human Resources SGA Supply Chain &lt;/div&gt;<br />
<br />
&lt;div class=tabbertab title=&quot;Life Sciences &amp;amp; Healthcare&quot;&gt;<br />
<br />
&lt;h3&gt;Section Five&lt;/h3&gt;The following studies are available to Life Sciences clients. Click on the name of the industry study below to learn more. Supply Chain for Pharmaceuticals Supply Chain for Medical Devices The following studies are available to clients in any industry. Click on the name of the study below to learn more. Finance Human Resources SGA &lt;/div&gt;<br />
<br />
&lt;div class=tabbertab title=&quot;Technology, Media &amp;amp; Telecom&quot;&gt;<br />
<br />
&lt;h3&gt;Section Six&lt;/h3&gt;The following studies are available to Technology clients. Click on the name of the industry study below to learn more. Finance for Technology Human Resources for Technology Product Development for Technology Manufacturers Supply Chain for Technology Manufacturers The following studies are available to clients in any industry. Click on the name of the study below to learn more. Finance Human Resources SGA &lt;/div&gt;Finance<br />
<br />
&lt;h2&gt;&lt;/h2&gt;&lt;!-- BEGIN TABLE FOR SUPPORT SITES TAB --&gt;<br />
<br />
&lt;table cellSpacing=0 cellPadding=1 border=0&gt;<br />
<br />
&lt;tbody&gt;<br />
<br />
&lt;tr&gt;<br />
<br />
&lt;td vAlign=center&gt;&lt;img src=&quot;http://kx.resources.com/C15/POC%20Testing/Image%20Library/lstbulet.gif&quot; border=0&gt;&lt;/td&gt;<br />
<br />
&lt;td&gt;Project Spotlight&lt;/td&gt;<br />
<br />
&lt;td style=&quot;WIDTH: 375px&quot;&gt;&lt;/td&gt;<br />
<br />
&lt;td&gt;&lt;img src=&quot;http://kx.resources.com/C15/POC%20Testing/Image%20Library/lstbulet.gif&quot; border=0&gt;&lt;/td&gt;<br />
<br />
&lt;td&gt;Practioner Spotlight&lt;/td&gt;&lt;/tr&gt;<br />
<br />
&lt;tr&gt;<br />
<br />
&lt;td vAlign=top&gt;&lt;img src=&quot;http://kx.resources.com/C15/POC%20Testing/Image%20Library/lstbulet.gif&quot; border=0&gt;&lt;/td&gt;<br />
<br />
&lt;td&gt;Wins&lt;/td&gt;<br />
<br />
&lt;td&gt;&lt;/td&gt;<br />
<br />
&lt;td&gt;&lt;img src=&quot;http://kx.resources.com/C15/POC%20Testing/Image%20Library/lstbulet.gif&quot; border=0&gt;&lt;/td&gt;<br />
<br />
&lt;td&gt;Newsletter&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br&gt;&lt;/div&gt;&lt;!--Support Sites TAB //---&gt;<br />
<br />
&lt;div class=tabbertab&gt;&lt;!-- HUMAN RESOURCES TAB --&gt;<br />
<br />
&lt;h2&gt;Human Resources&lt;/h2&gt;<br />
<br />
&lt;div class=tabbertab&gt;<br />
<br />
&lt;div class=tabberlive&gt;<br />
<br />
&lt;ul class=tabbernav&gt;<br />
<br />
&lt;div class=tabber&gt;<br />
<br />
&lt;div class=tabbertab title=Finance&gt;<br />
<br />
&lt;h3&gt;Section One&lt;/h3&gt;The Finance Diagnostic is available to all clients. We do offer industry specific comparisons for some industries. Click on the name of the industry study below to learn more. Finance Cross Industry Finance for Insurance Finance for Process and Industrial Products Finance for Technology &lt;/div&gt;<br />
<br />
&lt;div class=tabbertab title=&quot;Human Resources&quot;&gt;<br />
<br />
&lt;h3&gt;Section Two&lt;/h3&gt;The Human Resources Diagnostic is available to all clients. We do offer industry specific comparisons for some industries. Click on the name of the industry study below to learn more. Human Resources Cross Industry Human Resources for Automotive (see SGA study for Automotive) Human Resources for Industrial Products (see SGA study for IP) Human Resources for Technology &lt;/div&gt;<br />
<br />
&lt;div class=tabbertab title=&quot;Information Technology&quot;&gt;<br />
<br />
&lt;h3&gt;Section Three&lt;/h3&gt;The Information Technology Diagnostic is available to all clients. We do offer industry specific comparisons for some industries. Click on the name of the industry study below to learn more. Information Technology Cross Industry (see SGA study) Information Technology for Automotive (see SGA study for Automotive) Information Technology for Industrial Products (see SGA study for IP) &lt;/div&gt;<br />
<br />
&lt;div class=tabbertab title=&quot;Operations&quot;&gt;<br />
<br />
&lt;h3&gt;Section Four&lt;/h3&gt;We offer operations studies for Annuity and Life Insurance companies. Click on the name of the industry study below to learn more. Annuity Operations (ACES) Life Insurance Operations (LIONS) &lt;/div&gt;<br />
<br />
&lt;div class=tabbertab title=&quot;Procurement&quot;&gt;<br />
<br />
&lt;h3&gt;Section Five&lt;/h3&gt;The Procurement study is delivered as part of our SG&amp;amp;A study. We do offer industry specific comparisons for some industries. Click on the name of the industry study below to learn more. Procurement Cross Industry (see SGA study) Procurement for Automotive (see SGA study for SGA Automotive) Procurement for Industrial Products (see SGA study for IP) &lt;/div&gt;<br />
<br />
&lt;div class=tabbertab title=&quot;SG&amp;amp;A&quot;&gt;<br />
<br />
&lt;h3&gt;Section Six&lt;/h3&gt;The SGA Diagnostic is available to all clients. We do offer industry specific comparisons for some industries. Click on the name of the industry study below to learn more. SGA Cross Industry SGA for Automotive SGA for Industrial Products SGA for Retail &lt;/div&gt;<br />
<br />
&lt;div class=tabbertab title=&quot;Supply Chain&quot;&gt;<br />
<br />
&lt;h3&gt;Section Seven&lt;/h3&gt;The Supply Chain studies are available to all clients. We do offer industry specific comparisons for some industries. Click on the name of the industry study below to learn more. Product Development for Technology Manufacturers Supply Chain for Consumer Products Supply Chain for Industrial Products Supply Chain for Life Sciences Supply Chain for Technology &lt;/div&gt;&lt;!-- BEGIN TABLE FOR RESEARCH SITES TAB --&gt;<br />
<br />
&lt;table cellSpacing=0 cellPadding=1 border=0&gt;<br />
<br />
&lt;tbody&gt;<br />
<br />
&lt;tr&gt;<br />
<br />
&lt;td vAlign=center&gt;&lt;img src=&quot;http://kx.resources.com/C15/POC%20Testing/Image%20Library/lstbulet.gif&quot; border=0&gt;&lt;/td&gt;<br />
<br />
&lt;td&gt;Project Spotlight&lt;/td&gt;<br />
<br />
&lt;td style=&quot;WIDTH: 375px&quot;&gt;&lt;/td&gt;<br />
<br />
&lt;td&gt;&lt;img src=&quot;http://kx.resources.com/C15/POC%20Testing/Image%20Library/lstbulet.gif&quot; border=0&gt;&lt;/td&gt;<br />
<br />
&lt;td&gt;Practioner Spotlight&lt;/td&gt;&lt;/tr&gt;<br />
<br />
&lt;tr&gt;<br />
<br />
&lt;td vAlign=top&gt;&lt;img src=&quot;http://kx.resources.com/C15/POC%20Testing/Image%20Library/lstbulet.gif&quot; border=0&gt;&lt;/td&gt;<br />
<br />
&lt;td&gt;Wins&lt;/td&gt;<br />
<br />
&lt;td&gt;&lt;/td&gt;<br />
<br />
&lt;td&gt;&lt;img src=&quot;http://kx.resources.com/C15/POC%20Testing/Image%20Library/lstbulet.gif&quot; border=0&gt;&lt;/td&gt;<br />
<br />
&lt;td&gt;Newsletter&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br&gt;&lt;br&gt;&lt;/div&gt;&lt;!--INFORMATION TECHNOLOGY TAB //---&gt;<br />
<br />
&lt;div class=tabbertab&gt;&lt;!-- TAB 3 HEADING --&gt;<br />
<br />
&lt;h2&gt;Information Technology&lt;/h2&gt;&lt;!-- BEGIN RESEARCH SITES TAB --&gt;<br />
<br />
&lt;table cellSpacing=0 cellPadding=1 border=0&gt;<br />
<br />
&lt;tbody&gt;<br />
<br />
&lt;tr&gt;<br />
<br />
&lt;td&gt;&lt;img src=&quot;http://kx.resources.com/C15/POC%20Testing/Image%20Library/lstbulet.gif&quot; border=0&gt;&lt;/td&gt;<br />
<br />
&lt;td&gt;Project Spotlight&lt;/td&gt;<br />
<br />
&lt;td style=&quot;WIDTH: 375px&quot;&gt;&lt;/td&gt;<br />
<br />
&lt;td&gt;&lt;img src=&quot;http://kx.resources.com/C15/POC%20Testing/Image%20Library/lstbulet.gif&quot; border=0&gt;&lt;/td&gt;<br />
<br />
&lt;td&gt;Practioner Spotlight&lt;/td&gt;&lt;/tr&gt;<br />
<br />
&lt;tr&gt;<br />
<br />
&lt;td&gt;&lt;img src=&quot;http://kx.resources.com/C15/POC%20Testing/Image%20Library/lstbulet.gif&quot; border=0 valign=&quot;middle&quot;&gt;&lt;/td&gt;<br />
<br />
&lt;td&gt;Wins&lt;/td&gt;<br />
<br />
&lt;td&gt;&amp;nbsp;&lt;/td&gt;<br />
<br />
&lt;td&gt;&lt;img src=&quot;http://kx.resources.com/C15/POC%20Testing/Image%20Library/lstbulet.gif&quot; border=0&gt;&lt;/td&gt;<br />
<br />
&lt;td&gt;Newsletter&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/ul&gt;&lt;/div&gt;&lt;br&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;<br />
<br />
&lt;h2&gt;&lt;/h2&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>cmm0812</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234568.html</guid>
		</item>
		<item>
			<title>Pass variables depending on linked that is clicked</title>
			<link>http://www.daniweb.com/forums/thread234559.html</link>
			<pubDate>Fri, 30 Oct 2009 01:57:50 GMT</pubDate>
			<description><![CDATA[Hey, 
 
Im wondering if someone could tell me how to set a variable depending on the link that is clicked than pass it to php. 
 
It's for a rating plugin - The links will be numbers 1 - 5 and need to pass the integer to php when clicked.. in background. 
 
I am assuming I would use...]]></description>
			<content:encoded><![CDATA[<div>Hey,<br />
<br />
Im wondering if someone could tell me how to set a variable depending on the link that is clicked than pass it to php.<br />
<br />
It's for a rating plugin - The links will be numbers 1 - 5 and need to pass the integer to php when clicked.. in background.<br />
<br />
I am assuming I would use &quot;XMLHttpRequest&quot; so I can reload - send variable, and display in the background.<br />
<br />
Could I do something like this for the links.<br />
 <pre style="margin:20px; line-height:13px">&lt;a href=&quot;&quot; onclick=&quot;loadurl('function.php?vote=1')&quot;&gt;Vote 1&lt;/a&gt;<br />
&lt;a href=&quot;&quot; onclick=&quot;loadurl('function.php?vote=2')&quot;&gt;Vote 2&lt;/a&gt;<br />
and so forth...</pre><br />
Then in php have something like $vote = GET_(vote)... Sorry if this is way off base.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>cjay175</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234559.html</guid>
		</item>
		<item>
			<title>Help with Javascript snippet</title>
			<link>http://www.daniweb.com/forums/thread234491.html</link>
			<pubDate>Thu, 29 Oct 2009 17:50:22 GMT</pubDate>
			<description>I would like to find a snippet of code to us in page using Javascript or JQuery.  the function of the code is to make text appear weekly.  Like random text or random image but I would like to control the text according to the week within the year ie. week 1 text 1, week 2 text2 etc.  Can anyone...</description>
			<content:encoded><![CDATA[<div>I would like to find a snippet of code to us in page using Javascript or JQuery.  the function of the code is to make text appear weekly.  Like random text or random image but I would like to control the text according to the week within the year ie. week 1 text 1, week 2 text2 etc.  Can anyone help?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>Helban</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234491.html</guid>
		</item>
		<item>
			<title>Javascript stopped working in new version of firefox</title>
			<link>http://www.daniweb.com/forums/thread234175.html</link>
			<pubDate>Wed, 28 Oct 2009 19:38:08 GMT</pubDate>
			<description><![CDATA[Hi guys, 
 
Can anyone tell me why this script no longer works in firefox?  It works in the older version but since it got updated to version 3.5.3 it doesnt work anymore.  It works fine in IE. 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>Hi guys,<br />
<br />
Can anyone tell me why this script no longer works in firefox?  It works in the older version but since it got updated to version 3.5.3 it doesnt work anymore.  It works fine in IE.<br />
<br />
 <pre style="margin:20px; line-height:13px"><br />
&lt;script type=&quot;text/javascript&quot;&gt;<br />
function show_popup(s_file, msg, msg2, msg3, w, h)<br />
{<br />
var p=window.createPopup()<br />
var pbody=p.document.body<br />
pbody.style.backgroundColor=&quot;white&quot;<br />
pbody.style.border=&quot;solid white 6px&quot;<br />
pbody.innerHTML=&quot;&lt;table cellpadding=0 bgcolor=white style='border:0px solid #777777'&gt;&lt;tr&gt;&lt;td colspan='3'&gt;&lt;img src='images/&quot;+s_file+&quot;'&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align=left&gt;&lt;font face='times' color='black' size='1'&gt;&lt;i&gt;&quot;+msg+&quot;&lt;/i&gt;&lt;/font&gt;&lt;/td&gt;&lt;td align=left&gt;&lt;font face='times' color='black' size='1'&gt;&lt;i&gt;&quot;+msg2+&quot;&lt;/i&gt;&lt;/font&gt;&lt;/td&gt;&lt;td align=left&gt;&lt;font face='times' size='1' color='black'&gt;&lt;i&gt;&quot;+msg3+&quot;&lt;/i&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&quot;<br />
p.show(15,15,w,h+40,document.body)<br />
}<br />
&lt;/script&gt;<br />
<br />
&lt;!-- This is then what i add for each of the images -&gt;&gt;<br />
<br />
&lt;a href=&quot;javascript<b></b>:show_popup(image.jpg','Image Example ','acrylic on masonite','62 X 48 inches',430,564)&quot;&gt;&lt;img src=&quot;images/thumbs/image_thumb.jpg&quot; alt=&quot;Images&quot; width=&quot;100&quot; height=&quot;128&quot; border=&quot;0&quot; align=&quot;center&quot; valign=&quot;TOP&quot; /&gt;&lt;/a&gt;</pre><br />
If anyone can help that would be great :)<br />
Im a newbie so need an easy to understand explanation please.<br />
<br />
cheers,<br />
<br />
Shane</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>shane_tactical1</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234175.html</guid>
		</item>
		<item>
			<title>Java OnMouseOver event</title>
			<link>http://www.daniweb.com/forums/thread234170.html</link>
			<pubDate>Wed, 28 Oct 2009 19:28:30 GMT</pubDate>
			<description>Hi everyone, its been a while since i kast posted on here,  
 
Im trying to make the following menu open on the mouseover event, but im having loads of problems, Whilst the menu system works great on the click event, Copy and paste this code if you are looking fro a good easy menu system for any...</description>
			<content:encoded><![CDATA[<div>Hi everyone, its been a while since i kast posted on here, <br />
<br />
Im trying to make the following menu open on the mouseover event, but im having loads of problems, Whilst the menu system works great on the click event, Copy and paste this code if you are looking fro a good easy menu system for any webpage you may be designing. <br />
<br />
What I would like is to haver the menu work on the OnMouseOver Event, Hoping someone can help, <br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;script language=&quot;JavaScript&quot; type=&quot;text/JavaScript&quot;&gt;<br />
&lt;!--<br />
menu_status = new Array();<br />
<br />
function showHide(theid){<br />
&nbsp; &nbsp; if (document.getElementById) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var switch_id = document.getElementById(theid);<br />
&nbsp; &nbsp; &nbsp; &nbsp; if(menu_status[theid] != 'show') {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  switch_id.className = 'show';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  menu_status[theid] = 'show';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  set_cookie(theid,'hide');<br />
&nbsp; &nbsp; &nbsp; &nbsp; }else{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  switch_id.className = 'hide';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  menu_status[theid] = 'hide';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  set_cookie(theid,'show');<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; }<br />
}<br />
<br />
function showHideAll()<br />
{<br />
&nbsp; &nbsp; &nbsp; var menuState = get_cookie ('mymenu1');<br />
&nbsp; &nbsp; &nbsp; menu_status['mymenu1']=menuState;<br />
&nbsp; &nbsp; &nbsp; showHide('mymenu1');<br />
<br />
&nbsp; &nbsp; &nbsp; menuState = get_cookie ('mymenu2');<br />
&nbsp; &nbsp; &nbsp; menu_status['mymenu2']=menuState;<br />
&nbsp; &nbsp; &nbsp; showHide('mymenu2');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; menuState = get_cookie ('mymenu3');<br />
&nbsp; &nbsp; &nbsp; menu_status['mymenu3']=menuState;<br />
&nbsp; &nbsp; &nbsp; showHide('mymenu3');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; menuState = get_cookie ('mymenu4');<br />
&nbsp; &nbsp; &nbsp; menu_status['mymenu4']=menuState;<br />
&nbsp; &nbsp; &nbsp; showHide('mymenu4');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
}<br />
<br />
<br />
<br />
function get_cookie ( cookie_name )<br />
{<br />
&nbsp; var results = document.cookie.match ( cookie_name + '=(.*?)(;|$)' );<br />
<br />
<br />
&nbsp; if ( results )<br />
&nbsp; &nbsp; return ( unescape ( results[1] ) );<br />
&nbsp; else<br />
&nbsp; &nbsp; return null;<br />
}<br />
<br />
function set_cookie ( name, value, exp_y, exp_m, exp_d, path, domain, secure )<br />
{<br />
&nbsp; var cookie_string = name + &quot;=&quot; + escape ( value );<br />
<br />
&nbsp; if ( exp_y )<br />
&nbsp; {<br />
&nbsp; &nbsp; var expires = new Date ( exp_y, exp_m, exp_d );<br />
&nbsp; &nbsp; cookie_string += &quot;; expires=&quot; + expires.toGMTString();<br />
&nbsp; }<br />
<br />
&nbsp; if ( path )<br />
&nbsp; &nbsp; &nbsp; &nbsp; cookie_string += &quot;; path=&quot; + escape ( path );<br />
<br />
&nbsp; if ( domain )<br />
&nbsp; &nbsp; &nbsp; &nbsp; cookie_string += &quot;; domain=&quot; + escape ( domain );<br />
<br />
&nbsp; if ( secure )<br />
&nbsp; &nbsp; &nbsp; &nbsp; cookie_string += &quot;; secure&quot;;<br />
<br />
&nbsp; document.cookie = cookie_string;<br />
}<br />
<br />
//--&gt;<br />
&lt;/script&gt;<br />
<br />
&lt;style type=&quot;text/css&quot;&gt;<br />
.menu1{<br />
&nbsp; &nbsp; &nbsp; &nbsp; background-color:#2a4c79;<br />
&nbsp; &nbsp; &nbsp; &nbsp; padding-left:5px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; padding-top:2px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; padding-bottom: 2px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; display:block;<br />
&nbsp; &nbsp; &nbsp; &nbsp; text-decoration: none;<br />
&nbsp; &nbsp; &nbsp; &nbsp; color: #ffffff;<br />
&nbsp; &nbsp; &nbsp; &nbsp; height: 20px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; font-family:Tahoma;<br />
&nbsp; &nbsp; &nbsp; &nbsp; font-size:12px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; border-top:solid 1px #000000;<br />
}<br />
<br />
.menu2{<br />
&nbsp; &nbsp; &nbsp; &nbsp; background-color:#2a4c79;<br />
&nbsp; &nbsp; &nbsp; &nbsp; padding-left:5px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; padding-top:2px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; padding-bottom: 2px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; display:block;<br />
&nbsp; &nbsp; &nbsp; &nbsp; text-decoration: none;<br />
&nbsp; &nbsp; &nbsp; &nbsp; color: #ffffff;<br />
&nbsp; &nbsp; &nbsp; &nbsp; height: 20px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; font-family:Tahoma;<br />
&nbsp; &nbsp; &nbsp; &nbsp; font-size:12px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; border-top:solid 1px #000000;<br />
}<br />
<br />
.menu3{<br />
&nbsp; &nbsp; &nbsp; &nbsp; background-color:#2a4c79;<br />
&nbsp; &nbsp; &nbsp; &nbsp; padding-left:5px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; padding-top:2px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; padding-bottom: 2px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; display:block;<br />
&nbsp; &nbsp; &nbsp; &nbsp; text-decoration: none;<br />
&nbsp; &nbsp; &nbsp; &nbsp; color: #ffffff;<br />
&nbsp; &nbsp; &nbsp; &nbsp; height: 20px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; font-family:Tahoma;<br />
&nbsp; &nbsp; &nbsp; &nbsp; font-size:12px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; border-top:solid 1px #000000;<br />
}<br />
.menu4{<br />
&nbsp; &nbsp; &nbsp; &nbsp; background-color:#2a4c79;<br />
&nbsp; &nbsp; &nbsp; &nbsp; padding-left:5px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; padding-top:2px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; padding-bottom: 2px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; display:block;<br />
&nbsp; &nbsp; &nbsp; &nbsp; text-decoration: none;<br />
&nbsp; &nbsp; &nbsp; &nbsp; color: #ffffff;<br />
&nbsp; &nbsp; &nbsp; &nbsp; height: 20px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; font-family:Tahoma;<br />
&nbsp; &nbsp; &nbsp; &nbsp; font-size:12px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; border-top:solid 1px #000000;<br />
}<br />
<br />
&nbsp;.submenu{<br />
&nbsp; &nbsp; &nbsp; &nbsp; background-color:#ffffff;<br />
&nbsp; &nbsp; &nbsp; &nbsp; display: block;<br />
&nbsp; &nbsp; &nbsp; &nbsp; height: 20px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; padding-top: 2px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; padding-left: 5px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; color: #2a4c79;<br />
&nbsp; &nbsp; &nbsp; &nbsp; font-family:Verdana, Arial, Helvetica, sans-serif;<br />
&nbsp; &nbsp; &nbsp; &nbsp; font-size:12px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; border-top:solid 1px #000000;<br />
}<br />
<br />
.hide{<br />
&nbsp; &nbsp; &nbsp; display: none;<br />
}<br />
<br />
.show{<br />
&nbsp; &nbsp; &nbsp; display: block;<br />
}<br />
&lt;/style&gt;<br />
&lt;/head&gt;<br />
&lt;/head&gt;<br />
<br />
&lt;body onLoad=&quot;javascript<b></b>:showHideAll()&quot;&gt;<br />
&lt;div style=&quot;width:135px; height:192px&quot;&gt;<br />
<br />
&nbsp;&lt;a class=&quot;menu1&quot; onClick=&quot;showHide('mymenu1')&quot;&gt;Links&lt;/a&gt;<br />
&nbsp; &nbsp; &lt;div id=&quot;mymenu1&quot; class=&quot;hide&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;www.somewhere.com&quot; title=&quot;Click to go somewhere&quot; class=&quot;submenu&quot;&gt;Somewhere Link&lt;/a&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &lt;/div&gt;<br />
<br />
&lt;a class=&quot;menu2&quot; onClick=&quot;showHide('mymenu2')&quot;&gt;Links&lt;/a&gt;<br />
&nbsp; &nbsp; &lt;div id=&quot;mymenu2&quot; class=&quot;hide&quot;&gt;<br />
&nbsp; &lt;a href=&quot;www.somewhere.com&quot; title=&quot;Click to go somewhere&quot; class=&quot;submenu&quot;&gt;Somewhere Link&lt;/a&gt;<br />
&nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &lt;a class=&quot;menu3&quot; onClick=&quot;showHide('mymenu3')&quot;&gt;Links&lt;/a&gt;<br />
&nbsp; &nbsp; &lt;div id=&quot;mymenu3&quot; class=&quot;hide&quot;&gt;<br />
&nbsp; &nbsp; &lt;a href=&quot;www.somewhere.com&quot; title=&quot;Click to go somewhere&quot; class=&quot;submenu&quot;&gt;Somewhere Link&lt;/a&gt;&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; <br />
&lt;a class=&quot;menu4&quot; onClick=&quot;showHide('mymenu4')&quot;&gt;Links&lt;/a&gt;<br />
&nbsp; &nbsp; &lt;div id=&quot;mymenu4&quot; class=&quot;hide&quot;&gt;<br />
&nbsp; &nbsp; &lt;a href=&quot;www.somewhere.com&quot; title=&quot;Click to go somewhere&quot; class=&quot;submenu&quot;&gt;Somewhere Link&lt;/a&gt;&nbsp; <br />
&nbsp; &nbsp; &lt;/div&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>DaveyMoyes</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234170.html</guid>
		</item>
		<item>
			<title>Problems in loading the external page to a div</title>
			<link>http://www.daniweb.com/forums/thread234070.html</link>
			<pubDate>Wed, 28 Oct 2009 07:04:58 GMT</pubDate>
			<description><![CDATA[Hi friends, I have a *parent page say index.html* on which I have a div. Now, I want to load some content from the *child page(external page) say inner.html* into the div on parent page. As far as I have worked on it I found that I can do this via ajax using "obj.responseText" but Im not hitting...]]></description>
			<content:encoded><![CDATA[<div>Hi friends, I have a <span style="font-weight:bold">parent page say index.html</span> on which I have a div. Now, I want to load some content from the <span style="font-weight:bold">child page(external page) say inner.html</span> into the div on parent page. As far as I have worked on it I found that I can do this via ajax using &quot;obj.responseText&quot; but Im not hitting the right point. <br />
Can anyone of you have the solution(or may be a hint...)??</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>ankitbhatia</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234070.html</guid>
		</item>
		<item>
			<title>javascript not working</title>
			<link>http://www.daniweb.com/forums/thread233954.html</link>
			<pubDate>Tue, 27 Oct 2009 19:52:17 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 type='text/javascript'&gt;<br />
function urlget(){<br />
<br />
&nbsp;  var url = parent.link_frame.location.href;<br />
&nbsp; document.getElementById('urlarea').innerHTML = url;<br />
}<br />
&lt;/script&gt;</pre><br />
 <pre style="margin:20px; line-height:13px">&lt;textarea name=&quot;urlarea&quot; id=&quot;urlarea&quot;&gt;&lt;/textarea&gt;</pre><br />
 <pre style="margin:20px; line-height:13px">&lt;a onclick='urlget()'&gt;&lt;/a&gt;</pre><br />
it should get the url of the top frame(link_frame) and put in the textarea.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>MDanz</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233954.html</guid>
		</item>
		<item>
			<title>retrieve textbox old value</title>
			<link>http://www.daniweb.com/forums/thread233918.html</link>
			<pubDate>Tue, 27 Oct 2009 16:53:09 GMT</pubDate>
			<description>say in textbox its written you, and i erase it and write bingo. 
how can i retrieve back the old value you? 
 
 
simple solution i dont want to use, i want different way. 
i do inputhidden where i store the old value always</description>
			<content:encoded><![CDATA[<div>say in textbox its written you, and i erase it and write bingo.<br />
how can i retrieve back the old value you?<br />
<br />
<br />
simple solution i dont want to use, i want different way.<br />
i do inputhidden where i store the old value always</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/thread233918.html</guid>
		</item>
		<item>
			<title>javascript php</title>
			<link>http://www.daniweb.com/forums/thread233851.html</link>
			<pubDate>Tue, 27 Oct 2009 12:19:54 GMT</pubDate>
			<description><![CDATA[hey all.. 
i was wondering if anyone culd help me wid this.. 
 
i've a html file with javascript and a php file.. 
i need to access the db result generated by the php file in my javascript..to dynamically load drop down menu in the html file.. 
 
was wondering if i cud use somehin like.. 
 
var...]]></description>
			<content:encoded><![CDATA[<div>hey all..<br />
i was wondering if anyone culd help me wid this..<br />
<br />
i've a html file with javascript and a php file..<br />
i need to access the db result generated by the php file in my javascript..to dynamically load drop down menu in the html file..<br />
<br />
was wondering if i cud use somehin like..<br />
<br />
var abc='load.php?array_name='+array_name;<br />
to access the array in php file..<br />
<br />
thanks in advance..:-)</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/thread233851.html</guid>
		</item>
		<item>
			<title>IE6 SP2 crashes</title>
			<link>http://www.daniweb.com/forums/thread233843.html</link>
			<pubDate>Tue, 27 Oct 2009 12:07:58 GMT</pubDate>
			<description><![CDATA[Hi, 
 
I've used Dynamic Currency Converter: 
http://dynamicconverter.com/ 
 
 
on this under development websites: 
http://www.greyboxtechnologies.com/murugan 
 
For some reason the *IE6 SP2* crashes when we access this website on few of our machines. Surprisingly not on all the machines. Its not...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I've used Dynamic Currency Converter:<br />
<a rel="nofollow" class="t" href="http://dynamicconverter.com/" target="_blank">http://dynamicconverter.com/</a><br />
<br />
<br />
on this under development websites:<br />
<a rel="nofollow" class="t" href="http://www.greyboxtechnologies.com/murugan" target="_blank">http://www.greyboxtechnologies.com/murugan</a><br />
<br />
For some reason the <span style="font-weight:bold">IE6 SP2</span> crashes when we access this website on few of our machines. Surprisingly not on all the machines. Its not only in our network machines, I tested it outside also through friends, on some machines it crashes.<br />
<br />
I've followed the dynamic currency converter installation instructions religiously, there is no issue on any other browser including ie7.<br />
<br />
I asked dynamic currency converter guys to support, they checked it and said there is no issue with it.<br />
<br />
When I remove this from the website, <span style="font-weight:bold">IE6 SP2</span> works fine.<br />
<br />
Anybody please help.<br />
<br />
Regards</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>rajoo.sharma</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233843.html</guid>
		</item>
		<item>
			<title>toggle checkbox group when the max limit is reached</title>
			<link>http://www.daniweb.com/forums/thread233830.html</link>
			<pubDate>Tue, 27 Oct 2009 11:11:06 GMT</pubDate>
			<description><![CDATA[hi 
Suppose i have 10 checkboxes and i allow the user to check max of 4 checkboxes.  
When the limit is reached i.e. 4, i need to disable all the other checkboxes 
and when i uncheck anyone (now only 3 are checked) all the checkboxes should be enabled 
 
Here's the code which i tried 
 
 
  <div...]]></description>
			<content:encoded><![CDATA[<div>hi<br />
Suppose i have 10 checkboxes and i allow the user to check max of 4 checkboxes. <br />
When the limit is reached i.e. 4, i need to disable all the other checkboxes<br />
and when i uncheck anyone (now only 3 are checked) all the checkboxes should be enabled<br />
<br />
Here's the code which i tried<br />
<br />
<br />
 <pre style="margin:20px; line-height:13px">function checkboxlimit(checkgroup,max,min){<br />
&nbsp; &nbsp; &nbsp; &nbsp; var checkgroup=checkgroup<br />
&nbsp; &nbsp; &nbsp; &nbsp; var limit=limit<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; for (var i=0; i&lt;checkgroup.length; i++){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; checkgroup[i].onclick=function(){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var checkedcount=0<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (var i=0; i&lt;checkgroup.length; i++){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; checkedcount+=(checkgroup[i].checked)? 1 : 0<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;checkedcount is &quot;+checkedcount)<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; &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;  if (checkedcount==max){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(document.getElementById('check').checked==true)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(1);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.getElementById('check').disabled=true;<br />
<br />
&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;  else{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  alert(2);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  document.getElementById('check').disabled=false;<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; if(checkedcount&gt;=min)<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; document.getElementById('compare').disabled=false;<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; else<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; document.getElementById('compare').disabled=true;<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; }<br />
}<br />
<br />
&lt;c:forEach items=&quot;${productCommand.productList}&quot; var=&quot;prodvar&quot;&gt;<br />
<br />
&lt;table&gt;<br />
&lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;checkbox&quot; name=&quot;selectedItems&quot; value=&quot;${prodvar.productCode}&quot; id=&quot;check&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  onclick=&quot;checkboxlimit(selectedItems,4,2)&quot;;/&gt;<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; &lt;c:out value=&quot;${prodvar.productCode}&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;c:out value=&quot;${prodvar.productDesc}&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;c:out value=&quot;${prodvar.APR}&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;/c:forEach&gt; <br />
<br />
&lt;input type=&quot;submit&quot; name=&quot;Submit&quot; value=&quot;Compare&quot; id=&quot;compare&quot; /&gt;<br />
<br />
&lt;/form&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>madhu28</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233830.html</guid>
		</item>
		<item>
			<title><![CDATA[IE won't display any Javascript, namely Adsense.]]></title>
			<link>http://www.daniweb.com/forums/thread233815.html</link>
			<pubDate>Tue, 27 Oct 2009 10:45:11 GMT</pubDate>
			<description><![CDATA[Hi guys, 
 
I'm very new to Javascript and normally I can find solutions for any issues I have with a quick Google search but this one I just can't find a solution that works. 
 
Essentially all I'm trying to do is insert a bit of adsense code into a part of my site. 
 
The site displays totally...]]></description>
			<content:encoded><![CDATA[<div>Hi guys,<br />
<br />
I'm very new to Javascript and normally I can find solutions for any issues I have with a quick Google search but this one I just can't find a solution that works.<br />
<br />
Essentially all I'm trying to do is insert a bit of adsense code into a part of my site.<br />
<br />
The site displays totally fine in Firefox, Chrome and Safari but Internet Explorer is causing me a world of problems.<br />
<br />
As you can see in the images below IE won't render the page fully and throws up what looks like an iframe with a 400 error in it...<br />
<br />
This is the Firefox version, how I want it to look...<br />
<img src="http://66.7.221.78/~websitee/testwe/includes/firefox.jpg" border="0" alt="" /><br />
<br />
This is the IE version, with the errors...<br />
<img src="http://66.7.221.78/~websitee/testwe/includes/ie.jpg" border="0" alt="" /><br />
<br />
The code I am using is this:<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;!--begin header--!&gt;<br />
&lt;table id=&quot;header&quot;&gt;<br />
&lt;tr&gt;<br />
&lt;td id=&quot;header-logo&quot;&gt;&lt;/td&gt;<br />
&lt;td id=&quot;header-ad&quot;&gt;<br />
&lt;script type=&quot;text/javascript&quot;&gt;<br />
&lt;!--<br />
google_ad_client = &quot;pub-5706391847687826&quot;;<br />
/* 468x60, created 20/07/09 */<br />
google_ad_slot = &quot;0680301869&quot;;<br />
google_ad_width = 468;<br />
google_ad_height = 60;<br />
//--&gt;<br />
&lt;/script&gt;<br />
&lt;script type=&quot;text/javascript&quot;<br />
src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;<br />
&lt;/script&gt;<br />
&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;br&gt;&lt;br&gt;<br />
&lt;!--end header--!&gt;</pre><br />
So far I have tried conditional commenting which doesn't work. I have also tried using a simple Javascript code which shows different text for different browsers, this didn't work either.<br />
<br />
Also, if I replace the Adsense code with just a simple bit of text, the page renders the same in both browsers (as the Firefox example above).<br />
<br />
Any help is very very much appreciated...<br />
<br />
Thanks,</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>mdminternet</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233815.html</guid>
		</item>
		<item>
			<title>creat website</title>
			<link>http://www.daniweb.com/forums/thread233794.html</link>
			<pubDate>Tue, 27 Oct 2009 09:52:42 GMT</pubDate>
			<description>i have problem i need to learn  evrything about how to creat website from scratch as my garduation is sooo soon ps i am just a beginer</description>
			<content:encoded><![CDATA[<div>i have problem i need to learn  evrything about how to creat website from scratch as my garduation is sooo soon ps i am just a beginer</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>sweetangel20</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233794.html</guid>
		</item>
		<item>
			<title>make html element empty</title>
			<link>http://www.daniweb.com/forums/thread233676.html</link>
			<pubDate>Tue, 27 Oct 2009 03:43:05 GMT</pubDate>
			<description><![CDATA[Hi all, 
 
I am looking for a method to make a html element empty (no innerHTML). This would be pretty easy if it weren't for IE. IE has the bug that innerHTML is read-only for tables (and some other elements too). So my function 
 
 
function clearElement(id){...]]></description>
			<content:encoded><![CDATA[<div>Hi all,<br />
<br />
I am looking for a method to make a html element empty (no innerHTML). This would be pretty easy if it weren't for IE. IE has the bug that innerHTML is read-only for tables (and some other elements too). So my function<br />
<br />
 <pre style="margin:20px; line-height:13px">function clearElement(id){<br />
&nbsp; &nbsp; &nbsp; &nbsp; document.getElementById(id).innerHTML = &quot;&quot;;<br />
}</pre><br />
doesn't work on tables (and I need it to work on tables).<br />
<br />
Would there be any other way for me to do this in a way as general as possible. I don't want to bother with 2 different functions for what is essentially the same task and I'm curious how this could be solved in a nice way.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>crebilis</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233676.html</guid>
		</item>
		<item>
			<title>appendChild, invalid child type?</title>
			<link>http://www.daniweb.com/forums/thread233628.html</link>
			<pubDate>Mon, 26 Oct 2009 22:58:16 GMT</pubDate>
			<description><![CDATA[I'd like to use JavaScript to add rows to a table.  It seems like an easy idea, but it occurs to me that the parent node of the rows might technically be a TBODY element.  So, I'm wondering if I use appendChild to add a table row to a table element am I doing something wrong and, more importantly,...]]></description>
			<content:encoded><![CDATA[<div>I'd like to use JavaScript to add rows to a table.  It seems like an easy idea, but it occurs to me that the parent node of the rows might technically be a TBODY element.  So, I'm wondering if I use appendChild to add a table row to a table element am I doing something wrong and, more importantly, is it going to fail in browser x?<br />
<br />
For example:<br />
 <pre style="margin:20px; line-height:13px">function addTheRow() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; var myTable = document.getElementById('myTable');<br />
&nbsp; &nbsp; &nbsp; &nbsp; var newRow&nbsp; = document.createElement('TR');<br />
&nbsp; &nbsp; &nbsp; &nbsp; var newCell = document.createElement('TD');<br />
&nbsp; &nbsp; &nbsp; &nbsp; newCell.appendChild( document.createTextNode('Yeah, Baby! Yeah!!') );<br />
&nbsp; &nbsp; &nbsp; &nbsp; newRow.appendChild( newCell );<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; myTable.appendChild( newRow );<br />
} // End addTheRow function</pre><br />
Should I do something to identify the TBODY element and add the element to that instead?<br />
<br />
Thank you.<br />
<br />
--<br />
-- Ghodmode</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>Ghodmode</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233628.html</guid>
		</item>
		<item>
			<title>Dependant combo only works one time in IE</title>
			<link>http://www.daniweb.com/forums/thread233570.html</link>
			<pubDate>Mon, 26 Oct 2009 20:00:52 GMT</pubDate>
			<description><![CDATA[Hello All, I'm very new to the world of php, js and ajax however I've been working on creating two combo boxes built from values in a table. The table is such - LeagueCode, TeamCode, TeamName. The first combo displays all distinct LeagueCode values. 
 
The second combo then needs to display the...]]></description>
			<content:encoded><![CDATA[<div>Hello All, I'm very new to the world of php, js and ajax however I've been working on creating two combo boxes built from values in a table. The table is such - LeagueCode, TeamCode, TeamName. The first combo displays all distinct LeagueCode values.<br />
<br />
The second combo then needs to display the TeamName where LeagueCode equals the value selected above. The method that I'm using works....but only once. Actually, it seems to work in Chrome, Firefox and Opera, but just doesn't work in IE (I'm on version 7). In IE if I select League a second time, it gives me an error of 'Object doesn't support this property or method' at Line 1 Char 1.<br />
<br />
Any help and/or guidance is greatly appreciated.<br />
<br />
order.htm<br />
 <pre style="margin:20px; line-height:13px">&lt;html&gt;<br />
&lt;body&gt;<br />
&lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot;&gt;<br />
&lt;!-- <br />
window.onload = function()<br />
{cmbLeague();}<br />
<br />
function cmbLeague(){<br />
&nbsp; &nbsp; &nbsp; &nbsp; var ajaxRequest;&nbsp; // The variable that makes Ajax possible!<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; try{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Opera 8.0+, Firefox, Safari<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ajaxRequest = new XMLHttpRequest();<br />
&nbsp; &nbsp; &nbsp; &nbsp; } catch (e){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Internet Explorer Browsers<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; try{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ajaxRequest = 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; ajaxRequest = 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; // Something went wrong<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;Your browser broke!&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; // Create a function that will receive data sent from the server<br />
&nbsp; &nbsp; &nbsp; &nbsp; ajaxRequest.onreadystatechange = function(){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(ajaxRequest.readyState == 4){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var ajaxDisplay = document.getElementById('cmbLeague');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ajaxDisplay.innerHTML = ajaxRequest.responseText;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; //var league = document.getElementById('league').value;<br />
&nbsp; &nbsp; &nbsp; &nbsp; //var queryString = &quot;?league=&quot; + league;<br />
&nbsp; &nbsp; &nbsp; &nbsp; //ajaxRequest.open(&quot;GET&quot;, &quot;ajax-example.php&quot; + queryString, true);<br />
&nbsp; &nbsp; &nbsp; &nbsp; ajaxRequest.open(&quot;GET&quot;, &quot;cmbLeague.php&quot;, true);<br />
&nbsp; &nbsp; &nbsp; &nbsp; ajaxRequest.send(null); <br />
}<br />
<br />
function cmbTeam(selLeague){<br />
&nbsp; &nbsp; &nbsp; &nbsp; league = '';<br />
&nbsp; &nbsp; &nbsp; &nbsp; alert('selLeague: ' + selLeague);<br />
&nbsp; &nbsp; &nbsp; &nbsp; league = selLeague;<br />
&nbsp; &nbsp; &nbsp; &nbsp; var ajaxRequest;&nbsp; // The variable that makes Ajax possible!<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; try{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Opera 8.0+, Firefox, Safari<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ajaxRequest = new XMLHttpRequest();<br />
&nbsp; &nbsp; &nbsp; &nbsp; } catch (e){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Internet Explorer Browsers<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; try{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ajaxRequest = 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; ajaxRequest = 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; // Something went wrong<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;Your browser broke!&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; // Create a function that will receive data sent from the server<br />
&nbsp; &nbsp; &nbsp; &nbsp; ajaxRequest.onreadystatechange = function(){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(ajaxRequest.readyState == 4){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var ajaxDisplay = document.getElementById('cmbTeam');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ajaxDisplay.innerHTML = ajaxRequest.responseText;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
//&nbsp; &nbsp; &nbsp; &nbsp; var colLeague = document.getElementById('cmbLeague').value;<br />
//&nbsp; &nbsp; &nbsp; &nbsp; alert('byId: ' + colLeague);<br />
&nbsp; &nbsp; &nbsp; &nbsp; var queryString = &quot;?league=&quot; + league;<br />
&nbsp; &nbsp; &nbsp; &nbsp; ajaxRequest.open(&quot;GET&quot;, &quot;cmbTeam.php&quot; + queryString, true);<br />
&nbsp; &nbsp; &nbsp; &nbsp; ajaxRequest.send(null); <br />
}<br />
<br />
//--&gt;<br />
&lt;/script&gt;<br />
<br />
&lt;table&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;form name='myForm'&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td class=&quot;label&quot;&gt;League:&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&quot;cmbLeague&quot;&gt;&lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td class=&quot;label&quot;&gt;Team:&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&quot;cmbTeam&quot; class=&quot;text&quot;&gt;&lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/form&gt;<br />
&lt;/table&gt;<br />
<br />
&lt;/body&gt;<br />
&lt;/html&gt;</pre><br />
cmbTeam.php<br />
 <pre style="margin:20px; line-height:13px">&lt;?php<br />
require(&quot;password.php&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; //Connect to MSSQL Server<br />
mssql_connect($dbhost, $dbuser, $dbpass);<br />
&nbsp; &nbsp; &nbsp; &nbsp; //Select Database<br />
mssql_select_db($dbname) or die(mysql_error());<br />
&nbsp; &nbsp; &nbsp; &nbsp; // Retrieve data from Query String<br />
$league = $_GET&#91;'league'&#93;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; //build query<br />
$query = &quot;SELECT TeamCode, TeamName FROM tblTeam WHERE LeagueCode = '$league'&quot;;<br />
//echo $query;<br />
&nbsp; &nbsp; &nbsp; &nbsp; //Execute query<br />
$qry_result = mssql_query($query) or die(mssql_error());<br />
<br />
echo &quot;&lt;select name=\&quot;cmbTeam\&quot; id=\&quot;cmbTeam\&quot; class=\&quot;text\&quot; onChange=\&quot;alert(this.value);\&quot;&gt;\n&quot;;<br />
echo &quot;&lt;option value=\&quot;NULL\&quot;&gt;Select Value&lt;/option&gt;\n&quot;;<br />
<br />
// Add an option in the combo for each result<br />
while($row = mssql_fetch_array($qry_result)){<br />
&nbsp; &nbsp; &nbsp; $strA = $row&#91;&quot;TeamCode&quot;&#93;;<br />
&nbsp; &nbsp; &nbsp; $strB = $row&#91;&quot;TeamName&quot;&#93;;<br />
&nbsp; &nbsp; &nbsp; echo &quot;&lt;option value=\&quot;$strA\&quot;&gt;$strB&lt;/option&gt;\n&quot;;<br />
}<br />
echo &quot;&lt;/select&gt;&quot;;<br />
echo &quot;Query: &quot; . $query . &quot;&lt;br /&gt;&quot;;<br />
?&gt;</pre><br />
cmbLeague.php<br />
 <pre style="margin:20px; line-height:13px">&lt;?php<br />
require(&quot;password.php&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; //Connect to MSSQL Server<br />
mssql_connect($dbhost, $dbuser, $dbpass);<br />
&nbsp; &nbsp; &nbsp; &nbsp; //Select Database<br />
mssql_select_db($dbname) or die(mysql_error());<br />
&nbsp; &nbsp; &nbsp; &nbsp; //build query<br />
$query = &quot;SELECT DISTINCT LeagueCode FROM tblTeam&quot;;<br />
//echo $query;<br />
&nbsp; &nbsp; &nbsp; &nbsp; //Execute query<br />
$qry_result = mssql_query($query) or die(mssql_error());<br />
<br />
//echo &quot;&lt;select name=\&quot;cmbLeague\&quot; id=\&quot;cmbLeague\&quot; class=\&quot;text\&quot; onChange=\&quot;cmbTeam(this.options&#91;this.selectedIndex&#93;.value);\&quot;&gt;\n&quot;;<br />
echo &quot;&lt;select name=\&quot;cmbLeague\&quot; id=\&quot;cmbLeague\&quot; class=\&quot;text\&quot; onChange=\&quot;cmbTeam(this.value);\&quot;&gt;\n&quot;;<br />
//echo &quot;&lt;select name=\&quot;cmbLeague\&quot; id=\&quot;cmbLeague\&quot; class=\&quot;text\&quot; onChange=\&quot;alert(this.value);\&quot;&gt;\n&quot;;<br />
echo &quot;&lt;option value=\&quot;NULL\&quot;&gt;-- Select a League --&lt;/option&gt;\n&quot;;<br />
<br />
// Add an option in the combo for each result<br />
while($row = mssql_fetch_array($qry_result)){<br />
&nbsp; &nbsp; &nbsp; $strA = $row&#91;&quot;LeagueCode&quot;&#93;;<br />
&nbsp; &nbsp; &nbsp; echo &quot;&lt;option value=\&quot;$strA\&quot;&gt;$strA&lt;/option&gt;\n&quot;;<br />
}<br />
echo &quot;&lt;/select&gt;&quot;;<br />
//echo &quot;Query: &quot; . $query . &quot;&lt;br /&gt;&quot;;<br />
?&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>jronneba</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233570.html</guid>
		</item>
		<item>
			<title>Portability</title>
			<link>http://www.daniweb.com/forums/thread233505.html</link>
			<pubDate>Mon, 26 Oct 2009 15:51:05 GMT</pubDate>
			<description><![CDATA[Hello, 
 
With PHP I've saved all my website settings in one file e.g  
  <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"...]]></description>
			<content:encoded><![CDATA[<div>Hello,<br />
<br />
With PHP I've saved all my website settings in one file e.g <br />
 <pre style="margin:20px; line-height:13px">'baseUrl' =&gt; 'http://localhost/thisSite',<br />
'resources' =&gt; '../Resources/',&nbsp; <br />
'templates' =&gt; '../Resources/TPL/',</pre><br />
This makes the site very portable.  I simply make changes to this one file and<br />
I can move the site to any server.<br />
<br />
But I how can I do this with javascript and ajax?  <br />
right now I am embedding all the absolute urls in the ajax calls. <br />
As the site grows it will become harder to move it around.<br />
How would you guys solve this issue?  Many thanks in advance.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>ryy705</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233505.html</guid>
		</item>
		<item>
			<title>Make AJAX degradable</title>
			<link>http://www.daniweb.com/forums/thread233386.html</link>
			<pubDate>Mon, 26 Oct 2009 08:08:48 GMT</pubDate>
			<description><![CDATA[I have already implemented AJAX (DWR) in a web application.My concern is that I don't want the users to lose the efficiency of AJAX simply because browser settings have disabled javascript.Already I have seen someone who has hinted on using degradable AJAX to implement AJAX regardless of whether...]]></description>
			<content:encoded><![CDATA[<div>I have already implemented AJAX (DWR) in a web application.My concern is that I don't want the users to lose the efficiency of AJAX simply because browser settings have disabled javascript.Already I have seen someone who has hinted on using degradable AJAX to implement AJAX regardless of whether javascript is enabled or not.Problem is, I didn't get enough material on this.Anyone please assist and be sure your help is much appreciated</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>dangari</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233386.html</guid>
		</item>
		<item>
			<title><![CDATA[Get hash value & pass from javascript to php]]></title>
			<link>http://www.daniweb.com/forums/thread233251.html</link>
			<pubDate>Sun, 25 Oct 2009 22:14:38 GMT</pubDate>
			<description><![CDATA[Hey, 
 
I was wondering how to obtain a hash value and pass it to php.  
 
URL: 
  <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"...]]></description>
			<content:encoded><![CDATA[<div>Hey,<br />
<br />
I was wondering how to obtain a hash value and pass it to php. <br />
<br />
URL:<br />
 <pre style="margin:20px; line-height:13px">http://www.mydomain.com/#id=110</pre><br />
All I want to grab is just the &quot;110&quot;.<br />
<br />
This is my javascript code:<br />
 <pre style="margin:20px; line-height:13px">&nbsp; &nbsp; &nbsp; &nbsp; &lt;script&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; function getUrlVars()<br />
{<br />
&nbsp; &nbsp; var vars = [], hash;<br />
&nbsp; &nbsp; var hashes = window.location.href.slice(window.location.href.indexOf('#') + 1).split('&amp;');<br />
&nbsp; &nbsp; for(var i = 0; i &lt; hashes.length; i++)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; hash = hashes[i].split('=');<br />
&nbsp; &nbsp; &nbsp; &nbsp; vars.push(hash[0]);<br />
&nbsp; &nbsp; &nbsp; &nbsp; vars[hash[0]] = hash[1];<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; return vars;<br />
}<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/script&gt;</pre><br />
This is how I am going to call the value of the hash:<br />
 <pre style="margin:20px; line-height:13px">var first = getUrlVars()[&quot;id&quot;]; // &lt;-- name of hash</pre><br />
<br />
So my question is, first is this the proper javascript to grab the hash value?<br />
<br />
Second how would I pass the hash value to a php variable? (the variable is going to be used to set a cookie)<br />
<br />
ie:<br />
 <pre style="margin:20px; line-height:13px">&nbsp; &nbsp; &nbsp; &nbsp; $refer_id = $_GET['refer']; //&lt;-- Grab this from javascript (the value of the hash)<br />
&nbsp; &nbsp; &nbsp; &nbsp; $days = 5;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; $date_of_expiry = time() + 60 * 60 * 24 * $days ;<br />
&nbsp; &nbsp; setcookie( &quot;referrer&quot;, $refer_id, $date_of_expiry );</pre><br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>cjay175</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233251.html</guid>
		</item>
		<item>
			<title>Toggle div visibility</title>
			<link>http://www.daniweb.com/forums/thread233243.html</link>
			<pubDate>Sun, 25 Oct 2009 21:13:12 GMT</pubDate>
			<description><![CDATA[Hi all, 
 
I have a div I would like to show and hide. 
 
I've used a script before which works, but now reusing it I can't make it fly. As I can't see where I am going wrong, can anyone else help? 
 
This is the one that works: 
  <div class="codeblock"> <div class="spaced"> <div...]]></description>
			<content:encoded><![CDATA[<div>Hi all,<br />
<br />
I have a div I would like to show and hide.<br />
<br />
I've used a script before which works, but now reusing it I can't make it fly. As I can't see where I am going wrong, can anyone else help?<br />
<br />
This is the one that works:<br />
 <pre style="margin:20px; line-height:13px">&lt;!--script in head tag --&gt;<br />
&lt;script type=&quot;text/javascript&quot;&gt;<br />
&lt;!--<br />
function toggleBox(szDivID, iState) // 1 visible, 0 hidden<br />
{<br />
&nbsp; &nbsp; if(document.layers)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  //NN4+<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp;  document.layers[szDivID].visibility = iState ? &quot;show&quot; : &quot;hide&quot;;<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; else if(document.getElementById)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //gecko(NN6) + IE 5+<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; var obj = document.getElementById(szDivID);<br />
&nbsp; &nbsp; &nbsp; &nbsp; obj.style.visibility = iState ? &quot;visible&quot; : &quot;hidden&quot;;<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; else if(document.all)&nbsp; &nbsp; &nbsp; &nbsp; // IE 4<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; document.all[szDivID].style.visibility = iState ? &quot;visible&quot; : &quot;hidden&quot;;<br />
&nbsp; &nbsp; }<br />
}<br />
// --&gt;<br />
&lt;/script&gt;<br />
<br />
&lt;body&gt;<br />
&lt;div id=&quot;positioned-element25&quot;&gt;<br />
&lt;a href=&quot;#&quot; onClick=&quot;toggleBox('login',1);&quot;&gt;Login&lt;/a&gt;&lt;/div&gt;<br />
&lt;div id=&quot;login&quot;&gt;<br />
&nbsp; &lt;form name=&quot;fp_login&quot; action=&quot;prcs_login.php&quot; method=&quot;post&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;table&gt;<br />
&lt;!-- abbreviated --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />
...<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;input type=&quot;button&quot; onClick=&quot;toggleBox('login',0);&quot; value=&quot;Cancel&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;/tr&gt;<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; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &lt;/table&gt;<br />
&lt;/form&gt;<br />
&lt;/div&gt;</pre><br />
...and this is the new version:<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;script type=&quot;text/javascript&quot;&gt;<br />
&lt;!--<br />
function toggleBox(szDivID, iState) // 1 visible, 0 hidden<br />
{<br />
&nbsp; &nbsp; if(document.layers)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  //NN4+<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp;  document.layers[szDivID].visibility = iState ? &quot;show&quot; : &quot;hide&quot;;<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; else if(document.getElementById)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //gecko(NN6) + IE 5+<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; var obj = document.getElementById(szDivID);<br />
&nbsp; &nbsp; &nbsp; &nbsp; obj.style.visibility = iState ? &quot;visible&quot; : &quot;hidden&quot;;<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; else if(document.all)&nbsp; &nbsp; &nbsp; &nbsp; // IE 4<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; document.all[szDivID].style.visibility = iState ? &quot;visible&quot; : &quot;hidden&quot;;<br />
&nbsp; &nbsp; }<br />
}<br />
// --&gt;<br />
&lt;/script&gt;<br />
&lt;body&gt;<br />
&lt;div id=&quot;positioned-element25&quot;&gt;<br />
&lt;a href=&quot;#&quot; onClick=&quot;toggleBox('login',1);&quot;&gt;Login&lt;/a&gt;&lt;/div&gt;<br />
&nbsp; &nbsp; &lt;div id=&quot;login&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;?php<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; include ('mailer.php');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ?&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
...</pre><br />
I can't see the difference, but the top one works and not the bottom. Pointers please?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>AliHurworth</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233243.html</guid>
		</item>
		<item>
			<title>Iframe src to change the src of another Iframe</title>
			<link>http://www.daniweb.com/forums/thread233228.html</link>
			<pubDate>Sun, 25 Oct 2009 19:57:25 GMT</pubDate>
			<description><![CDATA[Getting to the poiint; I have a 'index.html' document that creates 3 iframes, each within a row of a 1 column, 3 row table. So I have a top (frame1), middle,(frame2) and bottom(frame3). 
 
Frame1 src="header.html" is a descriptive banner. 
 
Frame2 src="Start.html" is where the real application...]]></description>
			<content:encoded><![CDATA[<div>Getting to the poiint; I have a 'index.html' document that creates 3 iframes, each within a row of a 1 column, 3 row table. So I have a top (frame1), middle,(frame2) and bottom(frame3).<br />
<br />
Frame1 src=&quot;header.html&quot; is a descriptive banner.<br />
<br />
Frame2 src=&quot;Start.html&quot; is where the real application does all the work.<br />
<br />
Frame3 src=&quot;footer.html&quot; is a footer, that may contain 1 or more images or small buttons.<br />
<br />
I will include the code for index.html at the end:<br />
<br />
What I can't seem to do is have &quot;start.html&quot; change the content or src of frame1, recall start.html is the src of frame2. When a button within a form within start.html is pressed (onclick), a cgi (c program) outputs new html into frame2, a mainmenu of buttons. Now frame2 contains a list of buttons, and I want frame1 to contain text &quot;Main Menu&quot;. Likewise, in the mainmenu, when the settings button is pressed a cgi program will output the settings HTML to frame2, and I want frame1 to contain the text &quot;Settings&quot;.<br />
<br />
Sure, the cgi program could change/re-write the contents of &quot;header.html&quot;, but whats the best method, and then, how to reload the iframe, or change it's src. <br />
<br />
frame2 needs to modify frame1 and later frame3.<br />
<br />
Thanks in advance,<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;test run&lt;/title&gt;<br />
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;stdtheme.css&quot; /&gt;<br />
&lt;/head&gt;<br />
&lt;center&gt;<br />
&lt;body&gt;<br />
&lt;br&gt;<br />
<br />
&lt;table border=&quot;0&quot; class=&quot;maintable&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;<br />
&lt;tr&gt;<br />
&lt;td align=&quot;top&quot;&gt;<br />
&lt;iframe id=&quot;frame1&quot; name=&quot;frame1&quot; class=&quot;result_output&quot; width=&quot;115%&quot; height=&quot;27px&quot; frameborder=&quot;0&quot;&nbsp; scrolling=&quot;no&quot; name=&quot;head&quot;<br />
src=&quot;header.html&quot;&gt;&lt;/iframe&gt;<br />
&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td valign=&quot;center&quot;&gt;<br />
&lt;iframe id=&quot;frame2&quot; class=&quot;result_output&quot; width=&quot;115%&quot; height=&quot;630px&quot; frameborder=&quot;0&quot;&nbsp; scrolling=&quot;yes&quot; name=&quot;view&quot;<br />
&nbsp;src=&quot;startup.html&quot;&gt;&lt;/iframe&gt;<br />
&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td align=&quot;bottom&quot;&gt;<br />
&lt;iframe id=&quot;frame3&quot; class=&quot;result_output&quot; width=&quot;115%&quot; height=&quot;27px&quot; frameborder=&quot;0&quot;&nbsp; scrolling=&quot;no&quot; name=&quot;foot&quot;<br />
src=&quot;footer.html&quot;&gt;&lt;/iframe&gt;<br />
&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td align=&quot;left&quot; class=&quot;bottomtext&quot;&gt;<br />
bottom line text<br />
&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;/center&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>3000MAN</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233228.html</guid>
		</item>
		<item>
			<title>mediaplayer fullscreen not working</title>
			<link>http://www.daniweb.com/forums/thread233212.html</link>
			<pubDate>Sun, 25 Oct 2009 17:52:50 GMT</pubDate>
			<description><![CDATA[Hello. 
i use this script to my mediaplayer on my website. 
but the fullscreen button is not working. 
can anyone come with anything there can help? 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>Hello.<br />
i use this script to my mediaplayer on my website.<br />
but the fullscreen button is not working.<br />
can anyone come with anything there can help?<br />
 <pre style="margin:20px; line-height:13px">INPUT TYPE=&quot;BUTTON&quot; VALUE=&quot;Play&quot; OnClick=&quot;Player.URL='my\music\song.mp3'&quot;&gt;<br />
&lt;INPUT TYPE=&quot;BUTTON&quot; VALUE=&quot;Stop&quot; onclick=&quot;Player.controls.stop()&quot;&gt;<br />
&lt;INPUT TYPE=&quot;BUTTON&quot; VALUE=&quot;Pause&quot; onclick=&quot;Player.controls.pause()&quot;&gt;<br />
&lt;INPUT TYPE=&quot;BUTTON&quot; VALUE=&quot;Full Screen&quot; onclick=&quot;if(Player.playState == 3) Player.fullScreen = 'true'&quot;&gt;<br />
&lt;p&gt;&lt;/p&gt;<br />
&lt;script type=&quot;text/javascript&quot;&gt;<br />
<br />
if(-1 != navigator.userAgent.indexOf(&quot;MSIE&quot;))<br />
<br />
{<br />
<br />
document.write('&lt;OBJECT id=&quot;Player&quot;');<br />
<br />
document.write(' classid=&quot;clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6&quot;');<br />
<br />
document.write(' width=300 height=200&gt;&lt;/OBJECT&gt;');<br />
<br />
}<br />
<br />
else if(-1 != navigator.userAgent.indexOf(&quot;Firefox&quot;))<br />
<br />
{<br />
<br />
document.write('&lt;OBJECT id=&quot;Player&quot;');<br />
<br />
document.write(' type=&quot;application/x-ms-wmp&quot;');<br />
<br />
document.write(' width=300 height=200&gt;&lt;/OBJECT&gt;');<br />
<br />
}<br />
<br />
&lt;/script&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>digtokiller</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233212.html</guid>
		</item>
		<item>
			<title>JS jump menu location indexing on search engines</title>
			<link>http://www.daniweb.com/forums/thread233014.html</link>
			<pubDate>Sat, 24 Oct 2009 21:39:29 GMT</pubDate>
			<description><![CDATA[Hi all, 
 
I'm creating different pages on a website for each branch in the country for a business. The way the user gets to their branch is through a dreamweaver generated jump menu.  
 
My question is: Will search engine robots crawl the pages that are linked via the jump menu? 
 
So for example...]]></description>
			<content:encoded><![CDATA[<div>Hi all,<br />
<br />
I'm creating different pages on a website for each branch in the country for a business. The way the user gets to their branch is through a dreamweaver generated jump menu. <br />
<br />
My question is: Will search engine robots crawl the pages that are linked via the jump menu?<br />
<br />
So for example the page for the London branch can only be navigated to via the jump menu (or typing in the url in the address bar). Will a search engine index this page?<br />
<br />
The jump menu script is below:<br />
 <pre style="margin:20px; line-height:13px">&lt;script type=&quot;text/javascript&quot;&gt;<br />
&lt;!--<br />
function MM_jumpMenuGo(objId,targ,restore){ //v9.0<br />
&nbsp; var selObj = null;&nbsp; with (document) { <br />
&nbsp; if (getElementById) selObj = getElementById(objId);<br />
&nbsp; if (selObj) eval(targ+&quot;.location='&quot;+selObj.options[selObj.selectedIndex].value+&quot;'&quot;);<br />
&nbsp; if (restore) selObj.selectedIndex=0; }<br />
}<br />
//--&gt;<br />
&lt;/script&gt;<br />
<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;form id=&quot;form&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;select name=&quot;country&quot; id=&quot;country&quot; onchange=&quot;MM_jumpMenuGo('country','parent',0)&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;&quot;&gt;Choose&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;&quot;&gt;======&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;england&quot;&gt;England&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;scotland&quot;&gt;Scotland&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;wales&quot;&gt;Wales&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;northernireland&quot;&gt;Northern Ireland&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/select&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;button&quot; name=&quot;go_button&quot; id= &quot;go_button&quot; value=&quot;Go&quot; onclick=&quot;MM_jumpMenuGo('country','parent',0)&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/form&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>MaxMumford</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233014.html</guid>
		</item>
		<item>
			<title>Is it possible detect browser process termination?</title>
			<link>http://www.daniweb.com/forums/thread232931.html</link>
			<pubDate>Sat, 24 Oct 2009 14:14:28 GMT</pubDate>
			<description><![CDATA[I am a newbee to JavaScript was was just fiddling around with events for a browser... 
 
Is it possible to detect the browser process termination done through the *Task Manager* in windows. 
 
*Process:* 
1. Goto Task Manager 
2. Right click on the browser process e.g. iexplorer.exe 
3. Select "end...]]></description>
			<content:encoded><![CDATA[<div>I am a newbee to JavaScript was was just fiddling around with events for a browser...<br />
<br />
Is it possible to detect the browser process termination done through the <span style="font-weight:bold">Task Manager</span> in windows.<br />
<br />
<span style="font-weight:bold">Process:</span><br />
1. Goto Task Manager<br />
2. Right click on the browser process e.g. iexplorer.exe<br />
3. Select &quot;end process&quot; to terminate the process<br />
<br />
JavaScript can detect the window close by using body onunload event. On the similar bases, is it possible to detect the process termination event using JavaScript??<br />
<br />
I tried a simple example using body onunload, but it failed to run the onunload event during the browser process termination. And i am of the opinion that this is not possible as all using JavaScript since terminating a process is a system / OS level task and is not related to browser events.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>nilesh.shinde</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread232931.html</guid>
		</item>
		<item>
			<title>File upload to load image</title>
			<link>http://www.daniweb.com/forums/thread232808.html</link>
			<pubDate>Sat, 24 Oct 2009 05:05:15 GMT</pubDate>
			<description><![CDATA[Hi, 
I am using html to upload image from computer in the <img src> tag. 
 
i have <input type=file>which browse for file then a button to load image. 
I am not able to load image. 
 
<input type=file><input type='button' value='LOAD'> 
<br> 
<img src> 
Please mail me at <EMAIL SNIPPED>]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
I am using html to upload image from computer in the &lt;img src&gt; tag.<br />
<br />
i have &lt;input type=file&gt;which browse for file then a button to load image.<br />
I am not able to load image.<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;input type=file&gt;&lt;input type='button' value='LOAD'&gt;<br />
&lt;br&gt;<br />
&lt;img src&gt;</pre><br />
Please mail me at &lt;EMAIL SNIPPED&gt;</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>sonu_gaurav1986</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread232808.html</guid>
		</item>
		<item>
			<title>google Search results in your site, open new window...</title>
			<link>http://www.daniweb.com/forums/thread232635.html</link>
			<pubDate>Fri, 23 Oct 2009 15:00:19 GMT</pubDate>
			<description>I am  newbee to javascript 
 
wanted help! 
I have google, yahoo, bing results to open in a frame without my domain name changing. The results for the query is shown in iframe. The results can be anything any domain. I am trying to see if javascript between those open and close head can do any...</description>
			<content:encoded><![CDATA[<div>I am  newbee to javascript<br />
<br />
wanted help!<br />
I have google, yahoo, bing results to open in a frame without my domain name changing. The results for the query is shown in iframe. The results can be anything any domain. I am trying to see if javascript between those open and close head can do any magic.<br />
<br />
Click on any results to query on iframe it should open in new window.<br />
<br />
Again the results can be any domain<br />
<br />
Here is the sample of the code<br />
<br />
 <pre style="margin:20px; line-height:13px">&nbsp; &lt;html&gt;<br />
&lt;head&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;form name=&quot;jksearch&quot; action=&quot;http://www.google.com/search&quot; method=&quot;get&quot; onSubmit=&quot;jksitesearch(this)&quot; target=&quot;iFrame2&quot;&gt;<br />
<br />
&lt;b&gt;&lt;p&gt;Search Resumes in Google and Bing&lt;/p&gt; &lt;/b&gt;&lt;br /&gt;<br />
&lt;input id=&quot;hiddenquery&quot; type=&quot;hidden&quot; name=&quot;q&quot; /&gt;<br />
&lt;input name=&quot;qfront&quot; type=&quot;text&quot; style=&quot;width: 200px&quot; value=&quot;Search Resumes&quot; /&gt;<br />
&lt;br /&gt;<br />
&lt;div style=&quot;font: bold 11px Verdana;&quot;&gt;Google:&lt;input name=&quot;se&quot; type=&quot;radio&quot; checked&gt;&nbsp; Bing:&lt;input name=&quot;se&quot; type=&quot;radio&quot;&gt;<br />
&lt;br/&gt;<br />
&lt;br/&gt;<br />
&nbsp; <br />
<br />
&nbsp; &lt;input type=&quot;submit&quot; value=&quot;Search&quot; /&gt;<br />
&lt;/form&gt;<br />
<br />
&lt;br/&gt;<br />
&lt;br/&gt;<br />
&lt;br/&gt;<br />
<br />
&lt;?php<br />
echo '&lt;input type=&quot;button&quot; value=&quot;Back To Results&quot; onClick=&quot;history.go(-1);&quot;&gt;';<br />
echo &quot;&lt;br/&gt;&quot;;<br />
echo &quot;&lt;br/&gt;&quot;;<br />
echo '&lt;input type=&quot;button&quot; value=&quot;Previous Resume&quot; onClick=&quot;history.go(1);&quot;&gt;';<br />
echo &quot;&lt;br/&gt;&quot;;<br />
?&gt;<br />
<br />
<br />
&lt;script type=&quot;text/javascript&quot;&gt;<br />
<br />
var eliminate2=&quot;-jobs -apply -sample&quot;<br />
var type=&quot;(resume OR cv OR vitae)&quot; <br />
var file4=&quot;(filetype:pdf OR filetype:doc OR filetype:rtf)&quot;<br />
var con2=&quot;(phone OR email OR cell OR home OR mobile)&quot; <br />
<br />
<br />
<br />
var searchaction=[ //form action for the 2 search engines<br />
&quot;http://www.google.com/search&quot;,<br />
&quot;http://www.bing.com/search?q=&quot;,<br />
]<br />
<br />
var queryfieldname=[&quot;q&quot;,&quot;q&quot;] //name of hidden query form for the 3 search engines<br />
<br />
function switchaction(cur, index){<br />
cur.form.action=searchaction[index]<br />
document.getElementById(&quot;hiddenquery&quot;).name=queryfieldname[index]<br />
}<br />
<br />
function jksitesearch(curobj){<br />
for (i=0; i&lt; document.jksearch.se.length; i++){ //loop through radio to see which is checked<br />
if (document.jksearch.se[i].checked==true)<br />
switchaction(document.jksearch.se[i], i)<br />
}<br />
document.getElementById(&quot;hiddenquery&quot;).value=file4+&quot; &quot;+con2+&quot; &quot;+type+&quot; &quot;+curobj.qfront.value+&quot; &quot;+eliminate2<br />
}<br />
<br />
<br />
&lt;/script&gt;<br />
<br />
<br />
<br />
&nbsp;<br />
&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;  &lt;div id=&quot;iFrame2&quot; style=&quot;position:absolute; left:392px; top:311px; z-index:1; width: 646px;&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&lt;iframe name=&quot;iFrame2&quot; width=&quot;600&quot; height=&quot;650&quot; src=&quot;i_f_display.php&quot; scrolling=&quot;yes&quot; frameborder=&quot;1&quot;&gt;&lt;/iframe&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>j_limboo</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread232635.html</guid>
		</item>
		<item>
			<title>How can i build a hyperlink to bypass this js form</title>
			<link>http://www.daniweb.com/forums/thread232611.html</link>
			<pubDate>Fri, 23 Oct 2009 13:43:11 GMT</pubDate>
			<description><![CDATA[I'm trying to bypass a script if possible to use only a hyperlink that i can build from a database to pull up a web page. 
 
What I have is addresses that I need to open in this website: http://gisims2.miamidade.gov/myhome/propmap.asp 
You'll notice on the left hand side of the page it has a Search...]]></description>
			<content:encoded><![CDATA[<div>I'm trying to bypass a script if possible to use only a hyperlink that i can build from a database to pull up a web page.<br />
<br />
What I have is addresses that I need to open in this website: <a rel="nofollow" class="t" href="http://gisims2.miamidade.gov/myhome/propmap.asp" target="_blank">http://gisims2.miamidade.gov/myhome/propmap.asp</a><br />
You'll notice on the left hand side of the page it has a Search By: form. I want to search by address, but i want to do it<br />
but just pulling the data out of our database which is a mirror of theirs but we have mined the data out of it and organized it<br />
better.<br />
I want the output to take me to this page which is listed by folio number.<br />
<a rel="nofollow" class="t" href="http://gisims2.miamidade.gov/myhome/propmap.asp?app=propmap&amp;folio=0131350191650" target="_blank">http://gisims2.miamidade.gov/myhome/...=0131350191650</a><br />
<br />
 <pre style="margin:20px; line-height:13px">http://gisims2.miamidade.gov/myhome/propmap.asp?app=propmap&amp;folio=0131350191650</pre><br />
1170 NW 7 AVE &lt;- this is the address information that was put into the search form to get that link and above folio.<br />
<br />
Is there anyway to bypass the form.<br />
<br />
For instance that same address i use to pull up a kml file that runs in google earth looks like this<br />
<br />
<a rel="nofollow" class="t" href="http://maps.google.com/maps?q=1170+nw+7th+ave+miami+fl&amp;output=kml" target="_blank">http://maps.google.com/maps?q=1170+n...+fl&amp;output=kml</a><br />
 <pre style="margin:20px; line-height:13px">http://maps.google.com/maps?q=1170+nw+7th+ave+miami+fl&amp;output=kml</pre>If i could put together a link similar to that for the miamidade.gov site that would go through all the functions<br />
of the script without me having to go to that form each time it would be awesome.<br />
<br />
It took a while playing around with their website to get that link so it would show the map and the information about the property at the same time<br />
<br />
<br />
Thanks in advance. Hope you can help</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>Lightninghawk</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread232611.html</guid>
		</item>
		<item>
			<title>Dynamic select boxes not setting values on page load in safari</title>
			<link>http://www.daniweb.com/forums/thread232562.html</link>
			<pubDate>Fri, 23 Oct 2009 10:32:34 GMT</pubDate>
			<description><![CDATA[Hey everyone, 
 
The problem I'm having is regarding trying to persist a users search selection.  
 
For example a user searches (for holidays) on the homepage. I would like the search box which is displayed on every page to hold the values of the previous search which are persisted in a session...]]></description>
			<content:encoded><![CDATA[<div>Hey everyone,<br />
<br />
The problem I'm having is regarding trying to persist a users search selection. <br />
<br />
For example a user searches (for holidays) on the homepage. I would like the search box which is displayed on every page to hold the values of the previous search which are persisted in a session array.<br />
<br />
I'm using the script from <a rel="nofollow" class="t" href="http://www.javascripttoolbox.com/lib/dynamicoptionlist/" target="_blank">http://www.javascripttoolbox.com/lib/dynamicoptionlist/</a> to help me do the dependent select boxes and everything is working apart from when I try and use it to set the values of the search box at the bottom of the page if there has been a previous search.<br />
<br />
Here's a snippet of code to help get across what I mean.<br />
<br />
 <pre style="margin:20px; line-height:13px"><br />
&lt;?php<br />
if( isset($_SESSION&#91;'previousUserSearch'&#93;&#91;'dynamic'&#93;) &amp;&amp; !isset($_GET&#91;'load'&#93;) ){<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo '&lt;script&gt;' . &quot;\n&quot;;&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; //Below deals with persisting the year&gt;month&gt;day <br />
&nbsp; &nbsp; &nbsp; &nbsp; echo 'document.getElementById(&quot;departure_year&quot;).value = &quot;'.$_SESSION&#91;'previousUserSearch'&#93;&#91;'dynamic'&#93;&#91;'departureyear'&#93;.'&quot;;' . &quot;\n&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo 'yearMonthDay.forField(&quot;departuremonth&quot;).setValues(&quot;'.$_SESSION&#91;'previousUserSearch'&#93;&#91;'dynamic'&#93;&#91;'departuremonth'&#93;.'&quot;);' . &quot;\n&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo 'yearMonthDay.forField(&quot;departureday&quot;).setValues(&quot;'.$_SESSION&#91;'previousUserSearch'&#93;&#91;'dynamic'&#93;&#91;'departureday'&#93;.'&quot;);' . &quot;\n&quot;;&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; echo 'alert(document.getElementById(&quot;departure_year&quot;).value);';<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; //Deals with persisting the Country Resort&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; echo 'document.getElementById(&quot;to&quot;).value = &quot;'.$_SESSION&#91;'previousUserSearch'&#93;&#91;'dynamic'&#93;&#91;'country'&#93;.'&quot;;' . &quot;\n&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo 'countryResort.forField(&quot;resorts&quot;).setValues(&quot;'.$_SESSION&#91;'previousUserSearch'&#93;&#91;'dynamic'&#93;&#91;'resorts'&#93;.'&quot;);' . &quot;\n&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; //deals with persisting the rooms required<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo 'document.getElementById(&quot;rooms&quot;).value = &quot;'.$_SESSION&#91;'previousUserSearch'&#93;&#91;'dynamic'&#93;&#91;'rooms'&#93;.'&quot;;' . &quot;\n&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; //deals wiith persisting the duration<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo 'document.getElementById(&quot;duration&quot;).value = &quot;'.$_SESSION&#91;'previousUserSearch'&#93;&#91;'dynamic'&#93;&#91;'duration'&#93;.'&quot;;' . &quot;\n&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; //deals with persisting the party info<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo 'document.getElementById(&quot;adults&quot;).value = &quot;'.$_SESSION&#91;'previousUserSearch'&#93;&#91;'dynamic'&#93;&#91;'adults'&#93;.'&quot;;' . &quot;\n&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo 'document.getElementById(&quot;children&quot;).value = &quot;'.$_SESSION&#91;'previousUserSearch'&#93;&#91;'dynamic'&#93;&#91;'children'&#93;.'&quot;;' . &quot;\n&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo 'addChildrenAgesDynamic();';<br />
&nbsp; &nbsp; &nbsp; &nbsp; if( $_SESSION&#91;'previousUserSearch'&#93;&#91;'dynamic'&#93;&#91;'children'&#93; != 0 ){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $i = 1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while( $i &lt;= $_SESSION&#91;'previousUserSearch'&#93;&#91;'dynamic'&#93;&#91;'children'&#93; ){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo 'document.getElementById(&quot;childAge_'.$i.'&quot;).value = &quot;'.$_SESSION&#91;'previousUserSearch'&#93;&#91;'dynamic'&#93;&#91;'childAge_'.$i.''&#93;.'&quot;;' . &quot;\n&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $i++;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo 'document.getElementById(&quot;infants&quot;).value = &quot;'.$_SESSION&#91;'previousUserSearch'&#93;&#91;'dynamic'&#93;&#91;'infants'&#93;.'&quot;;' . &quot;\n&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; //deals with persisting the accommodation options<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo 'document.getElementById(&quot;board_basis&quot;).value = &quot;'.$_SESSION&#91;'previousUserSearch'&#93;&#91;'dynamic'&#93;&#91;'board_basis'&#93;.'&quot;;' . &quot;\n&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo 'document.getElementById(&quot;hotel_rating&quot;).value = &quot;'.$_SESSION&#91;'previousUserSearch'&#93;&#91;'dynamic'&#93;&#91;'hotel_rating'&#93;.'&quot;;' . &quot;\n&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo '&lt;/script&gt;' . &quot;\n&quot;;<br />
<br />
}</pre><br />
This works in IE and FF but not in Safari and Chrome or I assume any webkit based browser.<br />
<br />
Can anyone offer any help on this. I've tried researching and playing about with various things but nothing works.<br />
<br />
I can say this if I alert() out the departure year after it's been set it does come up as 2010 (or whatever) but then after the page loads it is still set as 'year'<br />
<br />
<br />
Thanks for any help in advance,<br />
<br />
Richard</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>rickya100</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread232562.html</guid>
		</item>
		<item>
			<title>AJAX/PHP to open a certian window according to the variable received.</title>
			<link>http://www.daniweb.com/forums/thread232538.html</link>
			<pubDate>Fri, 23 Oct 2009 08:13:19 GMT</pubDate>
			<description><![CDATA[Hi guys, 
I'm trying to write code where an ajax function, at a specified interval, calls php script to query a table and open a certian window according to the response(variable) received. After that, the ajax function will continue to call the same php script but will open another window only if...]]></description>
			<content:encoded><![CDATA[<div>Hi guys,<br />
I'm trying to write code where an ajax function, at a specified interval, calls php script to query a table and open a certian window according to the response(variable) received. After that, the ajax function will continue to call the same php script but will open another window only if the response or variable is different from the previous request(s). What kind of method should I use to achieve this?</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/thread232538.html</guid>
		</item>
		<item>
			<title>onclick problem in IE, working in FF/other</title>
			<link>http://www.daniweb.com/forums/thread232537.html</link>
			<pubDate>Fri, 23 Oct 2009 08:12:46 GMT</pubDate>
			<description><![CDATA[Hello!  I am trying to make an image gallery navigation work in IE (works in FF2+, safari, not working in opera 9, probably other browsers) but my severely limited Javascript knowledge is really holding me back! 
 
I am using JonDesign's SmoothGallery (camelback heaven, there), but the problem...]]></description>
			<content:encoded><![CDATA[<div>Hello!  I am trying to make an image gallery navigation work in IE (works in FF2+, safari, not working in opera 9, probably other browsers) but my severely limited Javascript knowledge is really holding me back!<br />
<br />
I am using JonDesign's SmoothGallery (camelback heaven, there), but the problem almost certainly lies in my rouge implementation of onclicks.  The website in question is <a rel="nofollow" class="t" href="http://honorrollmusic.com" target="_blank">http://honorrollmusic.com</a>, but here is the code that is occasionally functioning (ignore the class and mouseovers):<br />
 <pre style="margin:20px; line-height:13px">&lt;img src=&quot;images/arrowL.gif&quot; class=&quot;studioarrowL&quot; onmouseover=&quot;this.src='images/arrowLover.gif';&quot; onmouseout=&quot;this.src='images/arrowL.gif';&quot; onclick=&quot;myGallery.prevItem();&quot;/&gt;</pre>I've also tried, to no avail:<br />
 <pre style="margin:20px; line-height:13px">&lt;a onclick=&quot;myGallery.prevItem();&quot;&gt;&lt;img src=&quot;images/arrowL.gif&quot; class=&quot;studioarrowL&quot; onmouseover=&quot;this.src='images/arrowLover.gif';&quot; onmouseout=&quot;this.src='images/arrowL.gif';&quot; /&gt;&lt;/a&gt;</pre><br />
There is also a thumbnail gallery that calls individual images, as follows, though I'm sure the problem is the same as the problem with the above code:<br />
 <pre style="margin:20px; line-height:13px">&lt;img class=&quot;thumbnails&quot; src=&quot;HRimages/StudioA-surroundthumb.jpg&quot; onclick=&quot;myGallery.goTo(0);&quot; /&gt;</pre><br />
Lastly, here is the script:<br />
 <pre style="margin:20px; line-height:13px">&lt;script type=&quot;text/javascript&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function startGallery() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; myGallery = new gallery($('myGallery'), {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; timed: false,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; showCarousel: false,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; showInfopane: false,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; showArrows:false,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; slideInfoZoneSlide: false,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; delay: 3500<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; window.addEvent('domready',startGallery);<br />
&lt;/script&gt;</pre><br />
In any case, this seems to work in about half the browsers I've tried, which makes me think that maybe my code is pretty close but I'm off a bit with my syntax or something.  The linked javascript file is at <a rel="nofollow" class="t" href="http://honorrollmusic.com/scripts/gallery.js" target="_blank">http://honorrollmusic.com/scripts/gallery.js</a> and the original gallery is at <a rel="nofollow" class="t" href="http://smoothgallery.jondesign.net/" target="_blank">http://smoothgallery.jondesign.net/</a>, but I'm hoping the answer is glaringly obvious.<br />
<br />
Thanks in advance!<br />
P.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>miamizorz</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread232537.html</guid>
		</item>
		<item>
			<title>KEEP GETTING Parse error: syntax error, unexpected T_STRING in /home/a2460084/public_</title>
			<link>http://www.daniweb.com/forums/thread232477.html</link>
			<pubDate>Fri, 23 Oct 2009 01:59:41 GMT</pubDate>
			<description><![CDATA[IM NEW AT THIS AND I'M WORKING ON MY FIRST WEBSITE. I USED iWED AND I DON'T UNDERSTAND WHY IT WON'T WORK. WHENEVER I TRY TO OPEN IT IT SAYS: Parse error: syntax error, unexpected T_STRING in /home/a2460084/public_html/beto/index.html on line 1 
 
 
 
<?xml version="1.0" encoding="UTF-8"?>...]]></description>
			<content:encoded><![CDATA[<div>IM NEW AT THIS AND I'M WORKING ON MY FIRST WEBSITE. I USED iWED AND I DON'T UNDERSTAND WHY IT WON'T WORK. WHENEVER I TRY TO OPEN IT IT SAYS: Parse error: syntax error, unexpected T_STRING in /home/a2460084/public_html/beto/index.html on line 1<br />
<br />
<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br />
&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 />
<br />
<br />
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;en&quot;&gt;<br />
&nbsp; &lt;head&gt;&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot; /&gt;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &lt;meta name=&quot;Generator&quot; content=&quot;iWeb 3.0.1&quot; /&gt;<br />
&nbsp; &nbsp; &lt;meta name=&quot;iWeb-Build&quot; content=&quot;local-build-20091022&quot; /&gt;<br />
&nbsp; &nbsp; &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=EmulateIE7&quot; /&gt;<br />
&nbsp; &nbsp; &lt;meta name=&quot;viewport&quot; content=&quot;width=700&quot; /&gt;<br />
&nbsp; &nbsp; &lt;title&gt;Missing You&lt;/title&gt;<br />
&nbsp; &nbsp; &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; media=&quot;screen,print&quot; href=&quot;Missing_You_files/Missing_You.css&quot; /&gt;<br />
&nbsp; &nbsp; &lt;!--&#91;if lt IE 8&#93;&gt;&lt;link rel='stylesheet' type='text/css' media='screen,print' href='Missing_You_files/Missing_YouIE.css'/&gt;&lt;!&#91;endif&#93;--&gt;<br />
&nbsp; &nbsp; &lt;!--&#91;if gte IE 8&#93;&gt;&lt;link rel='stylesheet' type='text/css' media='screen,print' href='Media/IE8.css'/&gt;&lt;!&#91;endif&#93;--&gt;<br />
&nbsp; &nbsp; &lt;style type=&quot;text/css&quot;&gt;<br />
/*&lt;!&#91;CDATA&#91;*/<br />
&nbsp; &nbsp; &nbsp; &nbsp; @import &quot;Scripts/Widgets/HTMLRegion/Paste.css&quot;;<br />
/*&#93;&#93;&gt;*/<br />
&lt;/style&gt;<br />
&nbsp; &nbsp; &lt;script type=&quot;text/javascript&quot; src=&quot;Scripts/iWebSite.js&quot;&gt;&lt;/script&gt;<br />
&nbsp; &nbsp; &lt;script type=&quot;text/javascript&quot; src=&quot;Scripts/Widgets/SharedResources/WidgetCommon.js&quot;&gt;&lt;/script&gt;<br />
&nbsp; &nbsp; &lt;script type=&quot;text/javascript&quot; src=&quot;Scripts/Widgets/Navbar/navbar.js&quot;&gt;&lt;/script&gt;<br />
&nbsp; &nbsp; &lt;script type=&quot;text/javascript&quot; src=&quot;Scripts/iWebImage.js&quot;&gt;&lt;/script&gt;<br />
&nbsp; &nbsp; &lt;script type=&quot;text/javascript&quot; src=&quot;Scripts/iWebMediaGrid.js&quot;&gt;&lt;/script&gt;<br />
&nbsp; &nbsp; &lt;script type=&quot;text/javascript&quot; src=&quot;Scripts/Widgets/HTMLRegion/Paste.js&quot;&gt;&lt;/script&gt;<br />
&nbsp; &nbsp; &lt;script type=&quot;text/javascript&quot; src=&quot;Missing_You_files/Missing_You.js&quot;&gt;&lt;/script&gt;<br />
&nbsp; &lt;/head&gt;<br />
&nbsp; &lt;body style=&quot;background: rgb(0, 0, 0); margin: 0pt; &quot; onload=&quot;onPageLoad();&quot; onunload=&quot;onPageUnload();&quot;&gt;<br />
&nbsp; &nbsp; &lt;div style=&quot;text-align: center; &quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;div style=&quot;margin-bottom: 0px; margin-left: auto; margin-right: auto; margin-top: 0px; overflow: hidden; position: relative; word-wrap: break-word;&nbsp; background: rgb(0, 0, 0); text-align: left; width: 700px; &quot; id=&quot;body_content&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div style=&quot;margin-left: 0px; position: relative; width: 700px; z-index: 0; &quot; id=&quot;nav_layer&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div style=&quot;height: 0px; line-height: 0px; &quot; class=&quot;bumper&quot;&gt; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;com-apple-iweb-widget-navbar flowDefining&quot; id=&quot;widget0&quot; style=&quot;margin-left: 35px; margin-top: 0px; opacity: 1.00; position: relative; width: 630px; z-index: 1; &quot;&gt;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&quot;widget0-navbar&quot; class=&quot;navbar&quot;&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&quot;widget0-bg&quot; class=&quot;navbar-bg&quot;&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;ul id=&quot;widget0-navbar-list&quot; class=&quot;navbar-list&quot;&gt;<br />
&nbsp;&lt;li&gt;&lt;/li&gt; <br />
&lt;/ul&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; <br />
&lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; <br />
&lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;script type=&quot;text/javascript&quot;&gt;&lt;!--//--&gt;&lt;!&#91;CDATA&#91;//&gt;&lt;!--<br />
new NavBar('widget0', 'Scripts/Widgets/Navbar', 'Scripts/Widgets/SharedResources', '.', {&quot;current-page-GUID&quot;: &quot;39E4CABD-105C-4012-BE22-46B54350B51B&quot;, &quot;path-to-root&quot;: &quot;&quot;, &quot;isCollectionPage&quot;: &quot;NO&quot;, &quot;navbar-css&quot;: &quot;.navbar {\n\tfont-family: Arial, sans-serif;\n\tfont-size: 1em;\n\tcolor: #A1A1A1;\n\tmargin: 9px 0px 6px 0px;\n\tline-height: 30px;\n}\n\n.navbar-bg {\n\ttext-align: center;\n}\n\n.navbar-bg ul {\n\tlist-style: none;\n\tmargin: 0px;\n\tpadding: 0px;\n}\n\n\nli {\n\tlist-style-type: none;\n\tdisplay: inline;\n\tpadding: 0px 10px 0px 10px;\n}\n\n\nli a {\n\ttext-decoration: none;\n\tcolor: #A1A1A1;\n}\n\nli a:visited {\n\ttext-decoration: none;\n\tcolor: #A1A1A1;\n}\n\n\nli a:hover\n{\n\ttext-decoration: none;\n \tcolor: #eee;\n}\n\n\nli.current-page a\n{\n\ttext-decoration: none;\n\t color: #fff;\n\tfont-weight: bold;\n\n}&quot;});<br />
//--&gt;&lt;!&#93;&#93;&gt;&lt;/script&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div style=&quot;clear: both; height: 0px; line-height: 0px; &quot; class=&quot;spacer&quot;&gt; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div style=&quot;height: 162px; margin-left: 0px; position: relative; width: 700px; z-index: 10; &quot; id=&quot;header_layer&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div style=&quot;height: 0px; line-height: 0px; &quot; class=&quot;bumper&quot;&gt; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div style=&quot;height: 1px; width: 630px;&nbsp; height: 1px; left: 35px; position: absolute; top: 3px; width: 630px; z-index: 1; &quot; class=&quot;tinyText&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div style=&quot;position: relative; width: 630px; &quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;img src=&quot;Missing_You_files/shapeimage_1.jpg&quot; alt=&quot;&quot; style=&quot;height: 1px; left: 0px; position: absolute; top: 0px; width: 630px; &quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&quot;id1&quot; style=&quot;height: 50px; left: 35px; position: absolute; top: 23px; width: 630px; z-index: 1; &quot; class=&quot;style_SkipStroke shape-with-text&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;text-content style_External_630_50&quot; style=&quot;padding: 0px; &quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;style&quot;&gt;&lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div style=&quot;height: 267px; width: 644px;&nbsp; height: 267px; left: 23px; position: absolute; top: -106px; width: 644px; z-index: 1; &quot; class=&quot;tinyText&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div style=&quot;position: relative; width: 644px; &quot;&gt;&lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div style=&quot;margin-left: 0px; position: relative; width: 700px; z-index: 5; &quot; id=&quot;body_layer&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div style=&quot;height: 0px; line-height: 0px; &quot; class=&quot;bumper&quot;&gt; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div style=&quot;height: 288px; width: 346px;&nbsp; height: 288px; left: 334px; position: absolute; top: -102px; width: 345px; z-index: 1; &quot; class=&quot;tinyText&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div style=&quot;position: relative; width: 345px; &quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;img src=&quot;Missing_You_files/shapeimage_2.png&quot; alt=&quot;&quot; style=&quot;height: 288px; left: 0px; position: absolute; top: 0px; width: 346px; &quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div style=&quot;height: 288px; width: 346px;&nbsp; height: 288px; left: 20px; position: absolute; top: -102px; width: 345px; z-index: 1; &quot; class=&quot;tinyText&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div style=&quot;position: relative; width: 345px; &quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;img src=&quot;Missing_You_files/shapeimage_3.png&quot; alt=&quot;&quot; style=&quot;height: 288px; left: 0px; position: absolute; top: 0px; width: 346px; &quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div style=&quot;height: 288px; width: 346px;&nbsp; height: 288px; left: 334px; position: absolute; top: 135px; width: 345px; z-index: 1; &quot; class=&quot;tinyText&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div style=&quot;position: relative; width: 345px; &quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;img src=&quot;Missing_You_files/shapeimage_4.png&quot; alt=&quot;&quot; style=&quot;height: 288px; left: 0px; position: absolute; top: 0px; width: 346px; &quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div style=&quot;height: 288px; width: 346px;&nbsp; height: 288px; left: 20px; position: absolute; top: 135px; width: 345px; z-index: 1; &quot; class=&quot;tinyText&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div style=&quot;position: relative; width: 345px; &quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;img src=&quot;Missing_You_files/shapeimage_5.png&quot; alt=&quot;&quot; style=&quot;height: 288px; left: 0px; position: absolute; top: 0px; width: 346px; &quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;com-apple-iweb-widget-HTMLRegion&quot; id=&quot;widget1&quot; style=&quot;height: 209px; left: 200px; opacity: 1.00; position: absolute; top: 992px; width: 300px; z-index: 1; &quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;script type=&quot;text/javascript&quot;&gt;&lt;!--//--&gt;&lt;!&#91;CDATA&#91;//&gt;&lt;!--<br />
&nbsp; &nbsp; var widget1_htmlMarkupURL = &quot;.//Missing_You_files/widget1_markup.html&quot;;<br />
//--&gt;&lt;!&#93;&#93;&gt;&lt;/script&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&quot;widget1-htmlRegion&quot; class=&quot;html_region_widget&quot;&gt;&lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;script type=&quot;text/javascript&quot;&gt;&lt;!--//--&gt;&lt;!&#91;CDATA&#91;//&gt;&lt;!--<br />
new Paste('widget1', 'Scripts/Widgets/HTMLRegion', 'Scripts/Widgets/SharedResources', '.', {&quot;emptyLook&quot;: false});<br />
//--&gt;&lt;!&#93;&#93;&gt;&lt;/script&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&quot;id2&quot; style=&quot;height: 417px; left: -3px; position: absolute; top: 511px; width: 696px; z-index: 1; &quot; class=&quot;style_SkipStroke_1 shape-with-text&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;text-content graphic_textbox_layout_style_default_External_696_417&quot; style=&quot;padding: 0px; &quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;graphic_textbox_layout_style_default&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p style=&quot;padding-top: 0pt; &quot; class=&quot;paragraph_style&quot;&gt;Beto Roman, &lt;br /&gt;&lt;/p&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p class=&quot;paragraph_style&quot;&gt;&nbsp; &nbsp; &nbsp; &nbsp; I hope you are able to look back at this and remember all the good times we shared. I’m sorry for all the pain I’ve caused you and I hope that these wonderful memories will shine a smile on your face cutie pie. &lt;br /&gt;&lt;/p&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p class=&quot;paragraph_style&quot;&gt;&lt;br /&gt;&lt;/p&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p class=&quot;paragraph_style&quot;&gt;P.S. I miss you.&lt;br /&gt;&lt;/p&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p style=&quot;padding-bottom: 0pt; &quot; class=&quot;paragraph_style&quot;&gt;&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; &nbsp; &nbsp; &nbsp; &lt;/p&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&quot;id3&quot; style=&quot;height: 100px; left: 300px; position: absolute; top: 450px; width: 100px; z-index: 1; &quot; class=&quot;style_SkipStroke_1 shape-with-text&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;text-content graphic_textbox_layout_style_default_External_100_100&quot; style=&quot;padding: 0px; &quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;graphic_textbox_layout_style_default&quot;&gt;&lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div style=&quot;height: 1201px; line-height: 1201px; &quot; class=&quot;spacer&quot;&gt; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div style=&quot;height: 150px; margin-left: 0px; position: relative; width: 700px; z-index: 15; &quot; id=&quot;footer_layer&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div style=&quot;height: 0px; line-height: 0px; &quot; class=&quot;bumper&quot;&gt; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &lt;/div&gt;<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>lcfr1012</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread232477.html</guid>
		</item>
		<item>
			<title>Change form input text using Javascript/Dom</title>
			<link>http://www.daniweb.com/forums/thread232422.html</link>
			<pubDate>Thu, 22 Oct 2009 21:16:27 GMT</pubDate>
			<description>Hi there, I am wanting to find out how to add text to a hidden field in a HTML form. I want to add text from an array, the array holds the information for the caption placeholder for the images. 
 
Basically i have an image viewer which lets you scroll through images and they have a text caption...</description>
			<content:encoded><![CDATA[<div>Hi there, I am wanting to find out how to add text to a hidden field in a HTML form. I want to add text from an array, the array holds the information for the caption placeholder for the images.<br />
<br />
Basically i have an image viewer which lets you scroll through images and they have a text caption below them telling what the images are. When the user clicks an image this brings up the form and hides the imageViewer. I want the caption of the image clicked  to automatically be entered into the hidden field of the form when a user decides to choose a particular photo, so that it sends this to the server script for processing.<br />
<br />
At present i have the function  <pre style="margin:20px; line-height:13px">function insertText()<br />
{<br />
//getElementById('camera').value=getElementById(&quot;captionPlaceHolder&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.getElementById('camera').value = document.getElementById('captionElement').value;<br />
}</pre> i have commented some out to try various things.<br />
<br />
My form input box has an id=&quot;camera&quot; and i was told to do something like this. Give the hidden element an id=&quot;someName&quot;...then in the JS you can change the value of it by the usual way...<br />
getElementById('someName').value=??? where ??? is the name of the camera the user has<br />
<br />
I have been messing about now for hours and just can't get it. I really hope someone can help me out. Im new to this by the way :)<br />
<br />
Thanks again</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>colerainescotty</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread232422.html</guid>
		</item>
		<item>
			<title><![CDATA[What's the difference..?]]></title>
			<link>http://www.daniweb.com/forums/thread232394.html</link>
			<pubDate>Thu, 22 Oct 2009 19:28:27 GMT</pubDate>
			<description><![CDATA[Hi can someone please explain to me what is the difference between writing  
 
onclick="confirmLink()" 
 
and 
 
onclick="return confirmLink()" 
 
I tried both and they did the same thing and I am confused since the lazy fellows from my university have given me old notes in which they randomly...]]></description>
			<content:encoded><![CDATA[<div>Hi can someone please explain to me what is the difference between writing <br />
<br />
onclick=&quot;confirmLink()&quot;<br />
<br />
and<br />
<br />
onclick=&quot;return confirmLink()&quot;<br />
<br />
I tried both and they did the same thing and I am confused since the lazy fellows from my university have given me old notes in which they randomly include the &quot;return&quot; sometimes and sometimes they don't in the various examples.<br />
 <br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;html&gt;<br />
&nbsp; &lt;head&gt;<br />
&nbsp; &nbsp; &lt;title&gt;Handling onClick for links&lt;/title&gt;<br />
&nbsp; &nbsp; &lt;script&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;!--<br />
&nbsp; &nbsp; &nbsp; function confirmLink()<br />
&nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; alert(&quot;This is the Mastering JavaScript and JScript Home Page.&quot;);<br />
&nbsp; &nbsp; &nbsp; return confirm(&quot;Are you sure you want to load this document?&quot;)<br />
&nbsp; &nbsp; &nbsp; } <br />
&nbsp; &nbsp; &nbsp; //--&gt;<br />
&nbsp; &nbsp; &lt;/script&gt;<br />
&nbsp; &lt;/head&gt;<br />
&nbsp; &lt;body&gt;<br />
&nbsp; &lt;h1&gt;Handling onclick for links&lt;/h1&gt;<br />
&nbsp; &lt;p&gt;<br />
&nbsp; &nbsp; &lt;a href=&quot;http://www.jaworks.com/javascript&quot; onclick=&quot;confirmLink()&quot;&gt;Asks you<br />
&nbsp; &nbsp; &nbsp;  to confirm your selection of this link.&lt;/a&gt;<br />
&nbsp; &lt;/p&gt;<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>DARK_BYTE</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread232394.html</guid>
		</item>
		<item>
			<title>Table id</title>
			<link>http://www.daniweb.com/forums/thread232338.html</link>
			<pubDate>Thu, 22 Oct 2009 15:53:11 GMT</pubDate>
			<description><![CDATA[I have a table, and insde the table dynamic inputtextboxes 
 
how can i set the id of textbox  "row" + row number 
 
id of first textboxt row0, second one row1 and so on..]]></description>
			<content:encoded><![CDATA[<div>I have a table, and insde the table dynamic inputtextboxes<br />
<br />
how can i set the id of textbox  &quot;row&quot; + row number<br />
<br />
id of first textboxt row0, second one row1 and so on..</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/thread232338.html</guid>
		</item>
		<item>
			<title>javascript close OTHER window(nott active one)</title>
			<link>http://www.daniweb.com/forums/thread232311.html</link>
			<pubDate>Thu, 22 Oct 2009 14:02:57 GMT</pubDate>
			<description>how do i close a specific window. (not the active one) with javascript. 
the reason im asking is because i have a form submitting to another page AKA TARGET_BLANK. 
but i have it target blank because that page checks if the stuff from the form can be inserted into the database. 
 
BUT IF IT CANT, i...</description>
			<content:encoded><![CDATA[<div>how do i close a specific window. (not the active one) with javascript.<br />
the reason im asking is because i have a form submitting to another page AKA TARGET_BLANK.<br />
but i have it target blank because that page checks if the stuff from the form can be inserted into the database.<br />
<br />
BUT IF IT CANT, i give them a close(the active page) link and it closes the second page(that says oh u didnt fill in a title THE ERROR blah blah blah)<br />
so that the user can fix the first page(the page didnt reload itself or close so the information can stay and not be lost(form inputs, textarea texts etcc)<br />
<br />
but what if the user submits a correct form and it says so on the 2nd page. and then close that page right AND THEN... theres the first page there left un touched.<br />
<br />
thats why im asking how can i get page 2 to close page one. with javascript</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/thread232311.html</guid>
		</item>
		<item>
			<title>Easy as for jQuery GURUS!</title>
			<link>http://www.daniweb.com/forums/thread232234.html</link>
			<pubDate>Thu, 22 Oct 2009 09:15:15 GMT</pubDate>
			<description>Hi guys, I spent the whole day (thats 8 hours straight) trying to get a simple jQuery function to work but failed miserably!!! I very very new to the jQ scene and I know I have a lot of catching up to do! 
Could somebody get this to work for me ??? 
 
All i want is when user clicks is: 
1.the box...</description>
			<content:encoded><![CDATA[<div>Hi guys, I spent the whole day (thats 8 hours straight) trying to get a simple jQuery function to work but failed miserably!!! I very very new to the jQ scene and I know I have a lot of catching up to do!<br />
Could somebody get this to work for me ???<br />
<br />
All i want is when user clicks is:<br />
1.the box with info fades out<br />
2. when data returned from the database the box fades in with the new data!<br />
<br />
What happens now is while the box fading out i can see new set of data already loaded and thats a complete FAIL of what I interned to do. ANY HELP IS GREATLY APPRECIATED! Peace.<br />
<br />
 <pre style="margin:20px; line-height:13px">$(document).ready(function() {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(&quot;ul.sc_menu a&quot;).click(function() <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $('#content #mainbg #infobox #trackinfo').animate({opacity:&quot;0&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; &nbsp; &nbsp; &nbsp; &nbsp; $.post('projects-agent.php', {'title': $(this).text()}, function(data) <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; $('#content #mainbg #infobox #trackinfo').html(data);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $('#content #mainbg #infobox #trackinfo').animate({opacity:&quot;1&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; return false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; });<br />
&nbsp; &nbsp; &nbsp; &nbsp; });</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>ablitz</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread232234.html</guid>
		</item>
		<item>
			<title>Aptana Studio WRTKit Selection menu and Selection List help!!!</title>
			<link>http://www.daniweb.com/forums/thread232187.html</link>
			<pubDate>Thu, 22 Oct 2009 06:23:56 GMT</pubDate>
			<description><![CDATA[hi, can anyone provide an example codes on the wrtkit selectionMenu and SelectionList. 
 
i need it to display a drop-down list for selection in a view specified in the same .js file  
 
thanks a lot...it's really urgent!!!]]></description>
			<content:encoded><![CDATA[<div>hi, can anyone provide an example codes on the wrtkit selectionMenu and SelectionList.<br />
<br />
i need it to display a drop-down list for selection in a view specified in the same .js file <br />
<br />
thanks a lot...it's really urgent!!!</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/thread232187.html</guid>
		</item>
		<item>
			<title><![CDATA[[ask] JQuery preventDefault is not working]]></title>
			<link>http://www.daniweb.com/forums/thread232152.html</link>
			<pubDate>Thu, 22 Oct 2009 03:57:21 GMT</pubDate>
			<description><![CDATA[Hi, 
I want create a page which has animation at the bottom of that page. I use jQuery to do that.. 
 
this is the way I do it  
 
<a href="#" class="animation">Animate this</a> 
 
and this is the jquery 
 
$(document).ready(function() {]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
I want create a page which has animation at the bottom of that page. I use jQuery to do that..<br />
<br />
this is the way I do it <br />
 <pre style="margin:20px; line-height:13px">&lt;a href=&quot;#&quot; class=&quot;animation&quot;&gt;Animate this&lt;/a&gt;</pre><br />
and this is the jquery<br />
 <pre style="margin:20px; line-height:13px">$(document).ready(function() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; $('a.animation').click(function(e) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; e.preventDefault();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //animation goes here;<br />
&nbsp; &nbsp; &nbsp; &nbsp; });<br />
});</pre><br />
When I run the code, all animation run very well except the page always scroll to the top. I try to change the href attribute to <span style="font-weight:bold">javascript<b></b>:void(0);</span> but it still run like that..<br />
<br />
How can I fix it?<br />
<br />
Thanks before,<br />
Sorry for my English..</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>eantz</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread232152.html</guid>
		</item>
		<item>
			<title>Free JavaScript/Ajax Book</title>
			<link>http://www.daniweb.com/forums/thread232148.html</link>
			<pubDate>Thu, 22 Oct 2009 03:38:37 GMT</pubDate>
			<description><![CDATA[There are few Books on Java, C++, PHP and Python, but haven't seen one in AJAX/JavaScript. Is there any legal downloadable JavaScript/Ajax book?]]></description>
			<content:encoded><![CDATA[<div>There are few Books on Java, C++, PHP and Python, but haven't seen one in AJAX/JavaScript. Is there any legal downloadable JavaScript/Ajax book?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>evstevemd</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread232148.html</guid>
		</item>
		<item>
			<title>js</title>
			<link>http://www.daniweb.com/forums/thread232134.html</link>
			<pubDate>Thu, 22 Oct 2009 02:36:15 GMT</pubDate>
			<description>how to run java script using a notepad should we use .js extension..?</description>
			<content:encoded><![CDATA[<div>how to run java script using a notepad should we use .js extension..?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>pradhan.s</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread232134.html</guid>
		</item>
		<item>
			<title>inputtext help</title>
			<link>http://www.daniweb.com/forums/thread231978.html</link>
			<pubDate>Wed, 21 Oct 2009 13:52:36 GMT</pubDate>
			<description>imagine i have inputtext 
 
i have list of values ..which are merchandise, auotmobile, car 
 
if user types c in textbox i want car to show up ..how can i do that? 
 
like when u type hotmail message..and u write k..and emails starting with k in ur list comes up.. 
 
sthg like that</description>
			<content:encoded><![CDATA[<div>imagine i have inputtext<br />
<br />
i have list of values ..which are merchandise, auotmobile, car<br />
<br />
if user types c in textbox i want car to show up ..how can i do that?<br />
<br />
like when u type hotmail message..and u write k..and emails starting with k in ur list comes up..<br />
<br />
sthg like that</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/thread231978.html</guid>
		</item>
		<item>
			<title>problem with getElementById</title>
			<link>http://www.daniweb.com/forums/thread231960.html</link>
			<pubDate>Wed, 21 Oct 2009 12:46:41 GMT</pubDate>
			<description>I am an absolute beginner with javascript 
and have no idea how to solve this one. 
got a function fu() which should display the NAME of the image upon onmouseover,but when I try it,all the images show the same name,although they have different names in the code. 
 
I thought the problem might be...</description>
			<content:encoded><![CDATA[<div>I am an absolute beginner with javascript<br />
and have no idea how to solve this one.<br />
got a function fu() which should display the NAME of the image upon onmouseover,but when I try it,all the images show the same name,although they have different names in the code.<br />
<br />
I thought the problem might be in the getElementById argument,that is why i've put 3 question marks instead of an ID...<br />
<br />
Thx<br />
 <br />
 <pre style="margin:20px; line-height:13px">&lt;HTML&gt;<br />
&lt;HEAD&gt;<br />
<br />
&lt;SCRIPT language=&quot;JavaScript&quot;&gt;<br />
function fu(){<br />
&nbsp; &nbsp; var m = document.getElementById(&quot;???&quot;).getAttribute(&quot;NAME&quot;);<br />
&nbsp; &nbsp; alert(m);<br />
}<br />
&lt;/SCRIPT&gt;<br />
&lt;/HEAD&gt;<br />
<br />
&lt;BODY&gt;<br />
&lt;IMG id=&quot;something&quot; NAME=&quot;pic1&quot; SRC=&quot;1.jpg&quot; height=&quot;50&quot; width=&quot;50&quot; <br />
onmouseover=&quot;fu()&quot; &gt;<br />
<br />
&lt;IMG id=&quot;somethingelse&quot; NAME=&quot;pic2&quot; SRC=&quot;2.jpg&quot; height=&quot;50&quot; width=&quot;50&quot; <br />
onmouseover=&quot;fu()&quot;&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>skurenak</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread231960.html</guid>
		</item>
		<item>
			<title>Enable/Disable Button using Ajax?</title>
			<link>http://www.daniweb.com/forums/thread231949.html</link>
			<pubDate>Wed, 21 Oct 2009 11:48:46 GMT</pubDate>
			<description><![CDATA[Using this code I disable my submit button on the initial load.  I'd like to enable it when the form is valid.  I have Prototype.js on my system. 
 
I send back a chunck of html to update my target.  Is it possible to send back an id so that I can check that and enable my button? 
 
Or how best...]]></description>
			<content:encoded><![CDATA[<div>Using this code I disable my submit button on the initial load.  I'd like to enable it when the form is valid.  I have Prototype.js on my system.<br />
<br />
I send back a chunck of html to update my target.  Is it possible to send back an id so that I can check that and enable my button?<br />
<br />
Or how best should I accomplish this?  As you will see I don't know what I'm doing!  The real questions for me are in <span style="color:red">red</span>.<br />
<br />
Ajax code ...<br />
 <pre style="margin:20px; line-height:13px">&lt;script type=&quot;text/javascript&quot;&gt;&nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
&nbsp; &nbsp; function run_ajax() {<br />
&nbsp; &nbsp; &nbsp; &nbsp;  var url = '/cgidev2p/r_chgpwd.pgm';<br />
&nbsp; &nbsp; &nbsp; &nbsp;  var pars = 'v_current='+escape($F('v_current'))+ '&amp;v_new=' + escape($F('v_new')) + '&amp;v_confirm=' + escape($F('v_confirm')) + '&amp;sessionid=' + escape($F('sessionid'));<br />
&nbsp; &nbsp; &nbsp; &nbsp;  var target = 'v_messege';<br />
&nbsp; &nbsp; &nbsp; &nbsp;  var myAjax = new Ajax.Updater(target, url, {method:'get', parameters:pars});<br />
<br />
<span style="color:Red">&nbsp; &nbsp; &nbsp; &nbsp;  if (!document.getElementById('success')) return;&nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var submitObj = document.getElementById('goButton');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; submitObj.disabled = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  }</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; function init() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (!document.getElementById) return;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var submitObj = $('goButton');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; submitObj.disabled = true;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&lt;/script&gt;</pre><br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;body onload=&quot;init()&quot;&gt;</pre><br />
<br />
Target ...<br />
 <pre style="margin:20px; line-height:13px">&lt;div id=&quot;v_messege&quot;&gt;&lt;/div&gt;</pre><br />
<br />
Here's the code I send back if the form is valid ...<br />
 <pre style="margin:20px; line-height:13px"><span style="color:red">&lt;div align=&quot;left&quot; class=&quot;ct26&quot; style=&quot;padding-left:5px; width:350px&quot; id=&quot;success&quot;&gt;<br />
&nbsp;  &lt;div class=&quot;wraptocenter&quot;&gt;&lt;img src=&quot;/images/common/check.gif&quot; width=&quot;16&quot; height=&quot;14&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;/%info_note%/&lt;/div&gt;<br />
&lt;/div&gt;</span></pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>mjhaston</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread231949.html</guid>
		</item>
		<item>
			<title>Javascript eventhandler and onbeforeunload</title>
			<link>http://www.daniweb.com/forums/thread231910.html</link>
			<pubDate>Wed, 21 Oct 2009 08:43:56 GMT</pubDate>
			<description><![CDATA[Hello , 
 
   I have a question concerning evnthandlers . I am programming a chat system and have an event handler in my code that checks for user presence ( using xmpp (http://www.xmpp.org)) . this is done when a connection sends a "presence packet " which is one like this , 
 
  <div...]]></description>
			<content:encoded><![CDATA[<div>Hello ,<br />
<br />
   I have a question concerning evnthandlers . I am programming a chat system and have an event handler in my code that checks for user presence ( using <a rel="nofollow" class="t" href="http://www.xmpp.org" target="_blank">xmpp</a>) . this is done when a connection sends a &quot;presence packet &quot; which is one like this ,<br />
<br />
 <pre style="margin:20px; line-height:13px">connection.send(presence);</pre><br />
The presence is handled by an event handler which , on receipt of a packet of this kind , calls a function which handles this event accordingly.<br />
<br />
Now my problem is that when the user closes the window ( identified by onbeforeunload), there should be a presence packet sent which should be recieved and handled by the event handler which somehow does not happen .<br />
<br />
I would appreciate some help on this .</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>rawroro</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread231910.html</guid>
		</item>
		<item>
			<title>Message Box in Javascript</title>
			<link>http://www.daniweb.com/forums/thread231884.html</link>
			<pubDate>Wed, 21 Oct 2009 07:02:43 GMT</pubDate>
			<description><![CDATA[Hi  
 
I'm using an ActiveX control in my html page.. Each time i load the page ie pops a message box to allow the activex to run or not . Is there any way to handle that message box using javascript. Or is there any other way to avoid that message box because each time the page loads i have to...]]></description>
			<content:encoded><![CDATA[<div>Hi <br />
<br />
I'm using an ActiveX control in my html page.. Each time i load the page ie pops a message box to allow the activex to run or not . Is there any way to handle that message box using javascript. Or is there any other way to avoid that message box because each time the page loads i have to give yes and then proceed. By default i've to give yes is there any way to handle that using javascript.<br />
help me out please...</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/thread231884.html</guid>
		</item>
		<item>
			<title>getElementById is null</title>
			<link>http://www.daniweb.com/forums/thread231855.html</link>
			<pubDate>Wed, 21 Oct 2009 05:49:32 GMT</pubDate>
			<description><![CDATA[Hi there .. I have error on my firebug it says:document.getElementById("category") is null 
Could someone help me?? 
and i wanted to set the default drop down option  
<html> 
	<head> 
	<script type="text/javascript"> 
		var i = 0; 
		var someValue = '4'; 
		var mySelect =...]]></description>
			<content:encoded><![CDATA[<div>Hi there .. I have error on my firebug it says:document.getElementById(&quot;category&quot;) is null<br />
Could someone help me??<br />
and i wanted to set the default drop down option <br />
 <pre style="margin:20px; line-height:13px">&lt;html&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;head&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;script type=&quot;text/javascript&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var i = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var someValue = '4';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var mySelect = document.getElementById('category');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while(i &lt; mySelect.options.length) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(mySelect.options&#91;i&#93;.value == someValue) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mySelect.options&#91;i&#93;.selected = 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; i++;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/script&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/head&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;body&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;select id=&quot;category&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;1&quot; &gt;Статика&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;4&quot;&gt;Статика2&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;7&quot;&gt;Статика3&lt;/option&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/select&gt; <br />
&nbsp; &nbsp; &nbsp; &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>samlabs821</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread231855.html</guid>
		</item>
		<item>
			<title>Passing values between html pages</title>
			<link>http://www.daniweb.com/forums/thread231843.html</link>
			<pubDate>Wed, 21 Oct 2009 04:20:16 GMT</pubDate>
			<description>Hi 
 
  i need to pass values from one html page to another without using forms. Is this possible . Can i access these values using javascript.. Please help me with a code sample .. thanks in advance</description>
			<content:encoded><![CDATA[<div>Hi<br />
<br />
  i need to pass values from one html page to another without using forms. Is this possible . Can i access these values using javascript.. Please help me with a code sample .. thanks 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/thread231843.html</guid>
		</item>
		<item>
			<title>Functional Programming Using Prototype Framework</title>
			<link>http://www.daniweb.com/forums/thread231826.html</link>
			<pubDate>Wed, 21 Oct 2009 02:51:15 GMT</pubDate>
			<description><![CDATA[Trying to turn all <p> elements to red.  I'm using the following js code with prototype and I'm getting an error that says each is not defined in my firefox window. 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>Trying to turn all &lt;p&gt; elements to red.  I'm using the following js code with prototype and I'm getting an error that says each is not defined in my firefox window.<br />
<br />
 <pre style="margin:20px; line-height:13px">var paragraphs = $$('p');<br />
<br />
each(paragraphs, function(element) {<br />
element.style.color = &quot;red&quot;;<br />
});</pre><br />
Html Code:<br />
 <pre style="margin:20px; line-height:13px">&lt;html&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 />
<br />
&lt;script type=&quot;text/javascript&quot; src=&quot;scriptaculous.js&quot;&gt;&lt;/script&gt;<br />
&lt;script type=&quot;text/javascript&quot; src=&quot;prototype.js&quot;&gt;&lt;/script&gt;<br />
<br />
&lt;/head&gt;<br />
<br />
&lt;body&gt;<br />
<br />
<br />
&lt;p&gt;His chad&lt;/p&gt;<br />
&lt;p&gt;How are you&lt;/p&gt;<br />
<br />
&lt;/body&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>Chad Gary</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread231826.html</guid>
		</item>
		<item>
			<title>mailto error handling</title>
			<link>http://www.daniweb.com/forums/thread231780.html</link>
			<pubDate>Tue, 20 Oct 2009 22:07:13 GMT</pubDate>
			<description>Dear Experts, 
 
Apparently using the html mailto: action is prone to not working if the users client side email is not properly configured (like hotmail or other web based email apps). Is it possible to catch this error in the html code (via javascript, PHP, or HTML) and take other actions like...</description>
			<content:encoded><![CDATA[<div>Dear Experts,<br />
<br />
Apparently using the html mailto: action is prone to not working if the users client side email is not properly configured (like hotmail or other web based email apps). Is it possible to catch this error in the html code (via javascript, PHP, or HTML) and take other actions like re-direct to an FORM, so the user does not think the website is broken and goes somewhere else.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>_John_</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread231780.html</guid>
		</item>
		<item>
			<title>CSS drop down menu problems</title>
			<link>http://www.daniweb.com/forums/thread231759.html</link>
			<pubDate>Tue, 20 Oct 2009 20:21:28 GMT</pubDate>
			<description>I am having trouble getting the two dropdowns under Facility and Contact Us to drop down... see link below... the first drop down works fine (under Services) Please help! Thanks in advance. 
 
http://www.gumshoestudio.com/Wickertree_menu_test/</description>
			<content:encoded><![CDATA[<div>I am having trouble getting the two dropdowns under Facility and Contact Us to drop down... see link below... the first drop down works fine (under Services) Please help! Thanks in advance.<br />
<br />
<a rel="nofollow" class="t" href="http://www.gumshoestudio.com/Wickertree_menu_test/" target="_blank">http://www.gumshoestudio.com/Wickertree_menu_test/</a></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>ttope</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread231759.html</guid>
		</item>
		<item>
			<title>Call a jquery (javascript) function from multiple forms on a single page</title>
			<link>http://www.daniweb.com/forums/thread231680.html</link>
			<pubDate>Tue, 20 Oct 2009 14:40:26 GMT</pubDate>
			<description><![CDATA[Hi, I am in a real need to get this going quickly and have run into a bit of a stumbling block. Here is what I am trying to do. I am creating a Paypal Add to Cart page for several products. I have this working for a single button form. The main script is: 
 
  <div class="codeblock"> <div...]]></description>
			<content:encoded><![CDATA[<div>Hi, I am in a real need to get this going quickly and have run into a bit of a stumbling block. Here is what I am trying to do. I am creating a Paypal Add to Cart page for several products. I have this working for a single button form. The main script is:<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;script type=&quot;text/javascript&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(function(){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // start a counter for new row IDs<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // by setting it to the number<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // of existing rows<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var newRowNum = 2;<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; // bind a click event to the &quot;Add&quot; link<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $('#addnew').click(function(){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // increment the counter<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; newRowNum += 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; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // get the entire &quot;Add&quot; row --<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // &quot;this&quot; refers to the clicked element<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // and &quot;parent&quot; moves the selection up<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // to the parent node in the DOM<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var addRow = $(this).parent().parent();<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; // copy the entire row from the DOM<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // with &quot;clone&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var newRow = addRow.clone();<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; // set the values of the inputs<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // in the &quot;Add&quot; row to empty strings<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //$('input', addRow).val('');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //$('name', addRow).val('os' + newRowNum);<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; // replace the HTML for the &quot;Add&quot; link <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // with the new row number<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $('td:first-child', newRow).html('&lt;input type=&quot;hidden&quot; name=&quot;on' + newRowNum + '&quot; value=&quot;Email Address ' + (newRowNum - 1) + '&quot;&gt;Recipient');<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; // insert a remove link in the last cell<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $('td:last-child', newRow).html('&lt;a href=&quot;&quot; class=&quot;remove&quot;&gt;Remove&lt;\/a&gt;');<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; // loop through the inputs in the new row<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // and update the ID and name attributes<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /*$('td:first-child.next-child.input', newRow).each(function(i){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var newID = newRowNum;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(this).attr('id','os' + newID).attr('name','os' + newID);<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; /*$('td:second-child.input', newRow).each(function(i){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var newID = newRowNum;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(this).attr('id','os' + newRowNum).attr('name','os' + newRowNum);<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; $('input:hidden', newRow).attr('id','on' + newRowNum ).attr('name','on' + newRowNum );<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $('input:text', newRow).attr('id','os' + newRowNum ).attr('name','os' + newRowNum );<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //$('td:first-child.next', newRow).html('&lt;input type=&quot;text&quot; id=&quot;os' + newRowNum + '&quot; name=&quot;os' + newRowNum + '&quot; value=&quot;&quot;&gt;');<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; // insert the new row into the table<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // &quot;before&quot; the Add row<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addRow.before(newRow);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.tp01.quantity.value = newRowNum-1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // add the remove function to the new row<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $('a.remove', newRow).click(function(){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(this).parent().parent().remove();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return false;&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; // prevent the default click<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; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/script&gt;</pre><br />
This is called from a text link in the page as follows:<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;input type=&quot;hidden&quot; name=&quot;on2&quot; value=&quot;Email Address 1&quot;&gt;&lt;a id=&quot;addnew&quot; href=&quot;&quot;&gt;Add&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&lt;input name=&quot;os2&quot; type=&quot;text&quot; id=&quot;os2&quot; value=&quot;&quot; size=&quot;24&quot; maxlength=&quot;60&quot; /&gt;</pre><br />
Each successive click on the Add link adds a new row to the table and allows another email address to be added to the form. The trick now is that I need to add multiple Paypal button forms to the page that re-uses this function and perhaps each form calls this function with something like:<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;input type=&quot;hidden&quot; name=&quot;on2&quot; value=&quot;Email Address 1&quot;&gt;&lt;a id=&quot;addnew2&quot; href=&quot;&quot;&gt;Add&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&lt;input name=&quot;os2&quot; type=&quot;text&quot; id=&quot;os2&quot; value=&quot;&quot; size=&quot;24&quot; maxlength=&quot;60&quot; /&gt;</pre> and  <pre style="margin:20px; line-height:13px">&lt;input type=&quot;hidden&quot; name=&quot;on2&quot; value=&quot;Email Address 1&quot;&gt;&lt;a id=&quot;addnew3&quot; href=&quot;&quot;&gt;Add&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&lt;input name=&quot;os2&quot; type=&quot;text&quot; id=&quot;os2&quot; value=&quot;&quot; size=&quot;24&quot; maxlength=&quot;60&quot; /&gt;</pre> etc.<br />
<br />
Can anyone guide me as to how to amend the function to accept calls from different links like this so that the new rows are added or removed from the appropriate form on the page? I have tried the following:<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;script type=&quot;text/javascript&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $(function(){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // start a counter for new row IDs<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // by setting it to the number<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // of existing rows<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var newRowNum = 2;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var bindLink = function(linkSelector) {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // bind a click event to the &quot;Add&quot; link<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(linkSelector).click(function() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // increment the counter<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; newRowNum += 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; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // get the entire &quot;Add&quot; row --<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // &quot;this&quot; refers to the clicked element<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // and &quot;parent&quot; moves the selection up<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // to the parent node in the DOM<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var addRow = $(this).parent().parent();<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; // copy the entire row from the DOM<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // with &quot;clone&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var newRow = addRow.clone();<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; // set the values of the inputs<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // in the &quot;Add&quot; row to empty strings<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //$('input', addRow).val('');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //$('name', addRow).val('os' + newRowNum);<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; // replace the HTML for the &quot;Add&quot; link <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // with the new row number<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $('td:first-child', newRow).html('&lt;input type=&quot;hidden&quot; name=&quot;on' + newRowNum + '&quot; value=&quot;Email Address ' + (newRowNum - 1) + '&quot;&gt;Recipient');<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; // insert a remove link in the last cell<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $('td:last-child', newRow).html('&lt;a href=&quot;&quot; class=&quot;remove&quot;&gt;Remove&lt;\/a&gt;');<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; // loop through the inputs in the new row<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // and update the ID and name attributes<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; $('input:hidden', newRow).attr('id','on' + newRowNum ).attr('name','on' + newRowNum );<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $('input:text', newRow).attr('id','os' + newRowNum ).attr('name','os' + newRowNum );<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; // insert the new row into the table<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // &quot;before&quot; the Add row<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addRow.before(newRow);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.tp01.quantity.value = newRowNum-1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // add the remove function to the new row<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $('a.remove', newRow).click(function(){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(this).parent().parent().remove();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return false;&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; // prevent the default click<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; });<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; };<br />
&nbsp; &nbsp; &nbsp; &nbsp; });<br />
&lt;/script&gt;</pre> called with:  <pre style="margin:20px; line-height:13px"> &lt;input type=&quot;hidden&quot; name=&quot;on2&quot; value=&quot;Email Address 1&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a id=&quot;addnew2&quot; href=&quot;&quot; onclick=&quot;bindLink('addnew2')&quot;&gt;Add&lt;/a&gt;</pre> as suggested by someone else but does not work.<br />
<br />
Thanks for any help.<br />
<br />
Dave</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>filch</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread231680.html</guid>
		</item>
		<item>
			<title><![CDATA[Anyone see why this isn't working for IE?]]></title>
			<link>http://www.daniweb.com/forums/thread231672.html</link>
			<pubDate>Tue, 20 Oct 2009 14:20:00 GMT</pubDate>
			<description><![CDATA[Hey all 
 
Can anyone see why this isn't working for IE but is Firefox?  I'm trying to update a div on the page using some javascript and php. Whenever a dropdown box on the html page is changed, its value is passed to a javascript function, then onto a php file.  The php file runs and javascript...]]></description>
			<content:encoded><![CDATA[<div>Hey all<br />
<br />
Can anyone see why this isn't working for IE but is Firefox?  I'm trying to update a div on the page using some javascript and php. Whenever a dropdown box on the html page is changed, its value is passed to a javascript function, then onto a php file.  The php file runs and javascript updates the div.<br />
<br />
HTML Code:<br />
 <pre style="margin:20px; line-height:13px">&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;script type=&quot;text/javascript&quot; src=&quot;include/js/tournSearch.js&quot;&gt;&lt;/script&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;select id=&quot;in_out_door&quot; onchange=&quot;updateTourns()&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;Indoor&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;Outdoor&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;Sand&lt;/option&gt;<br />
&lt;/select&gt;<br />
&lt;div id=&quot;tourn&quot;&gt;&lt;/div&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</pre>Javascript Code:<br />
 <pre style="margin:20px; line-height:13px">var xmlhttp;<br />
<br />
function updateTourns() {<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;Browser does not support HTTP Request&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; var url = &quot;include/js/tournSearch.php&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; url = url + &quot;?in_out_door1=&quot; + document.getElementById('in_out_door').value;<br />
&nbsp; &nbsp; &nbsp; &nbsp; url = url + &quot;&amp;class1=&quot; + document.getElementById('class').value;<br />
&nbsp; &nbsp; &nbsp; &nbsp; url = url + &quot;&amp;region1=&quot; + document.getElementById('region').value;<br />
&nbsp; &nbsp; &nbsp; &nbsp; url = url + &quot;&amp;level1=&quot; + document.getElementById('level').value;<br />
&nbsp; &nbsp; &nbsp; &nbsp; url = url + &quot;&amp;year1=&quot; + document.getElementById('year').value;<br />
&nbsp; &nbsp; &nbsp; &nbsp; url = url + &quot;&amp;sid=&quot; + Math.random();<br />
&nbsp; &nbsp; &nbsp; &nbsp; xmlhttp.onreadystatechange=stateChanged;<br />
&nbsp; &nbsp; &nbsp; &nbsp; xmlhttp.open(&quot;GET&quot;,url,true);<br />
&nbsp; &nbsp; &nbsp; &nbsp; xmlhttp.send(null);<br />
}<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
function stateChanged()&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (xmlhttp.readyState==4)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.getElementById(&quot;tourn&quot;).innerHTML=xmlhttp.responseText;<br />
}<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
function GetXmlHttpObject()&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (window.XMLHttpRequest)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return new XMLHttpRequest();&nbsp; &nbsp; &nbsp; &nbsp; // code for IE7+, Firefox, Chrome, Opera, Safari<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (window.ActiveXObject)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);&nbsp; &nbsp; &nbsp; &nbsp; // code for IE6, IE5<br />
&nbsp; &nbsp; &nbsp; &nbsp; return null;<br />
}</pre>Finally, tournSearch.php<br />
 <pre style="margin:20px; line-height:13px">$in_out_door = $_GET&#91;'in_out_door1'&#93;;<br />
$class = $_GET&#91;'class1'&#93;;<br />
$region = $_GET&#91;'region1'&#93;;<br />
$level = $_GET&#91;'level1'&#93;;<br />
$year = $_GET&#91;'year1'&#93;;<br />
echo $in_out_door . &quot;, &quot; . $class . &quot;, &quot;;</pre><br />
In Firefox whatever was selected from the dropdown box is echo'd. This does not happen in IE.<br />
<br />
Thank you!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>benrich</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread231672.html</guid>
		</item>
		<item>
			<title>how to call server side method from jquery</title>
			<link>http://www.daniweb.com/forums/thread231657.html</link>
			<pubDate>Tue, 20 Oct 2009 12:54:42 GMT</pubDate>
			<description><![CDATA[Hi All, 
 
I'm new to this jquery and i found some article, implemented but its server side method is not firing. Plz if you know help out this probelm. 
 
These is the code implemented in my application in jquery side. 
  <div class="codeblock"> <div class="spaced"> <div style="float:right;...]]></description>
			<content:encoded><![CDATA[<div>Hi All,<br />
<br />
I'm new to this jquery and i found some article, implemented but its server side method is not firing. Plz if you know help out this probelm.<br />
<br />
These is the code implemented in my application in jquery side.<br />
 <pre style="margin:20px; line-height:13px">&lt;script type=&quot;text/javascript&quot; &gt;&lt;/script&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;script language=&quot;javascript&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(document).ready(function() {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(&quot;#btnClick&quot;).click(function() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var email = $(&quot;#txtemail&quot;).val();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $.ajax({<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; type: &quot;POST&quot;,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; url: &quot;TestingEmail.aspx/DNSValidation&quot;,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; data: &quot;{EmailAddress:&quot; + email.toString() + &quot;}&quot;,<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; success: function(response) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(response.d);<br />
//&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (response.bolDNSFlag != &quot;true&quot;) {<br />
//&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;Plz try again&quot;);<br />
//&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(&quot;#txtemail&quot;).focus();<br />
//&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; error: function() {<br />
&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; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; });<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Call the PageMethods<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $.ajax(options);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; });<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; });<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/script&gt;</pre><br />
and server side is <br />
 <pre style="margin:20px; line-height:13px">[WebMethod]<br />
&nbsp; &nbsp; public static string DNSValidation(string EmailAddress)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; Boolean bolDNSFlag = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; try<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (isEmail(EmailAddress.Trim()))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string[] host = (EmailAddress.Trim().Split('@'));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string hostname = host[1];<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IPHostEntry IPhst = Dns.GetHostEntry(hostname);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IPEndPoint endPt = new IPEndPoint(IPhst.AddressList[0], 25);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Socket s = new Socket(endPt.AddressFamily, SocketType.Stream, ProtocolType.Tcp);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; s.Connect(endPt);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bolDNSFlag = true;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; catch (Exception exp)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bolDNSFlag = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; return bolDNSFlag.ToString();<br />
&nbsp; &nbsp; }</pre><br />
Im not geting the breakpoint. Plz let me know if u have any idea.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>Renukavani</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread231657.html</guid>
		</item>
		<item>
			<title>IE selection() issue</title>
			<link>http://www.daniweb.com/forums/thread231594.html</link>
			<pubDate>Tue, 20 Oct 2009 08:51:53 GMT</pubDate>
			<description><![CDATA[I am currently having a problem with my BB-code editor, like most things it works great in FF, but i have an issue with IE: whenever i select a word that has already been previously typed, it selects that word instead of the one i selected. 
 
Here is the selection part of my editor: 
 
  <div...]]></description>
			<content:encoded><![CDATA[<div>I am currently having a problem with my BB-code editor, like most things it works great in FF, but i have an issue with IE: whenever i select a word that has already been previously typed, it selects that word instead of the one i selected.<br />
<br />
Here is the selection part of my editor:<br />
<br />
 <pre style="margin:20px; line-height:13px">if (window.getSelection){ <br />
selection = window.getSelection(); <br />
}else if (document.getSelection){ <br />
selection = document.getSelection(); <br />
}else if (document.selection){ <br />
selection = document.selection.createRange().text; <br />
}</pre><br />
Example:<br />
<br />
The text: the <span style="color:Red">cats</span> attack the other <span style="color:Green">cats</span><br />
I selected the second &quot;<span style="color:Green">cats</span>&quot;, but the script keeps returning the first &quot;<span style="color:Red">cats</span>&quot;<br />
<br />
Does anyone have a suggestion on how to fix this?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>Graphix</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread231594.html</guid>
		</item>
		<item>
			<title>Please explain the codes</title>
			<link>http://www.daniweb.com/forums/thread231587.html</link>
			<pubDate>Tue, 20 Oct 2009 08:10:03 GMT</pubDate>
			<description><![CDATA[I am new to JavaScript.  
 
Therefore, I don't understand how the following javascript code work: 
 
  <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...]]></description>
			<content:encoded><![CDATA[<div>I am new to JavaScript. <br />
<br />
Therefore, I don't understand how the following javascript code work:<br />
<br />
 <pre style="margin:20px; line-height:13px">var specialChars=&quot;/\\(\\)&gt;&lt;@,;:\\\\\\\&quot;\\.\\[\\]\*\+\?\!\#\$\%\^\&amp;\=\~\`\|\/\'&quot;;<br />
var validChars=&quot;\[^\\s&quot; + specialChars + &quot;\]&quot;;<br />
var atom=validChars + '+';<br />
var atomPat=new RegExp(&quot;^&quot; + atom + &quot;$&quot;);<br />
var str = &quot;Hello World!&quot;;<br />
<br />
if (str.search(atomPat)==-1)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
{<br />
&nbsp; &nbsp; alert (&quot;Special Characters Found!&quot;); <br />
}</pre><br />
When the code run, it will prompt the alert message, which I don't understand why.:-/<br />
Could someone please kindly explain.<br />
<br />
Thanks.:)</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>drboring</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread231587.html</guid>
		</item>
		<item>
			<title>gauss jordan elimination</title>
			<link>http://www.daniweb.com/forums/thread231524.html</link>
			<pubDate>Tue, 20 Oct 2009 01:19:37 GMT</pubDate>
			<description>Write a Java program that uses an algorithm implementing the Gauss-Jordan 
method to solve the system of linear equations given in the introduction. Your 
output must show the output of every calculation to no more than seven (7) decimal 
places. You must create and use a function that cuts off the...</description>
			<content:encoded><![CDATA[<div>Write a Java program that uses an algorithm implementing the Gauss-Jordan<br />
method to solve the system of linear equations given in the introduction. Your<br />
output must show the output of every calculation to no more than seven (7) decimal<br />
places. You must create and use a function that cuts off the result of each<br />
calculation at exactly seven decimal places and uses this cutoff value in any<br />
subsequent calculation</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>asong</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread231524.html</guid>
		</item>
	</channel>
</rss>
