<?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, 28 Nov 2009 10:54:20 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><![CDATA[Help please with form validation & dynamic date display]]></title>
			<link>http://www.daniweb.com/forums/thread241974.html</link>
			<pubDate>Sat, 28 Nov 2009 08:34:25 GMT</pubDate>
			<description>Hi all. :icon_smile:I am having problems with my form validation and getting it to run. I also have been unable to get the last page update to display at the bottom of the screen:icon_redface:. Is anyone able to help me to get these things to work - I am getting very frustrated with this:icon_cry:....</description>
			<content:encoded><![CDATA[<div>Hi all. :icon_smile:I am having problems with my form validation and getting it to run. I also have been unable to get the last page update to display at the bottom of the screen:icon_redface:. Is anyone able to help me to get these things to work - I am getting very frustrated with this:icon_cry:.<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;&gt;<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot;&gt;<br />
&lt;meta name=&quot;author&quot; content=&quot;Joanne Bujayer&quot;&gt;<br />
&lt;title&gt;All Produce at Joe's - Order Form&lt;/title&gt;<br />
&lt;style type=&quot;text/css&quot;&gt;<br />
&lt;!--<br />
body,td,th {<br />
&nbsp; &nbsp; &nbsp; &nbsp; font-family: Verdana, Arial, Helvetica, sans-serif;<br />
&nbsp; &nbsp; &nbsp; &nbsp; color: #000000;<br />
}<br />
body {<br />
&nbsp; &nbsp; &nbsp; &nbsp; background-color: #99FF99;<br />
}<br />
.style3 {color: #00FF00;<br />
&nbsp; &nbsp; &nbsp; &nbsp; font-size: xx-large;<br />
&nbsp; &nbsp; &nbsp; &nbsp; font-weight: bold;<br />
}<br />
--&gt;<br />
&lt;/style&gt;<br />
&lt;!-- Ensure that mandatory fields of form have been completed I used a validation script --&gt;<br />
&lt;/head&gt;<br />
&lt;script type=&quot;text/javascript&quot;&gt;<br />
//Used to check to see if any of the fields are empty that are necessary information.<br />
onload = function validationComplete(Order)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; if(emptyField(Order.Name))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;Please enter your name.&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; else if(emptyField(Order.Address))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;Please enter your address.&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; else if(emptyField(Order.Suburb))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;Please enter your suburb or town.&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; else if(emptyField(Order.State))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;Please enter your state.&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; else if(emptyField(Order.Postcode))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;Please enter your postcode.&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; else if(emptyField(Order.Homeph))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;Please enter your home phone number.&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; else if(emptyField(Order.CCNumber))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;Please enter your Credit Card number.&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; else if(emptyField(Order.Type))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;Please enter your Credit Card type.&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; else if(emptyField(Order.Expiry))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;Please enter your Credit Card expiry month.&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; else if(emptyField(Order.Year))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;Please enter your Credit Card expiry year.&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; else if(emptyField(Order.Basket))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;Please enter your basket choice.&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; else if(emptyField(Order.Quantity))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;Please enter your basket quantity.&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; else if(emptyField(Order.Street))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;Please enter your delivery street.&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; else if(emptyField(Order.Town))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;Please enter your delivery town or suburb.&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; else if(emptyField(Order.Pcode))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;Please enter your delivery postcode.&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; else if(emptyField(Order.Ddr))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;Please enter your delivery date.&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; else if(emptyField(Order.month))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;Please enter your delivery date.&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; else if(emptyField(Order.yr))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;Please enter your delivery date.&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; else if(emptyField(Order.Yes.value))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;Please enter your card message.&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; else return true;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; return false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
//Check to see if field is empty.<br />
onload = function emptyField(Order)<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; if(textObj.value.length == 0) return true;<br />
&nbsp; &nbsp; &nbsp; &nbsp; for (var i=0; i&lt;textObj.value.length; ++i)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var ch = text.Obj.value.charAt(i);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ch != ' ' &amp;&amp; ch != '/t') return false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; return true;<br />
}<br />
//Validate shipping policy - don't ship on weekends. Make sure date is not in past or current date.<br />
onload = function shipping(Order)<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; var deliverydate = calDdr(Order);<br />
&nbsp; &nbsp; &nbsp; &nbsp; var day = Ddr.getDay();<br />
&nbsp; &nbsp; &nbsp; &nbsp; var currentDate = new Date()<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; if(Ddr.getTime() &lt; currentDate.getTime()) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;Error: Delivery date must be future date.&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; Orders.Ddr.focus()<br />
&nbsp; &nbsp; &nbsp; &nbsp; Orders.Ddr.select()<br />
&nbsp; &nbsp; &nbsp; &nbsp; return false;<br />
}<br />
if (day == 0) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;Sorry we cannot delivery on Sunday.&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; Orders.Ddr.focus()<br />
&nbsp; &nbsp; &nbsp; &nbsp; Orders.Ddr.select()<br />
&nbsp; &nbsp; &nbsp; &nbsp; return false;<br />
}<br />
if (day == 6) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;Sorry we cannot delivery on Saturday.&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; Orders.Ddr.focus()<br />
&nbsp; &nbsp; &nbsp; &nbsp; Orders.Ddr.select()<br />
&nbsp; &nbsp; &nbsp; &nbsp; return false;<br />
}<br />
else return true;<br />
}&nbsp; &nbsp; &nbsp; &nbsp; <br />
//This function validates a credit card entry to make sure that the number is correct.<br />
onload = function isCreditCard(Order)<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; var CCNumber;<br />
&nbsp; &nbsp; &nbsp; &nbsp; var odd = 1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; var even = 2;<br />
&nbsp; &nbsp; &nbsp; &nbsp; var calcCard = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; var calcs = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; var ccNum2 = ' ';<br />
&nbsp; &nbsp; &nbsp; &nbsp; var cc;<br />
&nbsp; &nbsp; &nbsp; &nbsp; var r;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; CCNumber = text.Obj.value;<br />
&nbsp; &nbsp; &nbsp; &nbsp; for(var i = 0; i !=CCNumber.length; i++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; aChar = CCNumber.substring(i,i+1);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (aChar == ' - ') {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; continue;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CCNum2 = CCNum2 + aChar;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; cc = parseInt(CCNum2);<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (cc == 0) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; r = CCNumber.lenth / 2;<br />
&nbsp; &nbsp; &nbsp; &nbsp; if CCNumber.length - (parseInt(r)*2) == 0) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; odd = 2;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; even = 1:<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; for (var x = CCNumber.length - 1; x &gt; 0; x - -)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; r = x / 2;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (r &lt; 1) }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; r++;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; if(x - (parseInt(r) * 2) != 0) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; calcs - (parseInt(CCNumber.charAt(x - 1))) * odd;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; else {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; calcs = (parseInt(CCNumber.charAt(x - 1))) * even;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; if(calcs &gt;= 10) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; calcs = cals = 10 + 1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; calcCard = calCard + calcs;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; calcs = 10 - )(calcCard % 10);<br />
&nbsp; &nbsp; &nbsp; &nbsp; if calcs == 10) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; calcs = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; if calcs == (parseInt(CCNumber.charAt(CCNumber.length - 1)))) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return true;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; else {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
}<br />
//This function validates the email address<br />
onload = function validEmail(Order)<br />
&nbsp; &nbsp; &nbsp; &nbsp; invalidChars = &quot;/:,;&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; if (email ==&quot; &quot;) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; for (i=0; i&lt;invalidChars.length;i++) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; badChar = invalidChars.chatAt(i)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (email.indexOf(badChar,0) &gt; -1) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; atPos = email.indexOf(&quot;@&quot;,1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (atPos == -1) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; periodPos = email.indexOf(&quot;.&quot;,atPos)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (periodPos == -1) {<br />
&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; if (periodPos+3 &gt; email.length) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; return true;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
onload = function submitIt(Order) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (!validemail(Order.email.value))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;Invalid email address. Please enter the correct email address.&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; order.email.focus()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; order.email.select()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; return true;<br />
}<br />
//Used to make sure that a radio burron is selected.<br />
onload = function checkRadio(checkvalue) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; var error = &quot;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if (!(checkvalue)) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  error = &quot;Please check a radio button.\n&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; return error;&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; for (i=0, n=Order.radios.length; i&lt;n; i++) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if (Order.radios[i].checked) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var checkvalue = Order.radios[i].value;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; why += checkRadio(checkvalue);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&lt;/script&gt;<br />
&lt;body&gt;<br />
&lt;table width=&quot;890&quot; height=&quot;976&quot; border=&quot;0&quot;&gt;<br />
&nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &lt;td colspan=&quot;3&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;style3&quot;&gt;All Produce at Joe's&lt;/div&gt;&lt;/td&gt;<br />
&nbsp; &lt;/tr&gt;<br />
&nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &lt;td width=&quot;202&quot;&gt;&lt;img src=&quot;home.jpg&quot; alt=&quot;Home&quot; width=&quot;202&quot; height=&quot;201&quot; border=&quot;0&quot;&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &lt;td width=&quot;678&quot; colspan=&quot;2&quot; rowspan=&quot;4&quot;&gt;&lt;h2&gt;Order form for Joe's Fruit Shop&lt;/h2&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;p&gt;&amp;nbsp;&lt;/p&gt;<br />
&nbsp; &nbsp; &lt;p&gt;&lt;strong&gt;A * means you must fill in the details&lt;/strong&gt;&lt;/p&gt;<br />
&nbsp; &nbsp; &lt;p&gt;&lt;strong&gt;Your details:&lt;/strong&gt;&lt;br&gt;<br />
&lt;!-- Below is the form for Joe's Produce. Basic fields with options added for state, credit card type and dates --&gt;&nbsp; &nbsp; &lt;/p&gt;<br />
&nbsp; &nbsp; &lt;form name=&quot;Order&quot; method=&quot;post&quot; action=&quot;&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;label&gt;*Name<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;input name=&quot;Name&quot; type=&quot;text&quot; id=&quot;Name&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/label&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;p&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;label&gt;*Address<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;input name=&quot;Address&quot; type=&quot;text&quot; id=&quot;Address&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/label&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/p&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;p&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;label&gt;*Suburb or Town<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;input name=&quot;Suburb or Town&quot; type=&quot;text&quot; id=&quot;Suburb&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/label&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;label&gt;*State<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;select name=&quot;State&quot; id=&quot;State&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;ACT&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;NSW&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;NT&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option selected&gt;QLD&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;SA&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;TAS&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;VIC&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;WA&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/select&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  *Postcode<br />
&nbsp; &nbsp; &nbsp; &nbsp;  &lt;input name=&quot;Postcode&quot; type=&quot;text&quot; id=&quot;Postcode&quot; size=&quot;5&quot; maxlength=&quot;4&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/label&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/p&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;p&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;label&gt;*Home phone<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;input name=&quot;Home phone&quot; type=&quot;text&quot; id=&quot;Home&quot; size=&quot;11&quot; maxlength=&quot;10&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/label&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;label&gt;Work phone<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;input name=&quot;Work phone&quot; type=&quot;text&quot; id=&quot;Work&quot; size=&quot;11&quot; maxlength=&quot;10&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/label&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/p&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;p&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;label&gt;Fax<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;input name=&quot;Fax&quot; type=&quot;text&quot; id=&quot;Fax&quot; size=&quot;11&quot; maxlength=&quot;10&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/label&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;label&gt;Email address<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;input name=&quot;Email address&quot; type=&quot;text&quot; id=&quot;email&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/label&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/p&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;p&gt;&lt;strong&gt;Credit card details&lt;/strong&gt;&lt;/p&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;p&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;label&gt;*Credit Card Number<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;input name=&quot;CCNumber&quot; type=&quot;text&quot; id=&quot;CCNumber&quot; size=&quot;16&quot; maxlength=&quot;16&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/label&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/p&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;p&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;label&gt;*Type<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;select name=&quot;Type&quot; id=&quot;Type&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option selected&gt;Mastercard&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;Visa&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;AMEX&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/select&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/label&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;label&gt;*Expiry date<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;select name=&quot;Expiry date&quot; id=&quot;Expiry&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option selected&gt;January&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;February&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;March&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;April&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;May&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;June&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;July&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;August&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;September&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;October&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;November&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;December&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/select&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/label&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;label&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;select name=&quot;Year&quot; id=&quot;Year&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option selected&gt;2009&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;2010&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;2011&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;2012&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;2013&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;2014&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;2015&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;2016&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;2017&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;2018&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;2019&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;2020&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/select&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/label&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/p&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;p&gt;&lt;strong&gt;Purchase details&lt;/strong&gt;&lt;/p&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;p&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;label&gt;*Basket choice<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;select name=&quot;Basket choice&quot; id=&quot;Basket&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option selected&gt;1A&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;2B&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;3C&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;4D&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;5E&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;6F&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;7G&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;8H&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;9I&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/select&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/label&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;label&gt;Quantity<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;select name=&quot;Quantity&quot; id=&quot;Quantity&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option selected&gt;1&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;2&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;3&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;4&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;5&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;6&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;7&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;8&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;9&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;10&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/select&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/label&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/p&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;p&gt;&lt;strong&gt;*Deliver to&lt;/strong&gt;&lt;/p&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;p&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;label&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;input name=&quot;HomeAdd&quot; type=&quot;radio&quot; id=&quot;HomeAdd&quot; value=&quot;radio&quot; checked&gt;<br />
Home address&lt;/label&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;br&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;label&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;radio&quot; name=&quot;OtherAdd&quot; value=&quot;radio&quot; id=&quot;OtherAdd&quot;&gt;<br />
Other address&lt;/label&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;br&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;label&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;input name=&quot;Street&quot; type=&quot;text&quot; id=&quot;Street&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; (Street)&lt;/label&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/p&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;p&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;label&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;input name=&quot;Suburb or Town2&quot; type=&quot;text&quot; id=&quot;Town&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; (Suburb or Town)&lt;/label&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;label&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;select name=&quot;State2&quot; id=&quot;State2&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;ACT&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;NSW&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;NT&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option selected&gt;QLD&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;SA&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;TAS&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;VIC&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;WA&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/select&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; (State)&lt;/label&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;label&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;input name=&quot;Postcode2&quot; type=&quot;text&quot; id=&quot;Pcode&quot; size=&quot;5&quot; maxlength=&quot;4&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; (Postcode)&lt;/label&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;br&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/p&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;p&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;label&gt;*Date delivery required<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;select name=&quot;Date delivery required&quot; id=&quot;Ddr&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option selected&gt;1&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;2&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;3&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;4&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;5&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;6&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;7&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;8&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;9&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;10&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;11&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;12&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;13&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;14&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;15&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;16&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;17&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;18&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;19&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;20&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;21&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;22&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;23&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;24&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;25&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;26&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;27&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;28&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;29&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;30&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;31&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/select&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/label&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;label&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;select name=&quot;month&quot; id=&quot;month&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option selected&gt;January&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;February&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;March&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;April&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;May&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;June&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;July&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;August&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;September&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;October&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;November&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;December&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/select&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/label&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;label&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;select name=&quot;yr&quot; id=&quot;yr&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option selected&gt;2009&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;2010&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;2011&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;2012&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;2013&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;2014&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;2015&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/select&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/label&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/p&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;p&gt;Include a card: <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;label&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;input name=&quot;Yes&quot; type=&quot;checkbox&quot; id=&quot;Yes&quot; checked&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; Yes&lt;/label&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/p&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;p&gt;Personal message on card:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;label&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;textarea name=&quot;Message&quot; id=&quot;Message&quot; cols=&quot;45&quot; rows=&quot;5&quot;&gt;Enter your personal message here&lt;/textarea&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/label&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/p&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;p&gt;Click on &lt;strong&gt;Submit&lt;/strong&gt; when done; click on &lt;strong&gt;Clear Form&lt;/strong&gt; to restart.&lt;/p&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;p&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;input name=&quot;Submit&quot; type=&quot;submit&quot; id=&quot;Submit&quot; value=&quot;Submit&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;label&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;reset&quot; name=&quot;Reset&quot; id=&quot;Reset&quot; value=&quot;Clear Form&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/label&gt;&lt;/p&gt;<br />
&nbsp; &nbsp; &lt;/form&gt;&nbsp; &nbsp; &lt;/td&gt;<br />
&nbsp; &lt;/tr&gt;<br />
&nbsp; <br />
&nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &lt;td&gt;&lt;a href=&quot;Produce.html&quot;&gt;&lt;img src=&quot;produce.jpg&quot; alt=&quot;Produce&quot; width=&quot;202&quot; height=&quot;201&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/td&gt;<br />
&nbsp; &lt;/tr&gt;<br />
&nbsp; <br />
&nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &lt;td&gt;&lt;a href=&quot;History.html&quot;&gt;&lt;img src=&quot;history.jpg&quot; alt=&quot;History&quot; width=&quot;202&quot; height=&quot;201&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/td&gt;<br />
&nbsp; &lt;/tr&gt;<br />
&nbsp; <br />
&nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &lt;td&gt;&amp;nbsp;&lt;/td&gt;<br />
&nbsp; &lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;script type=&quot;text/javascript&quot;&gt;<br />
var months=new Array(13);<br />
months[1]=&quot;January&quot;;<br />
months[2]=&quot;February&quot;;<br />
months[3]=&quot;March&quot;;<br />
months[4]=&quot;April&quot;;<br />
months[5]=&quot;May&quot;;<br />
months[6]=&quot;June&quot;;<br />
months[7]=&quot;July&quot;;<br />
months[8]=&quot;August&quot;;<br />
months[9]=&quot;September&quot;;<br />
months[10]=&quot;October&quot;;<br />
months[11]=&quot;November&quot;;<br />
months[12]=&quot;December&quot;;<br />
var time=new date();<br />
var lmonth=months[time.getMonth() + 1];<br />
var date=time.getdate();<br />
var year=time.getYear();<br />
if (year &lt; 2000)<br />
year = year + 1900;<br />
document.write(&quot;&lt;right&gt;&quot; + lmonth + &quot; &quot;);<br />
document.write(date + &quot;, &quot; + year + &quot;&lt;/right&gt;&quot;);<br />
&lt;/script&gt; <br />
&lt;/body&gt;<br />
&lt;/html&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>LizzyJo</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241974.html</guid>
		</item>
		<item>
			<title>Code Snippet gallery image counting.</title>
			<link>http://www.daniweb.com/code/snippet241858.html</link>
			<pubDate>Fri, 27 Nov 2009 18:44:59 GMT</pubDate>
			<description><![CDATA[Hello!  
Below is a part of an html document where I need to save myself time in having to manually put in the number in the p class="ArtNumbers" section. 
 
Thank you very much, I'm grateful for your time.]]></description>
			<content:encoded><![CDATA[<div>Hello! <br />
Below is a part of an html document where I need to save myself time in having to manually put in the number in the p class=&quot;ArtNumbers&quot; section.<br />
<br />
Thank you very much, I'm grateful for your time.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>CommDave</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241858.html</guid>
		</item>
		<item>
			<title>HELP Pls!!!</title>
			<link>http://www.daniweb.com/forums/thread241785.html</link>
			<pubDate>Fri, 27 Nov 2009 11:47:18 GMT</pubDate>
			<description>Before I start, let me openly declare am a ROOKIE. Am making a fantasy football site due in 2 months. Am still stuck on the backend part of it. Am having a problem making a page for editing player information where I have a drop down menu of the teams and on selection of a team, all players in that...</description>
			<content:encoded><![CDATA[<div>Before I start, let me openly declare am a ROOKIE. Am making a fantasy football site due in 2 months. Am still stuck on the backend part of it. Am having a problem making a page for editing player information where I have a drop down menu of the teams and on selection of a team, all players in that team are displayed below - preferably as links - so that when clicked one is navigated to the edit information form. I understand javascript may work a miracle as far as this is concerned. Thnx.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>mastia22</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241785.html</guid>
		</item>
		<item>
			<title>Please advise</title>
			<link>http://www.daniweb.com/forums/thread241744.html</link>
			<pubDate>Fri, 27 Nov 2009 06:29:24 GMT</pubDate>
			<description><![CDATA[Hi All, 
 
I need to track the number of times a link is clicked/file downloaded 
& capture this info in the database. 
 
please advise urgently..]]></description>
			<content:encoded><![CDATA[<div>Hi All,<br />
<br />
I need to track the number of times a link is clicked/file downloaded<br />
&amp; capture this info in the database.<br />
<br />
please advise urgently..</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>naziatarannum</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241744.html</guid>
		</item>
		<item>
			<title>jQuery/Javascript Clock</title>
			<link>http://www.daniweb.com/forums/thread241715.html</link>
			<pubDate>Fri, 27 Nov 2009 03:39:48 GMT</pubDate>
			<description><![CDATA[clock(); 
function clock(){ 
	var d=new Date(); 
	var hour = d.getHours(); 
	var minute = d.getMinutes(); 
	 
	$('#hr1').css('text-indent', '-'+hour.charAt(hour.length-2)*50+'px'); 
	$('#hr2').css('text-indent', '-'+hour.charAt(hour.length-1)*50+'px'); 
	$('#min1').css('text-indent',...]]></description>
			<content:encoded><![CDATA[<div> <pre style="margin:20px; line-height:13px">clock();<br />
function clock(){<br />
&nbsp; &nbsp; &nbsp; &nbsp; var d=new Date();<br />
&nbsp; &nbsp; &nbsp; &nbsp; var hour = d.getHours();<br />
&nbsp; &nbsp; &nbsp; &nbsp; var minute = d.getMinutes();<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; $('#hr1').css('text-indent', '-'+hour.charAt(hour.length-2)*50+'px');<br />
&nbsp; &nbsp; &nbsp; &nbsp; $('#hr2').css('text-indent', '-'+hour.charAt(hour.length-1)*50+'px');<br />
&nbsp; &nbsp; &nbsp; &nbsp; $('#min1').css('text-indent', '-'+minute.charAt(minute.length-2)*50+'px');<br />
&nbsp; &nbsp; &nbsp; &nbsp; $('#min2').css('text-indent', '-'+minute.charAt(minute.length-1)*50+'px');<br />
&nbsp; &nbsp; &nbsp; &nbsp; clock();<br />
}</pre><br />
I need help updating my jQuery clock. setInterval and looping the function doesn't seem to work. The variables are updating well but the css properties are not. Basically, my clock works by pushing the images off a &lt;li&gt; tag so the it shows only one number. The position of the the image is suppose to change  with the time. The only correct time I get is when I refresh the page.<br />
<br />
Any help is appreciated.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>Agent Cosmic</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241715.html</guid>
		</item>
		<item>
			<title>Run jQuery code on button click</title>
			<link>http://www.daniweb.com/forums/thread241651.html</link>
			<pubDate>Thu, 26 Nov 2009 20:10:09 GMT</pubDate>
			<description><![CDATA[I would like to run the javascript code in between the script tag on a button press, but the code runs as the page load.  Please point out what I am doing incorrectly. 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>I would like to run the javascript code in between the script tag on a button press, but the code runs as the page load.  Please point out what I am doing incorrectly.<br />
 <pre style="margin:20px; line-height:13px">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;<br />
&lt;html&gt;<br />
&nbsp; &nbsp; &lt;head&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;title&gt;&lt;/title&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;html/html; charset=UTF-8&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;css/reset.css&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;css/local.css&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;script type=&quot;text/javascript&quot; src=&quot;js/jquery.js&quot;&gt;&lt;/script&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;script type=&quot;text/javascript&quot; src=&quot;js/jquery.jgfeed.js&quot;&gt;&lt;/script&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!--<br />
&nbsp; &nbsp; &nbsp; &nbsp; Inline Javascript<br />
&nbsp; &nbsp; &nbsp; &nbsp; --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;script type=&quot;text/javascript&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $.jGFeed(<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'http://feedproxy.google.com/nettuts',<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function(feeds){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Check for errors<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(!feeds){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // there was an error<br />
&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; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // do whatever you want with feeds here<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $('#message').append('Hello World&lt;br /&gt;');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for(var i=0; i&lt;feeds.entries.length; i++){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var entry = feeds.entries[i];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Entry title<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; entry.title;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $('#message').append(entry.title + '&lt;br /&gt;');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $('#message').append(entry.link + '&lt;br /&gt;');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $('#message').append(entry.author + '&lt;br /&gt;');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $('#message').append(entry.publishedDate + '&lt;br /&gt;');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $('#message').append(entry.contentSnippet + '&lt;br /&gt;');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }}, 10);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/script&gt;<br />
&nbsp; &nbsp; &lt;/head&gt;<br />
&nbsp; &nbsp; &lt;body&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&quot;wrapper&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&quot;instruction&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;button&quot; value=&quot;Start RSS&quot; onClick=&quot;$.jGFeed()&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&quot;content&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&quot;message&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &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; &lt;/div&gt;<br />
&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>rouse</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241651.html</guid>
		</item>
		<item>
			<title>little Steps to Code Your Big Design</title>
			<link>http://www.daniweb.com/forums/thread241647.html</link>
			<pubDate>Thu, 26 Nov 2009 19:45:20 GMT</pubDate>
			<description><![CDATA[It is not hard to convert your design into validate CSS/HTML/XHTML markup, but what makes the difference is how well you are able to do it! Because at last, it is the "quality" of your coding which brings out the performance of the web page, and the reason for which any designers outsource their...]]></description>
			<content:encoded><![CDATA[<div>It is not hard to convert your design into validate CSS/HTML/XHTML markup, but what makes the difference is how well you are able to do it! Because at last, it is the &quot;quality&quot; of your coding which brings out the performance of the web page, and the reason for which any designers outsource their coding part to some professional. Ex: - If your web page contains many pictures, it would take time to load, but using CSS code with either HTML or XHTML will make it fast.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>PSDtoHTML</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241647.html</guid>
		</item>
		<item>
			<title>Web Design is The Essence of Your Business</title>
			<link>http://www.daniweb.com/forums/thread241641.html</link>
			<pubDate>Thu, 26 Nov 2009 19:36:32 GMT</pubDate>
			<description><![CDATA[Design ideas don't have to be hard to find. For you out there that have specific ideas which are ready to be implemented, you just need someone with the technical know-how to turn them into web reality. Get ideas about the latest web design trends and communications concepts by looking analytically...]]></description>
			<content:encoded><![CDATA[<div>Design ideas don't have to be hard to find. For you out there that have specific ideas which are ready to be implemented, you just need someone with the technical know-how to turn them into web reality. Get ideas about the latest web design trends and communications concepts by looking analytically at your competitors sites. Evaluating example products is one way to get ideas for detailed design. From these set of ideas, you can then conclude on your final approach on how you want your assigned designer to get the whole thing done.<br />
<br />
Flash is already the Web's standard for dynamic web animation. In creating original cutting-edge design there's nothing better than using Flash Web Design. It is by far, a very versatile and popular method to add eye-catching action to your web site. Flash is also probably the trendiest technology currently used in web design. However a slow-loading web page or flash movie makes seconds seem much longer, if you happen to &quot;overdo&quot; it. Flash does not only associate itself with animations but also as great complimentary values to other media such as presentations, videos and audios.<br />
<br />
When you create your own web page keep the importance of shape in mind. You don't want certain things to be in the extra large department when other items such as your text is relatively small to keep up with the overall ratio size of the presentation. Another important item to consider in your websites is the level of seduction. Yes, you read that right. If you've ever got lost in the maze of some websites, you'll know the importance of intuitive web design. Seductive websites provide users the reason to stay longer by providing good typography and by not underestimating the importance of navigation. Knowing the importance of this, you cannot afford to take a chance on any trial-and-error method. The importance of writing quality web content is also equally important. Nevertheless, until recently, though, a greater emphasis has been placed on the importance and overall influence of color in the field of web design.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>PSDtoHTML</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241641.html</guid>
		</item>
		<item>
			<title>inthemo is the worst company in .NET field</title>
			<link>http://www.daniweb.com/forums/thread241621.html</link>
			<pubDate>Thu, 26 Nov 2009 17:17:41 GMT</pubDate>
			<description><![CDATA[for job seekers in .NET/javascripts 
 
one of my friend was called for a contract by a Los Angeles based consulting agency as they said his resume was selected for one of their client's requirements. he was sent to their client company Inthemo on last monday for a 1 week probation period. The...]]></description>
			<content:encoded><![CDATA[<div>for job seekers in .NET/javascripts<br />
<br />
one of my friend was called for a contract by a Los Angeles based consulting agency as they said his resume was selected for one of their client's requirements. he was sent to their client company Inthemo on last monday for a 1 week probation period. The person whom he was supposed to meet on monday did not show up for the whole day and a guy named Shanket Patel introduced himself and started assigning work for my frn. he conversed in Hindi most of the time itseems. my frn told Shanket multiple times that he does not know Hindi and asked to explain in English but inpite of that he spoke in Hindi .. what a fool he is. There was another guy Pradeep who came to the company for 1 week probation period during the same period my frn went., the way Shanket Patel spoke to the other guy was totally different and sounded very polite to him as Pradeep also knew Hindi, my frn felt very discriminated even though he s from the same country just for the reason tat he didnt kno hindi. The person incharge Eric Bernal met my frn on tuesday and my frn told to him that he had 2years of part time work experience in .NET using C# in server side scripting and he also said that he does not have much experience in client side scripting. their work was in client side scripting, inspite of that my frn was allowed to work. he was called to work in .NET for 1 week but he was tested in .NET only for 3days (Monday, Tuesday, Wednesday) and the other 2days they got their company's administrative work done by my frn which he was not at all informed prior. The decision whether or not to select him must have been made by Wednesday evening but he was also called on Thursday, Friday to get their company's admin work done and also on the next Monday as well which was absolutely unnecessary for him and finally on monday evening they said he s not selected. he came to Los Angeles from Chicago because people from the consulting agency said that his resume was qualified but he was ended up in Iltreatement and got assigned unrelated work wasting his time, money and still has not forgot that horrible experience. he said that working environment at inthemo is the worst ever he has seen/heard about in the US and very angry bot the way those people treated him and feels like no job seekers in the US must undergo such a mental torture. so guys my advice is to look for a better company to work for if u got interview from inthemo.<br />
<br />
1. There is absolutely no professionalism (you must know hindi to get into this company even though u r in US)<br />
<br />
2. They do not know how to select a candidate (a true IT professional will easily know whether a candidate is fir or not but the so called IT professionals of Inthemo took 3 full business days. how will a person understand the instructions if explained in a language tat he doesnt know.)<br />
<br />
3. Assigning unrelated work (candidates who came to work in .NET must only be tested in that field.. atleast for the probation period. and its pretty evident that they kept him till monday to get their admin work done for free. what nonsense is this.. does Eric thinks ppl who come for probation r his servants to get his work done for fre . ths is obvious tat they told the result so late. my friend has wasted 10days for this shit .. wher he cud hav applied for 1000s of jobs, develop some web apps in scriptlance.com and earn money n many more useful stuf.)<br />
<br />
stil if u wanna experience the same then hav fun in tat shitty company .</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>jiggy_ji</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241621.html</guid>
		</item>
		<item>
			<title>Plz Help Website Menus not opening in IE8 allthough working with IE6/7, mozilla,crome</title>
			<link>http://www.daniweb.com/forums/thread241615.html</link>
			<pubDate>Thu, 26 Nov 2009 15:37:02 GMT</pubDate>
			<description><![CDATA[Dear Friends!! 
Please help me i am in problem.. 
i am a student trying to make a live project i.e website regarding my small town.... 
my website menu's is not opening in Internet Explorer 8. Allthough it is perfectly opening in IE6, IE7, mozilla and crome. But i dont know why it is not opening in...]]></description>
			<content:encoded><![CDATA[<div>Dear Friends!!<br />
Please help me i am in problem..<br />
i am a student trying to make a live project i.e website regarding my small town....<br />
my website menu's is not opening in Internet Explorer 8. Allthough it is perfectly opening in IE6, IE7, mozilla and crome. But i dont know why it is not opening in Internet explore 8<br />
Menus are made in CSS.<br />
You can find a sample of my menu bar at <a rel="nofollow" class="t" href="http://www.slaggarwal.com/test/administrative.htm" target="_blank">http://www.slaggarwal.com/test/administrative.htm</a><br />
Please help me to solve this issue. I want this menu should open in every browser.<br />
I think it  is problem related with Doc tag as follows:<br />
&lt;!DOCTYPE html public &quot;-//W3C//DTD html 4.01 Transitional//EN&quot; <br />
&quot;http://www.w3.org/TR/html4/loose.dtd&quot;&gt;<br />
I dont know the exact problem, but i think it is related with  tag mentioned above.<br />
Please tell me the solution to get rid of this problem.<br />
Please Please help<br />
Its urgent<br />
GOd bless you.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>hbk_star2006</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241615.html</guid>
		</item>
		<item>
			<title>How to minimize the number of function calls in YUI</title>
			<link>http://www.daniweb.com/forums/thread241602.html</link>
			<pubDate>Thu, 26 Nov 2009 14:41:12 GMT</pubDate>
			<description>Dear Members, 
 
I am using YUI 2.7 in my application for Tabview, Treeview, History and RichTextEditor. Simultaneously I am using JQueryUI and JQGrid. I noticed that my application is taking some time to render the content. I used *Javascript Deobfuscator for FireFox* and I saw that there are two...</description>
			<content:encoded><![CDATA[<div>Dear Members,<br />
<br />
I am using YUI 2.7 in my application for Tabview, Treeview, History and RichTextEditor. Simultaneously I am using JQueryUI and JQGrid. I noticed that my application is taking some time to render the content. I used <span style="font-weight:bold">Javascript Deobfuscator for FireFox</span> and I saw that there are two functions running at an interval of 50ms from the <span style="font-weight:bold"><span style="font-style:italic">history.js</span></span> file.<br />
<br />
However, I increased the interval to 500ms which is working fine for me.<br />
<br />
Also I saw that with a simple mouse movement on a tab, there are so many function calls being made. They are from <span style="font-style:italic"><span style="font-weight:bold">utilities.js event-min.js tabview-min.js element-min.js dom-min.js.</span></span><br />
<br />
Initially the browser seems to fine. But after working for some time, it is taking more and more time to render the content.<br />
<br />
Please do let me know if there is way to minimize number of function calls being made. Is there a way to turn off the mouse move event for YUI? Is it safe to do so?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>ramakathare</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241602.html</guid>
		</item>
		<item>
			<title>(1st post! :) ) Bit of an urgent mp3 accesibility question - solution needed :)</title>
			<link>http://www.daniweb.com/forums/thread241579.html</link>
			<pubDate>Thu, 26 Nov 2009 13:34:11 GMT</pubDate>
			<description><![CDATA[Hi people 
 
Ive been asked to design a music shop - users can listen to cut versions of the songs, and then buy individual tracks or a whole album. This has been completely sprung on me and i have a lot to deal with in terms of payment processing etc so I'm trying to get thru the design quickly.....]]></description>
			<content:encoded><![CDATA[<div>Hi people<br />
<br />
Ive been asked to design a music shop - users can listen to cut versions of the songs, and then buy individual tracks or a whole album. This has been completely sprung on me and i have a lot to deal with in terms of payment processing etc so I'm trying to get thru the design quickly.. but Im being stopped by this problem<br />
<br />
My problem is how to allow the viewer to play a cut version of each track before buying it. a clear part of this project is that it has to be accessible by all - inc. those without Flash.<br />
<br />
Ive been asked to make the player/individual mp3 players not be able to play more than one track at once - for an actively playing track to stop, when 'play' is clicked on another track.<br />
<br />
So, I need to find a way to ideally play all the tracks using only javascript (is this correct for accessibility purposes), and a way for any track playing to stop when another track's 'play' gets clicked.<br />
<br />
Ive thought about including a javascript player for each individual track and then the possibility of adding extra code to make one player stop when another starts playing - because i am a javascript newbie, and can use plugins but not much else, i havent a clue how easy or possible this is - can anyone help?<br />
<br />
PS: If it helps , I did find &quot;Niftyplayer&quot; - <a rel="nofollow" class="t" href="http://www.varal.org/media/niftyplayer/" target="_blank">http://www.varal.org/media/niftyplayer/</a> - which someone said could work with no flash components at all and only javascript, but then no reference to how.. (id need to be able to modify colour and style to a small extent)<br />
<br />
PPS: This is my first post here, so hello everyone - im emma of <a rel="nofollow" class="t" href="http://www.ameliealden.com" target="_blank">http://www.ameliealden.com</a> (ok its broken but it gets jobs..) and an amateur webdesigner :)</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>emmaburge</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241579.html</guid>
		</item>
		<item>
			<title>page refreshing problem in jquery ajax</title>
			<link>http://www.daniweb.com/forums/thread241564.html</link>
			<pubDate>Thu, 26 Nov 2009 12:20:06 GMT</pubDate>
			<description>Hi all, 
 
    I have a dropdown and when the value of that drop down changes corresponding pages are displayed using jquery ajax. My problem is that when i refresh the page standing in the page generated by the ajax , the home page containing the dropdown is displaying instead of the same page. 
...</description>
			<content:encoded><![CDATA[<div>Hi all,<br />
<br />
    I have a dropdown and when the value of that drop down changes corresponding pages are displayed using jquery ajax. My problem is that when i refresh the page standing in the page generated by the ajax , the home page containing the dropdown is displaying instead of the same page.<br />
<br />
I have tried the history plugin of the jquery but it is based on the hash(#) url in the address bar. But here in the above case there is no url appended in the address bar because the page is generated on the change of the dropdown using jquery ajax.<br />
<br />
I want to see the same page that is generated by the jquery ajax, after refresh button on the browser is clicked. Please help me.<br />
<br />
Thanks in advance.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>jino</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241564.html</guid>
		</item>
		<item>
			<title>Form Inside a Form</title>
			<link>http://www.daniweb.com/forums/thread241538.html</link>
			<pubDate>Thu, 26 Nov 2009 10:22:06 GMT</pubDate>
			<description>Hi, 
    I am trying to load dynamically a consolidated view of different pages.  I am using prototype.js to do the ajax loading. 
In one of my page there is an option button to change the option. 
and this component should be embedded inside a form to work. 
 
As I am having place div tag inside a...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
    I am trying to load dynamically a consolidated view of different pages.  I am using prototype.js to do the ajax loading.<br />
In one of my page there is an option button to change the option.<br />
and this component should be embedded inside a form to work.<br />
<br />
As I am having place div tag inside a main form and because this page is having another form, My page is not getting displayed in IE. It is working fine with FF. <br />
<br />
Could you please let me know is there any way to do this.<br />
I am using custom JSF components and this will not work with out &lt;:form&gt; <br />
<br />
Please help me on the same. I cannot have the place holder outside mainForm.<br />
<br />
Regards,<br />
Balu.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>basilabraham</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241538.html</guid>
		</item>
		<item>
			<title><![CDATA[Simple Toggle button Play/Pause [jQuery]]]></title>
			<link>http://www.daniweb.com/forums/thread241491.html</link>
			<pubDate>Thu, 26 Nov 2009 07:18:21 GMT</pubDate>
			<description><![CDATA[Hi I can't get my toggle button to work so once again I'm here hoping for some good soul to help me. Below is my jQuery code. I have 2 css clasess 1st is play with a referenace to jpg play and the 2nd one has reference to pause.jpg. All i want is simply to toggle between the two. 
 
html 
  <div...]]></description>
			<content:encoded><![CDATA[<div>Hi I can't get my toggle button to work so once again I'm here hoping for some good soul to help me. Below is my jQuery code. I have 2 css clasess 1st is play with a referenace to jpg play and the 2nd one has reference to pause.jpg. All i want is simply to toggle between the two.<br />
<br />
html<br />
 <pre style="margin:20px; line-height:13px">&lt;span id=&quot;play&quot;&gt;&lt;/span&gt;</pre><br />
css<br />
 <pre style="margin:20px; line-height:13px">#play<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; width:100px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; height:60px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; background-image: url(../images/play.jpg);<br />
&nbsp; &nbsp; &nbsp; &nbsp; float:left;<br />
}<br />
#pause<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; width:100px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; height:60px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; background-image: url(../images/pause.jpg);<br />
&nbsp; &nbsp; &nbsp; &nbsp; float:left;<br />
}</pre><br />
jQuery<br />
 <pre style="margin:20px; line-height:13px">$(document).ready(function(){<br />
&nbsp; &nbsp; $('#play').click(function(){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; $(this).toggleClass(&quot;#pause&quot;);<br />
&nbsp; &nbsp; });<br />
});</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/thread241491.html</guid>
		</item>
		<item>
			<title>AJAX - no idea</title>
			<link>http://www.daniweb.com/forums/thread241438.html</link>
			<pubDate>Thu, 26 Nov 2009 03:50:05 GMT</pubDate>
			<description>I have no idea on AJAX, Can anyone please advise on any reference material as am a beginner?</description>
			<content:encoded><![CDATA[<div>I have no idea on AJAX, Can anyone please advise on any reference material as am a beginner?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>naziatarannum</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241438.html</guid>
		</item>
		<item>
			<title>local varibles messing up function</title>
			<link>http://www.daniweb.com/forums/thread241395.html</link>
			<pubDate>Wed, 25 Nov 2009 22:31:25 GMT</pubDate>
			<description>hi i am trying to make a div move but i want to make a loop so i can move more than one.  I put the variables into the funtion,  it works fine with the destination variables but when  put x and y in the function it returned get elementById is null.   
 
I am wondering why this has happened thanks ...</description>
			<content:encoded><![CDATA[<div>hi i am trying to make a div move but i want to make a loop so i can move more than one.  I put the variables into the funtion,  it works fine with the destination variables but when  put x and y in the function it returned get elementById is null.  <br />
<br />
I am wondering why this has happened thanks <br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;script type=&quot;text/javascript&quot;&gt;&nbsp;  <br />
<br />
<br />
function moveimg() { <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
var x = 10; //Starting Location - left<br />
var y = 10; //Starting Location - top<br />
&nbsp;var dest_x = 400; //Ending Location - left<br />
var dest_y = 200; //Ending Location - top<br />
intervalX = Math.ceil(dest_x/dest_y);<br />
intervalY = Math.ceil(dest_y/dest_x)<br />
&nbsp;  <br />
if(x &gt; dest_x) {<br />
x -= intervalX;<br />
} else if(x &lt; dest_x) {<br />
x += intervalX<br />
}<br />
if(y &gt; dest_y) {<br />
y -= intervalY;<br />
} else if(y &lt; dest_y) {<br />
y += intervalY<br />
}<br />
// Just in case we're closer to the destination than the motion interval<br />
if(Math.abs(dest_x - x) &lt; intervalX) x = dest_x;<br />
if(Math.abs(dest_y - y) &lt; intervalY) y = dest_y;<br />
<br />
if (x != dest_x || y != dest_y) {<br />
// Repeat the operation<br />
document.getElementById(&quot;picme&quot;).style.left = x+'px';<br />
document.getElementById(&quot;picme&quot;).style.top = y+'px';<br />
window.setTimeout(moveimg,100);<br />
}<br />
}&nbsp; &nbsp; <br />
&lt;/script&gt;<br />
<br />
<br />
&lt;/head&gt;<br />
&lt;body onload=&quot;moveimg()&quot;&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>gaz</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241395.html</guid>
		</item>
		<item>
			<title>Context-free Feedback Form</title>
			<link>http://www.daniweb.com/forums/thread241378.html</link>
			<pubDate>Wed, 25 Nov 2009 20:37:11 GMT</pubDate>
			<description><![CDATA[I'm looking to put a context-free feedback form on my site (link placed in my navbar) that would cause a small window to pop-up, allow the user to enter feedback and submit. On submit, the window would disapear and the user would remain on the page they were previously on.  I'm predominately a PHP...]]></description>
			<content:encoded><![CDATA[<div>I'm looking to put a context-free feedback form on my site (link placed in my navbar) that would cause a small window to pop-up, allow the user to enter feedback and submit. On submit, the window would disapear and the user would remain on the page they were previously on.  I'm predominately a PHP / MySql programmer but suspect this may be better done in Javascript or something else. Can anyone steer me towards useful info or links on how I might do this ?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>FeralReason</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241378.html</guid>
		</item>
		<item>
			<title>problem in linking pages in wordpress!!</title>
			<link>http://www.daniweb.com/forums/thread241372.html</link>
			<pubDate>Wed, 25 Nov 2009 19:43:05 GMT</pubDate>
			<description><![CDATA[hello...i m new to the web designing field, currently i m working on wordpress themes for my website, the exact link of the theme for which i m working is{*"http://www.press75.com/the-folio-elements-wordpress-theme/"*},the theme  
"folio elements" has a image slider and when we click on a...]]></description>
			<content:encoded><![CDATA[<div>hello...i m new to the web designing field, currently i m working on wordpress themes for my website, the exact link of the theme for which i m working is{*&quot;http://www.press75.com/the-folio-elements-wordpress-theme/&quot;*},the theme <br />
&quot;folio elements&quot; has a image slider and when we click on a particular image it gives us the details of the image...<br />
now the problem that i'm getting is- i have uploaded the images but when i click on the images it gives me the error as-<br />
{**********************<br />
Warning: include(../../../../wp-load.php) [function.include]: failed to open stream: No such file or directory in C:\xampp\webalizer\wordpress\wp-content\themes\FolioElements-v1.2\folioelements\ajax\pageloader.php on line 3<br />
<br />
Warning: include() [function.include]: Failed opening '../../../../wp-load.php' for inclusion (include_path='.;C:\xampp\php\pear\') in C:\xampp\webalizer\wordpress\wp-content\themes\FolioElements-v1.2\folioelements\ajax\pageloader.php on line 3<br />
<br />
Fatal error: Call to undefined function query_posts() in C:\xampp\webalizer\wordpress\wp-content\themes\FolioElements-v1.2\folioelements\ajax\pageloader.php on line 18<br />
<br />
************************}<br />
<br />
<br />
<br />
<br />
<br />
<br />
and the script given below is of the &quot;pageloader.php&quot;, which has been discussed in the above lines.<br />
{{*******************<br />
&lt;?php<br />
<br />
include ('../../../../wp-load.php');<br />
global $wpdb;<br />
<br />
if (isset($_GET['pagename']) || isset($_GET['postnum'])) {<br />
	// INIT<br />
	$query = '';<br />
	<br />
	// Create the query based on what was passed<br />
	if (isset($_GET['pagename'])) {<br />
		$query = 'pagename=' . $_GET['pagename'];<br />
	} elseif (isset($_GET['postnum'])) {<br />
		$query = 'p=' . $_GET['postnum'];<br />
	}<br />
<br />
	// Execute Query<br />
	query_posts($query);<br />
	<br />
	// Output the information<br />
	if (have_posts()) : while (have_posts()) : the_post(); ?&gt;<br />
        &lt;h2&gt;&lt;?php the_title(); ?&gt;&lt;/h2&gt;<br />
        &lt;div class=&quot;entry&quot;&gt;<br />
            &lt;?php the_content(); ?&gt;<br />
        &lt;/div&gt;<br />
	&lt;?php endwhile; else : ?&gt;<br />
    	&lt;h2&gt;Sorry!!!&lt;/h2&gt;<br />
        &lt;div class=&quot;entry&quot;&gt;What you are looking for isn't here.&lt;/div&gt;<br />
	&lt;?php endif;<br />
} else { ?&gt;<br />
	&lt;h2&gt;Please do not try and load this page directly&lt;/h2&gt;<br />
&lt;?php } ?&gt;<br />
********************************}}<br />
<br />
<br />
so, could you please help me in loading the images with details...<br />
thanks for your time!!!!<br />
i'll really appreciate your help.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>sanna.s</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241372.html</guid>
		</item>
		<item>
			<title>div span</title>
			<link>http://www.daniweb.com/forums/thread241321.html</link>
			<pubDate>Wed, 25 Nov 2009 16:03:35 GMT</pubDate>
			<description>I have a tree am working it dynamically on server side. 
i want on click an image like loading to appear. anyone knows how to workout this with div and span??? 
 
any little  example?</description>
			<content:encoded><![CDATA[<div>I have a tree am working it dynamically on server side.<br />
i want on click an image like loading to appear. anyone knows how to workout this with div and span???<br />
<br />
any little  example?</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/thread241321.html</guid>
		</item>
		<item>
			<title>does AJAX work in IE6 ? - AJAX + PHP - checking for a file exist and then redirecting</title>
			<link>http://www.daniweb.com/forums/thread241253.html</link>
			<pubDate>Wed, 25 Nov 2009 10:49:33 GMT</pubDate>
			<description><![CDATA[I found a great client side image resize solution: 
http://www.resize-before-upload.com/ 
 
but the free version doesn't have form integration, so I copied some ajax code off the internet and integrated it into my PHP - so it  
 
just keeps checking for a specific file to be uploaded and then the...]]></description>
			<content:encoded><![CDATA[<div>I found a great client side image resize solution:<br />
<a rel="nofollow" class="t" href="http://www.resize-before-upload.com/" target="_blank">http://www.resize-before-upload.com/</a><br />
<br />
but the free version doesn't have form integration, so I copied some ajax code off the internet and integrated it into my PHP - so it <br />
<br />
just keeps checking for a specific file to be uploaded and then the PHP just echos 'success' and if the ajax sees that it redirects to <br />
<br />
another page to continue the process<br />
<br />
Here's the JS (Jquery obviously)<br />
 <pre style="margin:20px; line-height:13px">$(document).ready(function()<br />
{<br />
&nbsp;  //filecheck.php is called every 2 seconds to ask server if file has been uploaded yet<br />
&nbsp;  var refreshId = setInterval(function()<br />
&nbsp;  {<br />
&nbsp;  $('#Davfilecheck').load('scripts/filecheck.php');<br />
&nbsp;  <br />
&nbsp;  var fc1 = new String();<br />
&nbsp;  fc1 = document.getElementById('Davfilecheck').innerHTML;<br />
<br />
if (fc1 == &quot;Success!&quot;){<br />
alert (&quot;The photo has been successfully uploaded to the site. Click OK to enter details for photo&quot;);<br />
window.location=&quot;index.php?locate=upload&amp;filedone=yes&quot;;<br />
}<br />
<br />
<br />
&nbsp;  }, 2000);<br />
<br />
});</pre><br />
And here's the 'filecheck.php' code<br />
 <pre style="margin:20px; line-height:13px">&lt;?php<br />
if (file_exists('../secure/uploads/uploadfile')){echo &quot;Success!&quot;;}<br />
?&gt;</pre><br />
This system works great with most newer browsers but when the file is uploaded in IE6 the JS doesn't seem to notice.<br />
<br />
I will upload my main PHP script if necessary but I'm pretty sure this is the part that won't work in IE6.<br />
<br />
Is the only option to ask the users to upgrade browser or is there a hack for getting this to work in IE6 ?<br />
<br />
P.S. I've also noticed lately that on some browsers the code loops around a second time, causing problems. It must be terrible code  - I'm sorry but my PHP coding is a lot better than my JS coding. :-D<br />
<br />
If anybody knows a more efficient way to do this I would really appreciate it.<br />
<br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>davil</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241253.html</guid>
		</item>
		<item>
			<title>Please help on href</title>
			<link>http://www.daniweb.com/forums/thread241249.html</link>
			<pubDate>Wed, 25 Nov 2009 10:40:21 GMT</pubDate>
			<description>Hi All, 
I have a question. 
 
How to track the how many times a link is clicked (by any user across the web) in a day? 
 
If I use onClick() on href, its of no use because it is only for a single session. 
 
 
Please advise.</description>
			<content:encoded><![CDATA[<div>Hi All,<br />
I have a question.<br />
<br />
How to track the how many times a link is clicked (by any user across the web) in a day?<br />
<br />
If I use onClick() on href, its of no use because it is only for a single session.<br />
<br />
<br />
Please advise.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>naziatarannum</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241249.html</guid>
		</item>
		<item>
			<title>Is it possible to swap more than 2 images?</title>
			<link>http://www.daniweb.com/forums/thread241065.html</link>
			<pubDate>Tue, 24 Nov 2009 17:43:36 GMT</pubDate>
			<description>I am working in dreamweaver and want to have a page that opens with pictures that change to a new one every time that you mouse over.  
 
There are around 3 or 4 different pictures, and after the last one, it can go back to the beginning. Or, it could also be completely random. 
 
I have no problem...</description>
			<content:encoded><![CDATA[<div>I am working in dreamweaver and want to have a page that opens with pictures that change to a new one every time that you mouse over. <br />
<br />
There are around 3 or 4 different pictures, and after the last one, it can go back to the beginning. Or, it could also be completely random.<br />
<br />
I have no problem getting it to change once, using behaviours, it is the additional swap images that I can't figure out.<br />
<br />
Anyone got advice?<br />
<br />
Thanks,<br />
Kimaya</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>kimayarani</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241065.html</guid>
		</item>
		<item>
			<title>Testing Javascripts and AJAXs with Selenium</title>
			<link>http://www.daniweb.com/forums/thread241000.html</link>
			<pubDate>Tue, 24 Nov 2009 13:37:10 GMT</pubDate>
			<description>Hello all, 
I start working with Selenium Web Testing 5 day ago, and I cannot figure out how to test Javascripts and AJAX-driven menus. I read almost every sentence in documentation, it explains well but I cannot understan without an example. For example I tried to find an example testing on an...</description>
			<content:encoded><![CDATA[<div>Hello all,<br />
I start working with Selenium Web Testing 5 day ago, and I cannot figure out how to test Javascripts and AJAX-driven menus. I read almost every sentence in documentation, it explains well but I cannot understan without an example. For example I tried to find an example testing on an active menu which shows and hides button when mouse moves over them, but I failed. <br />
<br />
Can any of you give me the best tutorial and an example like I explained.<br />
<br />
Thanks anyway.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>noktasizvirgul</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241000.html</guid>
		</item>
		<item>
			<title>Retrieving values from html tables</title>
			<link>http://www.daniweb.com/forums/thread240969.html</link>
			<pubDate>Tue, 24 Nov 2009 11:31:49 GMT</pubDate>
			<description>Hi, 
 
I have populated data in html table. Now I have to retrieve the value from this table, row-wise. How can i do this. 
Please help...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I have populated data in html table. Now I have to retrieve the value from this table, row-wise. How can i do this.<br />
Please help...</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>ch_nilanjan</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240969.html</guid>
		</item>
		<item>
			<title>Dynamic Ajax php and javascript, using while loop</title>
			<link>http://www.daniweb.com/forums/thread240965.html</link>
			<pubDate>Tue, 24 Nov 2009 11:19:00 GMT</pubDate>
			<description>i have a database, a page which get the data from database, and ajax code which modify the data(here adding as a friend).. 
 
LOGIC 
 
i succesfully get the data using php and in while loop(fetch_assoc) i get the email of the person who want to add other person as a friend, his email has been used...</description>
			<content:encoded><![CDATA[<div>i have a database, a page which get the data from database, and ajax code which modify the data(here adding as a friend)..<br />
<br />
LOGIC<br />
<br />
i succesfully get the data using php and in while loop(fetch_assoc) i get the email of the person who want to add other person as a friend, his email has been used for div id like &lt;div id=&quot;xxx@yyy.com&quot;&gt; <br />
<br />
and an onclick function which send the email to the function which then send the data to ajax server and modify the database and come back using &quot;added as a frind&quot; in the div tag using innerhtml.<br />
<br />
but it only works normal for the first click, on second click its just repeat the first operation i.e it uses the same id etc and send it to the ajax server, all i want is to add friend without refreshing the page....<br />
please let me know what can be the possible solution</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>ijazkhattak</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240965.html</guid>
		</item>
		<item>
			<title>How to add HTML code below the present code</title>
			<link>http://www.daniweb.com/forums/thread240947.html</link>
			<pubDate>Tue, 24 Nov 2009 10:24:03 GMT</pubDate>
			<description><![CDATA[Hi, 
 
I am new in Javascript. 
 
I want to add few lines for content, which is already present, using Javascript. 
 
HTML code : 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I am new in Javascript.<br />
<br />
I want to add few lines for content, which is already present, using Javascript.<br />
<br />
HTML code :<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;html&gt;<br />
&nbsp;  &lt;head&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;script type=&quot;text/javascript&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function test()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; t = document.getElementById(&quot;p123&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; w = t.width;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; h = t.height;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/script&gt;<br />
&lt;/head&gt;<br />
&lt;body onload=&quot;test();&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;&lt;img alt=&quot;Graphic&quot; id=&quot;p123&quot; src=&quot;image1.gif&quot; /&gt;&lt;/p&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;TEST&lt;/p&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</pre><br />
In above HTML <br />
If image is grater than 300px width then below line should be appeared otherwise no.<br />
 <pre style="margin:20px; line-height:13px">&lt;p&gt;&lt;a href=&quot;image1.gif&quot;&gt;&lt;img href=&quot;zoom.gif&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</pre><br />
With above script i reached upto half part.<br />
<br />
Please help me out.<br />
<br />
Thanks in Advance.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>mlohokare</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240947.html</guid>
		</item>
		<item>
			<title>Javascript? c</title>
			<link>http://www.daniweb.com/forums/thread240942.html</link>
			<pubDate>Tue, 24 Nov 2009 09:49:08 GMT</pubDate>
			<description>Mod please delete this duplicated thread :S 
 
Hi, not sure if this is the right area.   
 
I want to control where my visitors are coming from. 
So not visiting from google or their homepage etc etc. i want them to enter the site from one specific site. 
 
Thanks. 
 
Mod please delete this...</description>
			<content:encoded><![CDATA[<div>Mod please delete this duplicated thread :S<br />
<br />
Hi, not sure if this is the right area.  <br />
<br />
I want to control where my visitors are coming from.<br />
So not visiting from google or their homepage etc etc. i want them to enter the site from one specific site.<br />
<br />
Thanks.<br />
<br />
Mod please delete this duplicated thread :S</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>beattsme</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240942.html</guid>
		</item>
		<item>
			<title>Javascript? Controlling Where A Visitor Comes From</title>
			<link>http://www.daniweb.com/forums/thread240941.html</link>
			<pubDate>Tue, 24 Nov 2009 09:48:49 GMT</pubDate>
			<description>Hi, not sure if this is the right area.   
 
I want to control where my visitors are coming from. 
So not visiting from google or their homepage etc etc. i want them to enter the site from one specific site. 
 
Thanks.</description>
			<content:encoded><![CDATA[<div>Hi, not sure if this is the right area.  <br />
<br />
I want to control where my visitors are coming from.<br />
So not visiting from google or their homepage etc etc. i want them to enter the site from one specific site.<br />
<br />
Thanks.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>beattsme</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240941.html</guid>
		</item>
		<item>
			<title>Ajax innerHTML and setTimeout</title>
			<link>http://www.daniweb.com/forums/thread240938.html</link>
			<pubDate>Tue, 24 Nov 2009 09:44:27 GMT</pubDate>
			<description><![CDATA[What I'm trying to do is to automaticly redirect the contents of a div tag after it has been changed by a ajax call. 
 
java_script: 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>What I'm trying to do is to automaticly redirect the contents of a div tag after it has been changed by a ajax call.<br />
<br />
Javascript<b></b>:<br />
 <pre style="margin:20px; line-height:13px">&lt;script type=&quot;text/javascript&quot;&gt;<br />
function ajaxSwap(div,func_id,args,dlay){<br />
&nbsp;var xmlhttp;<br />
&nbsp;if (window.XMLHttpRequest){<br />
&nbsp; // code for IE7+, Firefox, Chrome, Opera, Safari<br />
&nbsp; xmlhttp=new XMLHttpRequest();<br />
&nbsp;}<br />
&nbsp;else{<br />
&nbsp; // code for IE6, IE5<br />
&nbsp; xmlhttp=new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);<br />
&nbsp;}<br />
&nbsp;xmlhttp.onreadystatechange=function(){<br />
&nbsp; if(xmlhttp.readyState==4 || xmlhttp.readyState==&quot;complete&quot;){<br />
&nbsp;  document.getElementById(div).innerHTML = xmlhttp.responseText;<br />
&nbsp;  // using the alert to test if it works or not. Will be changed to&nbsp; calling ajaxSwap when working.<br />
&nbsp;  if(dlay){setTimeout(&quot;alert('Test!')&quot;,5000);}<br />
&nbsp; }<br />
&nbsp; if(xmlhttp.readyState==0 || xmlhttp.readyState==&quot;loading&quot;){<br />
&nbsp;  document.getElementById(div).innerHTML = '&lt;div align=center&gt;Loading&lt;/div&gt;';<br />
&nbsp; }<br />
&nbsp;}<br />
&nbsp;xmlhttp.open(&quot;GET&quot;,&quot;/index2.php?option=com_jumi&amp;fileid=10&amp;func_id=&quot; + func_id + args,true);<br />
&nbsp;xmlhttp.send(null);<br />
}<br />
&lt;/script&gt;</pre><br />
PHP:<br />
 <pre style="margin:20px; line-height:13px">echo '<br />
&lt;div id=&quot;profile_content&quot;&gt;<br />
&lt;script type=&quot;text/javascript&quot;&gt;<br />
ajaxSwap(\'profile_content\',1,\'\',1);<br />
&lt;/script&gt;<br />
&lt;/div&gt;';</pre><br />
Yes, I'm quite new to ajax and I'm not an expert with javascript but I can't be that far off getting this to work?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>grympel</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240938.html</guid>
		</item>
		<item>
			<title>centering add banner code (AdMob)</title>
			<link>http://www.daniweb.com/forums/thread240828.html</link>
			<pubDate>Mon, 23 Nov 2009 23:42:56 GMT</pubDate>
			<description>I have a web site that uses some code to put adds into the page, but my adds are not centered, whats the code to make it be in the center of the page, at the moment its  to the far right for some reason, I want to try and correct that. 
 
Here is an example of the add code, I want to center this,...</description>
			<content:encoded><![CDATA[<div>I have a web site that uses some code to put adds into the page, but my adds are not centered, whats the code to make it be in the center of the page, at the moment its  to the far right for some reason, I want to try and correct that.<br />
<br />
Here is an example of the add code, I want to center this, but leave the rest of my code on the page as it is, so I want it to only effect this add code here.<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;script type=&quot;text/javascript&quot;&gt;<br />
var admob_vars = {<br />
&nbsp;pubid: 'd45kdzjndj45n45nj', // publisher id<br />
&nbsp;bgcolor: '000000', // background color (hex)<br />
&nbsp;text: 'FFFFFF', // font-color (hex)<br />
&nbsp;test: true // test mode, set to false if non-test mode<br />
};<br />
&lt;/script&gt;<br />
&lt;script type=&quot;text/javascript&quot; src=&quot;http://mm.admob.com/static/iphone/iadmob.js&quot;&gt;&lt;/script&gt;</pre><br />
This is an admob script for a web page in landscape for those that may recognise, so perhaps some of you have tried to get AdMob in landscape.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>Pleasant Day</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240828.html</guid>
		</item>
		<item>
			<title>HELP: WebPage on TOP of a WebPage</title>
			<link>http://www.daniweb.com/forums/thread240822.html</link>
			<pubDate>Mon, 23 Nov 2009 23:02:58 GMT</pubDate>
			<description><![CDATA[*Hello EVERYONE! * 
 
Could anyone know the script code for a *WEBPAGE ON TOP OF A WEBPAGE*? 
 
The site was not working anymore, so I can't tell you the link. 
 
This is what I saw, When I visited the site (Mainpage) There's just a Welcome Image that shows CLICK HERE TO ENTER. After clicking the...]]></description>
			<content:encoded><![CDATA[<div><span style="font-weight:bold">Hello EVERYONE! </span><br />
<br />
Could anyone know the script code for a <span style="font-weight:bold">WEBPAGE ON TOP OF A WEBPAGE</span>?<br />
<br />
The site was not working anymore, so I can't tell you the link.<br />
<br />
This is what I saw, When I visited the site (Mainpage) There's just a Welcome Image that shows <span style="font-style:italic">CLICK HERE TO ENTER</span>. After clicking the link, a loading faded icon appears on top of Welcome Image covering that Welcome Image with Webpages, it's like popping to the center of the page.<br />
<br />
I don't know if someone of you could understand me. <span style="font-weight:bold">It's like Page on TOP of another Webpage without leaving the 1st page.</span><br />
<br />
Could anyone knows the script code for this. Thank  you.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>antonwildcam</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240822.html</guid>
		</item>
		<item>
			<title>javascript Form Page  Please HELP!</title>
			<link>http://www.daniweb.com/forums/thread240773.html</link>
			<pubDate>Mon, 23 Nov 2009 19:00:36 GMT</pubDate>
			<description>I am trying to create this form page where NO inner HTML is used. This is what i have so far and I am still trying to get a phone number code with at least ONE dash as well as a valid email address input. How do i generate this code with the work i have so far?</description>
			<content:encoded><![CDATA[<div>I am trying to create this form page where NO inner HTML is used. This is what i have so far and I am still trying to get a phone number code with at least ONE dash as well as a valid email address input. How do i generate this code with the work i have so far?</div>  <br /> <div style="padding:5px">     <fieldset class="fieldset"> <legend>Attached Files</legend> <table cellpadding="0" cellspacing="5" border="0"> <tr> <td><img class="inlineimg" src="http://www.daniweb.com/forums/images/attach/zip.gif" alt="File Type: zip" width="16" height="16" border="0" style="vertical-align:baseline" /></td> <td><a href="http://www.daniweb.com/forums/attachment.php?attachmentid=12689&amp;d=1259002478">test1.zip</a> (5.1 KB)</td> </tr> </table> </fieldset>  </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/thread240773.html</guid>
		</item>
		<item>
			<title>javascript keeps jumping back to focus</title>
			<link>http://www.daniweb.com/forums/thread240766.html</link>
			<pubDate>Mon, 23 Nov 2009 18:21:08 GMT</pubDate>
			<description><![CDATA[I have a validation function and the this is the last thing it does.  
 
[code = var mytext=document.getElementById("sizip") 
    if(check5(mytext,"Zip Code must be 5 digits.")==false) 
    {mytext.focus();return false;}    
 
 function check5(mytext,alerttxt){ 
var re5digit=/^\d{5}$/ //regular...]]></description>
			<content:encoded><![CDATA[<div>I have a validation function and the this is the last thing it does. <br />
<br />
[code = var mytext=document.getElementById(&quot;sizip&quot;)<br />
    if(check5(mytext,&quot;Zip Code must be 5 digits.&quot;)==false)<br />
    {mytext.focus();return false;}   <br />
<br />
 function check5(mytext,alerttxt){<br />
var re5digit=/^\d{5}$/ //regular expression defining a 5 digit number<br />
if (mytext.value.search(re5digit)==-1)  //if match failed<br />
alert(alerttxt);return false;  ]<br />
<br />
It will validate ok, if I do not have 5 digits, I get an error box.<br />
<br />
But then if I click the accept button again, it puts focus back on my zip code with no error.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>fellathedog</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240766.html</guid>
		</item>
		<item>
			<title>Ajax and POST</title>
			<link>http://www.daniweb.com/forums/thread240709.html</link>
			<pubDate>Mon, 23 Nov 2009 13:54:42 GMT</pubDate>
			<description><![CDATA[Hello all. 
 
I try to learn some Ajax, but find it some difficult. The task I'm trying to do, is to use Ajax to register a new user for my application. 
 
The problem is that the request don't seem to pass the POST-variables to the php-script on the server side, and I can't just see what's wrong!...]]></description>
			<content:encoded><![CDATA[<div>Hello all.<br />
<br />
I try to learn some Ajax, but find it some difficult. The task I'm trying to do, is to use Ajax to register a new user for my application.<br />
<br />
The problem is that the request don't seem to pass the POST-variables to the php-script on the server side, and I can't just see what's wrong!<br />
<br />
Please take look at the code below: <br />
<br />
 <pre style="margin:20px; line-height:13px">function createXMLHttpRequest() {<br />
var request = false;<br />
<br />
/* Does this browser support the XMLHttpRequest object? */<br />
if (window.XMLHttpRequest) {<br />
if (typeof XMLHttpRequest != 'undefined') {<br />
/* Try to create a new XMLHttpRequest object */<br />
try {<br />
request = new XMLHttpRequest();<br />
} catch (e) {<br />
alert('Could not create XMLHttpRequest');<br />
request = false;<br />
}<br />
/* Does this browser support ActiveX objects? */<br />
} else if (window.ActiveXObject) {<br />
/* Try to create a new ActiveX XMLHTTP object */<br />
try {<br />
request = new ActiveXObject('Msxml2.XMLHTTP');<br />
} catch (e) {<br />
alert('Could not create XMLHttpRequest');<br />
return false;<br />
}<br />
}<br />
}<br />
return request;<br />
}<br />
<br />
function checkRegistering() {<br />
var request = createXMLHttpRequest();<br />
var name = $F('name');<br />
var email = $F('email');<br />
var username = $F('username');<br />
var password = $F('password');<br />
var params = 'name=' + name + '&amp;email=' + email + '&amp;username=' + username + '&amp;password=' + password;<br />
<br />
if(request) {<br />
url = 'checkregister.php?' + params;<br />
request.onreadystatechange = parseResponse(request);<br />
request.open('POST', url, true);<br />
request.send(null);<br />
}<br />
}<br />
<br />
function parseResponse(request) {<br />
alert('onreadystatechange');<br />
alert('request.responseText=' + request.responseText);<br />
if(request.readyState == 4) {<br />
if(request.status == 200) {<br />
var response = request.responseText;<br />
} else {<br />
alert('There was a problem retrieving the data: \n' + request.statusText);<br />
}<br />
request = null;<br />
}<br />
}</pre><br />
The serverside-script is just:<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;?php<br />
require_once 'db.php';<br />
<br />
$xml = &lt;&lt;&lt; PROLOG<br />
&lt;?xml version=&quot;1.0&quot; encoding=&quot;iso-8859-1&quot;?&gt;<br />
PROLOG;<br />
<br />
$db = new db;<br />
<br />
$userdata = array(&quot;name&quot; =&gt; $_POST['name'],<br />
&quot;email&quot; =&gt; $_POST['email'],<br />
&quot;username&quot; =&gt; $_POST['username'],<br />
&quot;password&quot; =&gt; $_POST['password']);<br />
<br />
print_r($userdata);<br />
<br />
?&gt;</pre><br />
Very simple (should be).<br />
<br />
The problem is that the posted variables don't arrive to the script - and therefor no usable return either.<br />
<br />
Whats wrong?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>kjelle392</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240709.html</guid>
		</item>
		<item>
			<title>Make Batch File?</title>
			<link>http://www.daniweb.com/forums/thread240690.html</link>
			<pubDate>Mon, 23 Nov 2009 12:40:00 GMT</pubDate>
			<description>Hi all, 
Can anyone tell me HOw to make a batch file for creating a shortcut on desktop in HTML....? 
Well i made a application in HTML, and i put this application in CD, now i want that when user run that CD, So Cd will automatically create a shortcut on desktop, and when i click on CD, So my...</description>
			<content:encoded><![CDATA[<div>Hi all,<br />
Can anyone tell me HOw to make a batch file for creating a shortcut on desktop in HTML....?<br />
Well i made a application in HTML, and i put this application in CD, now i want that when user run that CD, So Cd will automatically create a shortcut on desktop, and when i click on CD, So my application starts.<br />
And if Cd is not present in CD ROM, So application should not be start.<br />
Like the functionality we have in some gamess CDs....<br />
CAn anyone tell me how can i do this, or just give me some idea......</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>avirag</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240690.html</guid>
		</item>
		<item>
			<title>why does this floating top bar not float in internet explorer(works in firefox)</title>
			<link>http://www.daniweb.com/forums/thread240677.html</link>
			<pubDate>Mon, 23 Nov 2009 11:36:20 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=&quot;text/javascript&quot;&gt;<br />
<br />
function placeIt() {<br />
<br />
if (!document.all) {<br />
<br />
document.getElementById(&quot;top_bar&quot;).style.top = window.pageYOffset +&quot;px&quot;; // For Mozilla etc.<br />
<br />
} else {<br />
<br />
document.getElementById(&quot;top_bar&quot;).style.top = document.documentElement.scrollTop +&quot;px&quot;; // For the IE...<br />
<br />
}<br />
<br />
window.setTimeout(&quot;placeIt()&quot;, 1);<br />
<br />
}<br />
<br />
&lt;/script&gt;<br />
<br />
&lt;body onload=&quot;placeIt()&quot;&gt;</pre><br />
i got that code. it works perfectly in firefox, but it doesnt stay at the stop when i scroll down in internet explorer... what can i do to make it work for internet explorer too?</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/thread240677.html</guid>
		</item>
		<item>
			<title>Javascript function to check mutliple text box inputs</title>
			<link>http://www.daniweb.com/forums/thread240656.html</link>
			<pubDate>Mon, 23 Nov 2009 09:58:09 GMT</pubDate>
			<description><![CDATA[hello, I have this form which has 4 fields that must not be empty on submit, I been  trying to make an array that checks them. 
 
  <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"...]]></description>
			<content:encoded><![CDATA[<div>hello, I have this form which has 4 fields that must not be empty on submit, I been  trying to make an array that checks them.<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;form action=&quot;login.php&quot; method=&quot;post&quot; onsubmit=&quot;return(checkAll(this))&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; &nbsp; &nbsp; &lt;label&gt;Username&lt;br /&gt;&lt;input id=&quot;input[]&quot; type=&quot;text&quot; name=&quot;username&quot; /&gt;&lt;/label&gt;&lt;br /&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; &nbsp; &nbsp; &lt;label&gt;Email&lt;br /&gt;&lt;input id=&quot;input[]&quot; type=&quot;text&quot; name=&quot;email&quot; /&gt;&lt;/label&gt;&lt;br /&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; &nbsp; &nbsp; &lt;label&gt;Password&lt;br /&gt;&lt;input id=&quot;input[]&quot; type=&quot;password&quot; name=&quot;pswd1&quot; /&gt;&lt;/label&gt;&lt;br /&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; &nbsp; &nbsp; &lt;label&gt;Password Again&lt;br /&gt;&lt;input id=&quot;input[] &quot;type=&quot;password&quot; name=&quot;pswd2&quot; /&gt;&lt;/label&gt;&lt;br /&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; &nbsp; &nbsp; &lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;Submit&quot; /&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; &nbsp; &nbsp; &lt;input type=&quot;reset&quot; value=&quot;Reset&quot; /&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; &nbsp; &nbsp; &lt;/form&gt;</pre>so far i have <br />
 <pre style="margin:20px; line-height:13px">function checkAll(this)<br />
{<br />
&nbsp; &nbsp;  document.getElementById(&quot;input[]&quot;)<br />
&nbsp; &nbsp;  //for loop will go here<br />
}</pre><br />
to be honest not sure were to start, at this stage I need to check whether there empty and the the username/password only has a-z0-9 and the email passes a regExp test.<br />
<br />
I know how to write individual functions to check fields/regExp but have now idea how to loop it thru an array to do both.<br />
<br />
any help much appreciated</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>mr_scooby</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240656.html</guid>
		</item>
		<item>
			<title>Redirecting with javascript</title>
			<link>http://www.daniweb.com/forums/thread240654.html</link>
			<pubDate>Mon, 23 Nov 2009 09:51:15 GMT</pubDate>
			<description><![CDATA[I have developed web server with redirecting if resource isn't exist. It made by such html, that returning instead resource(img or style file): 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>I have developed web server with redirecting if resource isn't exist. It made by such html, that returning instead resource(img or style file):<br />
 <pre style="margin:20px; line-height:13px">&lt;html&gt;<br />
&lt;form name='myform' action='http://[some address]&gt;<br />
[inputs with another answer]<br />
&lt;/form&gt;<br />
&lt;script language='JavaScript'&gt;<br />
document.myform.submit();<br />
&lt;/script&gt;<br />
&lt;/html&gt;</pre><br />
its works perfect if you go to this resource by url field of browser, but don't work if this resourse is a part of html page. <br />
have an idea?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>leron</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240654.html</guid>
		</item>
		<item>
			<title>Determine Name or ID of Select</title>
			<link>http://www.daniweb.com/forums/thread240602.html</link>
			<pubDate>Mon, 23 Nov 2009 05:04:23 GMT</pubDate>
			<description><![CDATA[Hi All, 
 
This should be an easy one.  I am using a single OnChange event with several <Select> statements, and need to identify the specific <Select> control that fired off the onchange event.  I'm certain there must be a way to grab the ID or Name from the specific control in the javascript...]]></description>
			<content:encoded><![CDATA[<div>Hi All,<br />
<br />
This should be an easy one.  I am using a single OnChange event with several &lt;Select&gt; statements, and need to identify the specific &lt;Select&gt; control that fired off the onchange event.  I'm certain there must be a way to grab the ID or Name from the specific control in the javascript function, but I haven't been able to find it.  Any thoughts?<br />
<br />
Thanks,<br />
Jim</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>jimmiller96</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240602.html</guid>
		</item>
		<item>
			<title>Why is the word asynchronous used?</title>
			<link>http://www.daniweb.com/forums/thread240600.html</link>
			<pubDate>Mon, 23 Nov 2009 04:52:16 GMT</pubDate>
			<description>Hi i am new to ajax and i am little bit confused with the word asynchronous. why is the word asynchronous used for ajax? what is it not in sync with? somebody pls expalin me why the word asynchronous? and how is it justified in ajax? Thanking you in advance.</description>
			<content:encoded><![CDATA[<div>Hi i am new to ajax and i am little bit confused with the word asynchronous. why is the word asynchronous used for ajax? what is it not in sync with? somebody pls expalin me why the word asynchronous? and how is it justified in ajax? Thanking you in advance.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>yaragalla_mural</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240600.html</guid>
		</item>
		<item>
			<title>whats the javascript code to copy to clipboard?</title>
			<link>http://www.daniweb.com/forums/thread240546.html</link>
			<pubDate>Mon, 23 Nov 2009 01:48:52 GMT</pubDate>
			<description>like i need to copy something to  my clipboard by pressing a button. i can echo the value into a hidden form input field i guess. how can i get the value copied to clipboard?</description>
			<content:encoded><![CDATA[<div>like i need to copy something to  my clipboard by pressing a button. i can echo the value into a hidden form input field i guess. how can i get the value copied to clipboard?</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/thread240546.html</guid>
		</item>
		<item>
			<title>Help please with Listbox total and average</title>
			<link>http://www.daniweb.com/forums/thread240401.html</link>
			<pubDate>Sun, 22 Nov 2009 10:26:16 GMT</pubDate>
			<description>Hi there everyone. I have a problem with the JavaScript code for my aggregates workings for my course. I have worked out with some help how to input a number, click a button and get the number to appear in a listbox. I also had to get the Reset button to clear all fields including the listbox which...</description>
			<content:encoded><![CDATA[<div>Hi there everyone. I have a problem with the JavaScript code for my aggregates workings for my course. I have worked out with some help how to input a number, click a button and get the number to appear in a listbox. I also had to get the Reset button to clear all fields including the listbox which I managed to work out.<br />
<br />
I am now having problems getting it to total all the numbers in the list box. I have managed to get it to do something but get 'undefined' in the Total Sum box. I also need to average it but haven't really done much with sorting it out yet as it doesn't work either.<br />
<br />
Would someone be so kind as to tell me where I am going wrong with this as I am still learning JavaScript<br />
<br />
Below is the code that I have so far<br />
 <pre style="margin:20px; line-height:13px">&lt;script&gt;<br />
<br />
function testAdd() <br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; var formObject = document.aggregate<br />
&nbsp; &nbsp; if (formObject.input.value!=&quot;&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; addOption(formObject.List,formObject.input.value)<br />
&nbsp; &nbsp; } <br />
function addOption(selectObject,input) <br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; var optionObject = new Option(input)<br />
&nbsp; &nbsp; var optionRank = selectObject.options.length<br />
&nbsp; &nbsp; selectObject.options[optionRank]=optionObject<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
function GetTotal()<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var list = eval(document.getElementById('List').value)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.getElementById('Total Sum').value = list ;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
function average()<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.getElementById(&quot;Average&quot;).value = select.Avg(&quot;List&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
function ListBoxClear()<br />
{<br />
&nbsp;  document.getElementById('List').options.length = 0;<br />
}<br />
&lt;/script&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;h1&gt;Aggregates&lt;/h1&gt;<br />
&lt;/p&gt;<br />
&lt;strong&gt; Add as many numbers as you like&lt;br /&gt;<br />
to the list, then click Calculate.&lt;/strong&gt;&lt;br /&gt;<br />
&lt;form id=&quot;aggregate&quot; name=&quot;aggregate&quot; action=&quot;&quot;&gt;<br />
&nbsp; &lt;label&gt;<br />
&nbsp; &lt;input name=&quot;input&quot; type=&quot;text&quot; id=&quot;input&quot; size=&quot;10&quot; maxlength=&quot;10&quot; /&gt;<br />
&nbsp; &lt;/label&gt;<br />
&nbsp; &lt;label&gt;<br />
&nbsp; &lt;input id=&quot;Add&quot; input type=&quot;button&quot; value=&quot;Add to list&quot; onclick=&quot;testAdd()&quot;/&gt;<br />
&nbsp; &lt;/label&gt;<br />
&nbsp; &lt;br /&gt;<br />
&nbsp; &lt;label&gt;<br />
&nbsp; &lt;select name=&quot;List&quot; multiple=&quot;MULTIPLE&quot; id=&quot;List&quot; size=&quot;10&quot;&gt;<br />
&nbsp; &lt;/select&gt;<br />
&nbsp; &lt;/label&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &lt;br /&gt;<br />
&nbsp; &lt;input type=&quot;button&quot; name=&quot;Calculate&quot; id=&quot;Calculate&quot; value=&quot;Calculate&quot; onclick=&quot;GetTotal();average()&quot; /&gt;<br />
&nbsp; &lt;label&gt;<br />
<br />
&nbsp; &lt;input name=&quot;Reset&quot; type=&quot;reset&quot; id=&quot;Reset&quot; onclick=&quot;ListBoxClear()&quot; value=&quot;Reset&quot; /&gt;<br />
&nbsp; &lt;/label&gt;<br />
&nbsp; &lt;p&gt;&lt;strong&gt;Total (Sum):&lt;/strong&gt;&lt;/p&gt;<br />
&nbsp; &lt;p&gt;<br />
&nbsp; &nbsp; &lt;label&gt;<br />
&nbsp; &nbsp; &lt;input name=&quot;Total Sum&quot; type=&quot;text&quot; id=&quot;Total Sum&quot; /&gt;<br />
&nbsp; &nbsp; &lt;/label&gt;<br />
&nbsp; &lt;/p&gt;<br />
&nbsp; &lt;p&gt;&lt;strong&gt;Average:&lt;/strong&gt;&lt;/p&gt;<br />
&nbsp; &lt;p&gt;<br />
&nbsp; &nbsp; &lt;label&gt;<br />
&nbsp; &nbsp; &lt;input name=&quot;Average&quot; type=&quot;text&quot; id=&quot;Average&quot; /&gt;<br />
&nbsp; &nbsp; &lt;/label&gt;<br />
&nbsp; &nbsp; &lt;br /&gt;&nbsp; <br />
&nbsp; &lt;/p&gt;<br />
&nbsp; &lt;label&gt;&lt;/label&gt;<br />
&lt;/form&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>LizzyJo</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240401.html</guid>
		</item>
		<item>
			<title>scrolling issue</title>
			<link>http://www.daniweb.com/forums/thread240371.html</link>
			<pubDate>Sun, 22 Nov 2009 04:17:34 GMT</pubDate>
			<description>If you look at the link it is pretty self explanatory,, the image scrolls way too much,, if anyone can help I would be grateful. 
 
http://www.yourticketexpert.com/test_map.html</description>
			<content:encoded><![CDATA[<div>If you look at the link it is pretty self explanatory,, the image scrolls way too much,, if anyone can help I would be grateful.<br />
<br />
<a rel="nofollow" class="t" href="http://www.yourticketexpert.com/test_map.html" target="_blank">http://www.yourticketexpert.com/test_map.html</a></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>rookie73</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240371.html</guid>
		</item>
		<item>
			<title>Print-style vertical columns</title>
			<link>http://www.daniweb.com/forums/thread240358.html</link>
			<pubDate>Sun, 22 Nov 2009 02:19:26 GMT</pubDate>
			<description><![CDATA[I am trying to use vertical columns (as commonly seen in print media, magazines/newspapers) in my blog layout. I think that as the aspect ratio of our monitors change (portrait (http://en.wikipedia.org/wiki/Xerox_Alto) in the 70s/80s, (near) square in the 90's, and now landscape) it is important to...]]></description>
			<content:encoded><![CDATA[<div>I am trying to use vertical columns (as commonly seen in print media, magazines/newspapers) in my blog layout. I think that as the aspect ratio of our monitors change (<a rel="nofollow" class="t" href="http://en.wikipedia.org/wiki/Xerox_Alto" target="_blank">portrait</a> in the 70s/80s, (near) square in the 90's, and now landscape) it is important to embrace horizontally scrolling websites. This style has been rarely executed, I think mainly due to the lack of built in column support in our browsers. The idea has been duscussed on w3 of adding a <a rel="nofollow" class="t" href="http://www.w3.org/TR/2009/WD-css3-multicol-20090630/" target="_blank">column attribute</a> to CSS. This is essentially what I am trying to mimic. I have attached an image of a layout I threw together this evening.<br />
What I propose as a solution would be to count the number of lines within the div, and every so many lines add a <span class="ad_notxt"><code class="inlinecode">&lt;/div&gt;&lt;div class=&quot;column&quot;&gt;</code></span>. I am new to javascript however, and I am struggling to achieve this. Below I have attached a sample document that counts the number of lines in a block of text. I can't imagine it being too difficult to split it up, but then again I might just be very ignorant.<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;html&gt;<br />
&lt;script&gt;<br />
function countLines() {<br />
&nbsp; &nbsp; var divHeight = document.getElementById('column').offsetHeight;<br />
&nbsp; &nbsp; var lineHeight = parseInt(document.getElementById('column').style.lineHeight);<br />
&nbsp; &nbsp; var lines = divHeight / lineHeight;<br />
&nbsp; &nbsp; alert(&quot;Lines: &quot; + lines);<br />
}<br />
&lt;/script&gt;<br />
&lt;body onload=&quot;countLines();&quot;&gt;<br />
&lt;div id=&quot;column&quot; style=&quot;line-height: 20px;&quot;&gt;<br />
This document may have mulitipal lines depending on the size of your browser. Try re-sizing it and refreshing it. See what is to be said, young padawan.<br />
&lt;/div&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</pre><br />
Thanks for your time, <br />
Calvin Tennant<br />
figmentmedia.ca</div>  <br /> <div style="padding:5px">    <fieldset class="fieldset"> <legend>Attached Images</legend> <table cellpadding="0" cellspacing="5" border="0"> <tr> <td><img class="inlineimg" src="http://www.daniweb.com/forums/images/attach/png.gif" alt="File Type: png" width="16" height="16" border="0" style="vertical-align:baseline" /></td> <td><a href="http://www.daniweb.com/forums/attachment.php?attachmentid=12669&amp;d=1258855402" target="_blank">calvintennantca.png</a> (535.3 KB)</td> </tr> </table> </fieldset>   </div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>calvintennant</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240358.html</guid>
		</item>
		<item>
			<title>identify SELECT in onChange submit</title>
			<link>http://www.daniweb.com/forums/thread240313.html</link>
			<pubDate>Sat, 21 Nov 2009 22:08:57 GMT</pubDate>
			<description><![CDATA[I have a form with multiple SELECT drop-down menus. Each menu can submit the form using the onChange function. How can I determine which of the drop-down menus was used to submit the form?  
 
Example: 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>I have a form with multiple SELECT drop-down menus. Each menu can submit the form using the onChange function. How can I determine which of the drop-down menus was used to submit the form? <br />
<br />
Example:<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;form method=&quot;post&quot; enctype=&quot;multipart/form data&quot; action=&quot;submit.php&quot;&gt;<br />
<br />
&lt;select name=&quot;one&quot; onChange=&quot;submit()&quot;&gt;<br />
&nbsp;  &lt;option value=&quot;1&quot;&gt;1st choice&lt;/option&gt;<br />
&nbsp;  &lt;option value=&quot;2&quot;&gt;2nd choice&lt;/option&gt;<br />
&lt;/select&gt;<br />
<br />
&lt;select name=&quot;two&quot; onChange=&quot;submit()&quot;&gt;<br />
&nbsp;  &lt;option value=&quot;1&quot;&gt;1st choice&lt;/option&gt;<br />
&nbsp;  &lt;option value=&quot;2&quot;&gt;2nd choice&lt;/option&gt;<br />
&lt;/select&gt;<br />
<br />
&lt;/form&gt;</pre><br />
I know the selected values are passed to submit.php in the $_POST variable, but I also need to detect which of the two menus was used to submit the form (the form may be loaded with any combination of values pre-selected). How can I do this? Thanks!<br />
<br />
PS: I think the best way would be to call a different submit URL for each onChange like &quot;submit.php?source=one&quot; and &quot;submit.php?source=two&quot;, but I don't know how to use a different URL for each onChange=submit(). Are there parameters that can be passed when calling the &quot;submit()&quot; function?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>void64</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240313.html</guid>
		</item>
		<item>
			<title>jquery/post</title>
			<link>http://www.daniweb.com/forums/thread240241.html</link>
			<pubDate>Sat, 21 Nov 2009 13:28:44 GMT</pubDate>
			<description><![CDATA[Hi all. 
 
First off this is my first interaction with jquery (and I hope this is the correct forum to put questions about this in, if not might a mod take the liberity of moving it to the correct forum?), so apologies if I'm overlooking an entire room made of elephants.  
 
First off a bit of...]]></description>
			<content:encoded><![CDATA[<div>Hi all.<br />
<br />
First off this is my first interaction with jquery (and I hope this is the correct forum to put questions about this in, if not might a mod take the liberity of moving it to the correct forum?), so apologies if I'm overlooking an entire room made of elephants. <br />
<br />
First off a bit of explaining -- I've an ongoing project where I interface to my mobile phone's network provider with a program I write in C using the libcurl library. The website provides the ability to send text messages with, what was, a simple form that I used post to, but they recently upgraded it to jquery/ajax, and I've been stumped in being able to mimic the behaviour I get in the browser with my program. <br />
<br />
When I want to add a contact to receive a text message I have to click on his name. And as best I can understand it it is stored in a database until I click 'send message' and then the DB is erased. So I'm trying to mimic the clicking on a contact and what I'm having problems with is replicating this code (snipped from the website). <br />
 <pre style="margin:20px; line-height:13px">&nbsp; // This function is called whenever a user contact <br />
&nbsp; // name is clicked <br />
&nbsp; $('div.userContact &gt; img').click( function () {<br />
&nbsp; &nbsp; // Make a copy of this for the post's callback function<br />
&nbsp; &nbsp; var self = this;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; // Perform the post<br />
&nbsp; &nbsp; $.post(<br />
&nbsp; &nbsp; &nbsp; 'addContact.php', <br />
&nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; user: getUserID($(this)),<br />
&nbsp; &nbsp; &nbsp; &nbsp; login: getLoginID()<br />
&nbsp; &nbsp; &nbsp; },<br />
&nbsp; &nbsp; &nbsp; function (replaceHTML) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; replaceContactHTML(self, replaceHTML)<br />
&nbsp; &nbsp; &nbsp; },<br />
&nbsp; &nbsp; &nbsp; 'html'<br />
&nbsp; &nbsp; );<br />
&nbsp; });</pre>Is it reasonable to expect that to post the following would achieve the same thing as clicking on the link? <span class="ad_notxt"><code class="inlinecode">addContact.php?user=userID&amp;login=whateverTheLoginIDis</code></span> (I can get the id's fine, and have verified it). I thought it was, so tried going to that URL in my libcurl program and it failed. And even tried pasting the URL into the address bar in my browser and it failed too.<br />
<br />
By failed I mean this. When I click on the link an image that said &quot;add contact&quot; changed to an image that said &quot;remove contact&quot;. This is the desired behaviour. So I thought it would make sense that were I to go to that link it'd give me a picture of &quot;remove contact&quot; and if I looked at the IDs associated with the image (via view source) they'd all be from the user id code that I passed in. However. That is not the case. What happens is that I get an &quot;add contact&quot; and when I look at the ID I get something like <span class="ad_notxt"><code class="inlinecode">id=&quot;userContact_&quot;</code></span> rather than <span class="ad_notxt"><code class="inlinecode">id=&quot;userContact_contactID&quot;</code></span> that I get when the jquery is performed. <br />
<br />
Am I missing something with my post? If anyone can help me with this I'd really appreciate it. <br />
<br />
Cheers.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>twomers</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240241.html</guid>
		</item>
		<item>
			<title>To set Iframe Height</title>
			<link>http://www.daniweb.com/forums/thread240233.html</link>
			<pubDate>Sat, 21 Nov 2009 12:52:20 GMT</pubDate>
			<description><![CDATA[I have to Set Iframe  Height Dynamically using Jquery or Javascript . I am Using following  jquery  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>I have to Set Iframe  Height Dynamically using Jquery or Javascript . I am Using following  jquery  code:  <br />
<br />
 <pre style="margin:20px; line-height:13px">var theFrame = $(&quot;#IframeId&quot;, parent.document.body);<br />
theFrame.height($(document.body).height);</pre>My Problem is that data in iframe has some Images,video thumbnail which are coming from diffrent server Amazon,flicker (means from Cross domain). It takes time to load. So Iframe Height is not Set Exactly . <br />
how can i set Exact height of iframe???????</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>skumar.snl</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240233.html</guid>
		</item>
		<item>
			<title>Iframe Links Should not open in a new page</title>
			<link>http://www.daniweb.com/forums/thread240228.html</link>
			<pubDate>Sat, 21 Nov 2009 12:14:24 GMT</pubDate>
			<description><![CDATA[hi friends, my english is poor, 
please solve my problem 
i'm developing a site, in that irame is there, when a page is loaded to that iframe, along with links in the page, when i right click on the link and open in a new tab/window, it should open along with parent, but the iframe content page is...]]></description>
			<content:encoded><![CDATA[<div>hi friends, my english is poor,<br />
please solve my problem<br />
i'm developing a site, in that irame is there, when a page is loaded to that iframe, along with links in the page, when i right click on the link and open in a new tab/window, it should open along with parent, but the iframe content page is loading alone, please give me a solution.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>mohan7690</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240228.html</guid>
		</item>
		<item>
			<title>Help please with JavaScript</title>
			<link>http://www.daniweb.com/forums/thread240181.html</link>
			<pubDate>Sat, 21 Nov 2009 07:33:41 GMT</pubDate>
			<description>Hi. I am new to this site so I hope you will all be able to help me with my problem. I am just starting to learn JavaScript so any help/feedback would be greatly appreciated. 
 
I have to make a form that if you put a temperature in a textbox (either Celsius or Fahrenheit) and you click on a button...</description>
			<content:encoded><![CDATA[<div>Hi. I am new to this site so I hope you will all be able to help me with my problem. I am just starting to learn JavaScript so any help/feedback would be greatly appreciated.<br />
<br />
I have to make a form that if you put a temperature in a textbox (either Celsius or Fahrenheit) and you click on a button (To Celsius or To Fahrenheit) it will convert it to the corresponding temperature which will appear in another textbox.<br />
<br />
I have gotten this far but am getting a NaN value in the coverted temperature<br />
<br />
I have been trying to work this out for over a week so any help would be really appreciated.<br />
<br />
My code is:<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;/form&gt;<br />
<br />
&lt;!-- used to calculate the temperature conversion from Celcius to Farenheit and Farenheit to Celcius<br />
!--&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;script&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function celcius()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.getElementById(&quot;answers&quot;).value = parseFloat(document.getElementById(&quot;input&quot;).value) + Math.round(100/(212-32) * (this.value - 32 ));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function farenheit()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.getElementById(&quot;answers&quot;).value = parseFloat(document.getElementById(&quot;input&quot;).value) + Math.round((212-32)/100 * this.value + 32);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/script&gt;<br />
&lt;h1&gt;Temperature Conversion Tool&lt;/h1&gt;<br />
&lt;h3&gt;Enter a value into the first box below, then click on what it is to be converted to<br />
Temperature&lt;/h3&gt;<br />
&lt;form name=&quot;temperature&quot;&gt;<br />
&amp;nbsp;&lt;input id=&quot;input&quot; value=&quot;0&quot; type=&quot;text&quot;&gt; <br />
&amp;nbsp;&lt;input id=&quot;answers&quot; value=&quot;0&quot; type=&quot;text&quot;&gt;<br />
&lt;br&gt;<br />
&lt;input value=&quot;To Celcius&quot; onClick=&quot;celcius() &quot; type=&quot;button&quot;&gt;<br />
&lt;input value=&quot;To Farenheit&quot; onClick=&quot;farenheit()<br />
&quot; type=&quot;button&quot;&gt;<br />
&lt;input name=&quot;reset&quot; value=&quot;Reset&quot; type=&quot;reset&quot;&gt;&lt;br&gt;<br />
&lt;/form&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>LizzyJo</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240181.html</guid>
		</item>
		<item>
			<title>Need a little help with delivery date</title>
			<link>http://www.daniweb.com/forums/thread240104.html</link>
			<pubDate>Fri, 20 Nov 2009 22:09:25 GMT</pubDate>
			<description>the problem I am having is in getting my page to produce an expected delivery date. The calculation function is working fine. I want to use the same id to figure out when the product will be delivered. I know my second set of if statements is wrong but I cant figure out how to take my current date...</description>
			<content:encoded><![CDATA[<div>the problem I am having is in getting my page to produce an expected delivery date. The calculation function is working fine. I want to use the same id to figure out when the product will be delivered. I know my second set of if statements is wrong but I cant figure out how to take my current date and add days to it and have it output the delivery date. This is not a homework assignment. It is a practice for our final and I know the instructor is going to include it. Any help will be appreciated.<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;<br />
&nbsp;<br />
&lt;HTML&gt;&lt;HEAD&gt;&lt;TITLE&gt;New Page 1&lt;/TITLE&gt;<br />
&lt;META http-equiv=Content-Language content=en-us&gt;<br />
&lt;META HTTP-EQUIV=&quot;Content-Type&quot; CONTENT=&quot;text/html; charset=iso-8859-1&quot;&gt;<br />
&lt;META content=&quot;MSHTML 6.00.2900.3492&quot; name=GENERATOR&gt;<br />
&lt;META content=FrontPage.Editor.Document name=ProgId&gt;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&lt;script&gt; <br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; //function getTax()<br />
&nbsp; &nbsp; &nbsp; &nbsp; //{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //alert(&quot;get tax function&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; //}<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; function calculatePrice()<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //alert(&quot;inside calculate price&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var inPrice = parseFloat( document.getElementById(&quot;price&quot;).value);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //alert(inPrice);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var inQuantity = (document.getElementById(&quot;quantity&quot;).value);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //alert(inQuantity);&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var shipping = parseFloat( document.getElementById(&quot;shipping&quot;).value);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var inTax = parseFloat( document.getElementById(&quot;state&quot;).value);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //alert(inTax);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var state;&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var totalPrice;&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //alert(document.getElementById(&quot;state&quot;).selectedIndex);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(document.getElementById(&quot;state&quot;).selectedIndex==0)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; state = 0.06;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //document.getElementById(&quot;state&quot;).option[0].value;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  // alert(&quot;Iowa 0.06&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(document.getElementById(&quot;state&quot;).selectedIndex==1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; state = 0.085;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //alert(&quot;Illinois 0.085&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(document.getElementById(&quot;state&quot;).selectedIndex==2)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; state = 0.7;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //alert(&quot;Indiana 0.7&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(document.getElementById(&quot;state&quot;).selectedIndex==3)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; state = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //alert(&quot;Other&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var shipping = parseFloat( document.getElementById(&quot;shipping&quot;).value);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //alert(shipping);&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(document.getElementById(&quot;shipping&quot;).selectedIndex==0)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; shipping = 0.02;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //alert(&quot;standard ups 0.02&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(document.getElementById(&quot;shipping&quot;).selectedIndex==1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; shipping = 0.01;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //alert(&quot;US Mail 0.01&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(document.getElementById(&quot;shipping&quot;).selectedIndex==2)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; shipping = 0.05;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //alert(&quot;Overnight 0.05&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(document.getElementById(&quot;shipping&quot;).selectedIndex==3)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; shipping = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //alert(&quot;Pick up no charge&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  inTax = inPrice * state ;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  //alert(inTax);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  totalPrice = inTax + (inPrice * shipping) + inPrice ;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  document.getElementById(&quot;total&quot;).value = totalPrice;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  //alert(&quot;intax&quot; + inTax + &quot;qty&quot; + inQuantity + &quot;del&quot; + shipping)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  var now = new date()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  var expectedDate <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(document.getElementById(&quot;shipping&quot;).selectedIndex==0)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  now + 3;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //document.getElementById(&quot;state&quot;).option[0].value;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;option 1&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(document.getElementById(&quot;shipping&quot;).selectedIndex==1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  now + 5;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;option 2&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(document.getElementById(&quot;shipping&quot;).selectedIndex==2)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  now + 1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;option 3&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(document.getElementById(&quot;shipping&quot;).selectedIndex==3)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  now;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;get it yourself&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.getElementById(&quot;delivery&quot;).value = ExpectedDate;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&lt;/script&gt;<br />
&lt;/HEAD&gt;<br />
&lt;BODY text=#330000 bgColor=#00ccff ;&gt;<br />
&lt;H1 align=center&gt;Calculate Your Order&lt;/H1&gt;<br />
&lt;FORM name=frmProd&nbsp; method=GET&gt;<br />
&lt;P&gt;Price: &lt;input type=&quot;text&quot; name=&quot;price&quot; value=&quot;&quot; id=&quot;price&quot; /&gt;&lt;/P&gt;<br />
&lt;P&gt;Quantity: &lt;SELECT size=1 type=&quot;text&quot; name=&quot;quantity&quot; id=&quot;quantity&quot; /&gt; &lt;OPTION value=1 selected&gt;1&lt;/OPTION&gt; <br />
&nbsp; &nbsp;  &lt;OPTION value=2&gt;2&lt;/OPTION&gt; &lt;OPTION value=3&gt;3&lt;/OPTION&gt; &amp;nbsp;&lt;/SELECT&gt;&lt;/P&gt;<br />
&lt;P&gt;State: &lt;SELECT size=1 type = &quot;text&quot; name=&quot;state&quot; id = &quot;state&quot;&nbsp; onChange =&quot;getTax()&quot;/&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;OPTION selected value=0.06&gt;Iowa&lt;/OPTION&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;OPTION value=0.085 &gt;Illinois&lt;/OPTION&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &lt;OPTION value=0.7&gt;Indiana&lt;/OPTION&gt; <br />
&nbsp; &nbsp; &lt;OPTION&nbsp; value=0&gt;Other&lt;/OPTION&gt; &amp;nbsp;&lt;/SELECT&gt;&lt;/P&gt;<br />
&lt;P&gt;Delivery &lt;SELECT size=1 name=shipping id=&quot;shipping&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;OPTION value=0.02 selected&gt;Standard UPS - 3 Days&lt;/OPTION&gt;&nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &lt;OPTION value=0.01&gt;US Mail - 5 Days&lt;/OPTION&gt;<br />
&nbsp; &nbsp; &lt;OPTION value=0.05&gt;Overnight - 1 Day&lt;/OPTION&gt; <br />
&nbsp; &nbsp; &lt;OPTION value=0&gt;Pickup&lt;/OPTION&gt;<br />
&nbsp;  &lt;/SELECT&gt;&lt;BR&gt;Method:&lt;/P&gt;<br />
&lt;P&gt;Your Total is: &lt;INPUT value=0.00 name=&quot;total&quot; id = &quot;total&quot; /&gt;&lt;/P&gt;<br />
&lt;P&gt;Expected Delivery Date:&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &lt;input type=&quot;text&quot; name=&quot;delivery&quot; id=&quot;delivery&quot;&gt;<br />
&lt;/P&gt;<br />
&lt;P&gt;&lt;INPUT type=&quot;button&quot; name = &quot;button&quot; id = &quot;button&quot; value=&quot;Calculate My Order Now!&quot;&nbsp; onclick = &quot;calculatePrice()&quot; name=btnSubmit&gt;&lt;/P&gt;&lt;/FORM&gt;&lt;/BODY&gt;&lt;/HTML&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>carlcarman</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240104.html</guid>
		</item>
		<item>
			<title>Annoying javascript error in homepage</title>
			<link>http://www.daniweb.com/forums/thread240091.html</link>
			<pubDate>Fri, 20 Nov 2009 21:01:26 GMT</pubDate>
			<description>Hi, 
 
I have a javascript error in my home page. 
Which is annoying. I am having hard time debugging it. 
Please help. www.dealpigeon.com 
 
FF is not showing it. IE7, 8 shows the error. I just launched the website and I do not want users noticing an error. 
 
Thanks in advance.</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I have a javascript error in my home page.<br />
Which is annoying. I am having hard time debugging it.<br />
Please help. <a rel="nofollow" class="t" href="http://www.dealpigeon.com" target="_blank">www.dealpigeon.com</a><br />
<br />
FF is not showing it. IE7, 8 shows the error. I just launched the website and I do not want users noticing an error.<br />
<br />
Thanks in advance.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>omsoni</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240091.html</guid>
		</item>
		<item>
			<title>Conflicting javascripts</title>
			<link>http://www.daniweb.com/forums/thread240062.html</link>
			<pubDate>Fri, 20 Nov 2009 18:33:24 GMT</pubDate>
			<description>Okay I have an issue....I have two things I want to happen on the same page....I have a slide in menu (Jquery contact form) where people can write me an email and a FancyBox gallery.. 
 
But these two javascripts wont play nice...if both are enable as they are now, The contact portion work fine but...</description>
			<content:encoded><![CDATA[<div>Okay I have an issue....I have two things I want to happen on the same page....I have a slide in menu (Jquery contact form) where people can write me an email and a FancyBox gallery..<br />
<br />
But these two javascripts wont play nice...if both are enable as they are now, The contact portion work fine but the images opens in an empty browser window instead of the fancyBox style.<br />
<br />
The Code <br />
Contact Javascript<br />
 <pre style="margin:20px; line-height:13px"> $(document).ready(function(){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(&quot;#contactLink&quot;).click(function(){&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($(&quot;#contactForm&quot;).is(&quot;:hidden&quot;)){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(&quot;#contactForm&quot;).slideDown(&quot;slow&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(&quot;#contactForm&quot;).slideUp(&quot;slow&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; });<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; });<br />
&nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  function closeForm(){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(&quot;#messageSent&quot;).show(&quot;slow&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  setTimeout('$(&quot;#messageSent&quot;).hide();$(&quot;#contactForm&quot;).slideUp(&quot;slow&quot;)', 2000);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }</pre><br />
The FancyBox Code<br />
 <pre style="margin:20px; line-height:13px">$(document).ready(function() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(&quot;a.zoom&quot;).fancybox();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(&quot;a.zoom1&quot;).fancybox({<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'overlayOpacity'&nbsp; &nbsp; &nbsp; &nbsp; :&nbsp; &nbsp; &nbsp; &nbsp; 0.7,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'overlayColor'&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :&nbsp; &nbsp; &nbsp; &nbsp; '#FFF'<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; });<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(&quot;a.zoom2&quot;).fancybox({<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'zoomSpeedIn'&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :&nbsp; &nbsp; &nbsp; &nbsp; 500,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'zoomSpeedOut'&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :&nbsp; &nbsp; &nbsp; &nbsp; 500<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; });<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; });</pre><br />
Any suggestions would be greatly appreciated =)</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>neogy</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240062.html</guid>
		</item>
		<item>
			<title>Problem After Prompt-Button Results</title>
			<link>http://www.daniweb.com/forums/thread240028.html</link>
			<pubDate>Fri, 20 Nov 2009 14:44:16 GMT</pubDate>
			<description><![CDATA[Thanks for viewing. To be perfectly honest, this is (in part) for school. the project is to write a script to prompt for a temperature in Fahrenheit and output the Celsius equivilant. 
I'm ahead in my school work, and so decided to take my time and have some fun with this. Here is my code: 
 
 ...]]></description>
			<content:encoded><![CDATA[<div>Thanks for viewing. To be perfectly honest, this is (in part) for school. the project is to write a script to prompt for a temperature in Fahrenheit and output the Celsius equivilant.<br />
I'm ahead in my school work, and so decided to take my time and have some fun with this. Here is my code:<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;html&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;head&gt; &lt;title&gt;Temperature Converter&lt;/title&gt; &lt;/head&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;body&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;br&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;center&gt;&lt;h2&gt;Temperature Conversion&lt;/h2&gt;&lt;/center&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;br&gt;&lt;br&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;script type = &quot;text/javascript&quot;&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function f2c() <br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var f=prompt(&quot;What Temperature?&quot;,&quot; &quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (f!=null &amp;&amp; f!=&quot; &quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var c= (5/9)*(f-32)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.write (f + &quot; Fahrenhiet is equal to &quot; + c + &quot; Celsius.&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
}<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function c2f() <br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var c=prompt(&quot;What Temperature?&quot;,&quot; &quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (c!=null &amp;&amp; c!=&quot; &quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var f= ((9/5)*c)+32<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.write (c + &quot; Celsius is equal to &quot; + f + &quot; Fahrenheit.&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
}<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/script&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;center&gt;&lt;input type=&quot;button&quot; onclick=&quot;f2c()&quot; value=&quot;Fahrenheit to Celsius&quot;/&gt;&lt;/center&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;center&gt;&lt;input type=&quot;button&quot; onclick=&quot;c2f()&quot; value=&quot;Celsius to Fahrenheit&quot;/&gt;&lt;/center&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/body&gt;<br />
&lt;/html&gt;</pre><br />
I have some c++ and logo experience, and understand programming structure, butHTML is a bit new to me. WhenI run this file as HTML it all works great, but what I would like to do next is: After you get your results displayed, have a link or button you can click to &quot;start over&quot;, bring you back to the start page without having to hit 'back' on your browser.<br />
I will provide a link to the site this lab is posted on for anybody who would like to confirm what I said in the beginning.<br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>firehazrd0</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240028.html</guid>
		</item>
		<item>
			<title>Light Box Not Working.</title>
			<link>http://www.daniweb.com/forums/thread239896.html</link>
			<pubDate>Fri, 20 Nov 2009 03:02:08 GMT</pubDate>
			<description><![CDATA[Hi, 
 
I'm trying to apply light box effect. When the user click on the thumbnail size photo, it will pop up a bigger want and then the background will all blackout...... It's just not working and the the imgage won't show up at all. 
 
Hope someone can point out my mistakes. tks. 
 
Here's my...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I'm trying to apply light box effect. When the user click on the thumbnail size photo, it will pop up a bigger want and then the background will all blackout...... It's just not working and the the imgage won't show up at all.<br />
<br />
Hope someone can point out my mistakes. tks.<br />
<br />
Here's my code:-<br />
 <pre style="margin:20px; line-height:13px">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;<br />
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;en&quot; lang=&quot;en&quot;&gt;<br />
&lt;head&gt;<br />
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot; /&gt;<br />
&lt;script src=&quot;jquery-1.3.2.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;<br />
&lt;title&gt;Javascript test&lt;/title&gt;<br />
&lt;script language=&quot;javascript&quot;&gt;<br />
document.getElementById('light').style.display='block';document.getElementById('fade').style.display='block';<br />
&lt;/script&gt;<br />
&lt;style type=&quot;text/css&quot;&gt;<br />
<br />
body {<br />
margin: 0;<br />
padding-left: 200px;<br />
padding-right: 190px;<br />
min-width: 240px;<br />
}<br />
<br />
#header, #footer {<br />
margin-left: -200px;<br />
margin-right: -190px;<br />
}<br />
<br />
.column {<br />
position: relative;<br />
float: left;<br />
}<br />
<br />
#center {<br />
padding: 0 20px;<br />
width: 100%;<br />
}<br />
<br />
#left {<br />
width: 180px;<br />
padding: 65px 10px;<br />
right: 240px;<br />
margin-left: -100%;<br />
}<br />
<br />
#right {<br />
width: 130px;<br />
padding: 0 10px;<br />
margin-right: -100%;<br />
}<br />
<br />
#footer {<br />
clear: both;<br />
}<br />
<br />
# buffer {<br />
padding: 35px 0; }<br />
<br />
#content-main {<br />
margin-top: 85px;<br />
margin-left: 100px;<br />
<br />
<br />
* html #left {<br />
left: 150px;<br />
}<br />
<br />
<br />
table { border: 1px solid #ffffff;<br />
border-spacing: 2px;<br />
margin-left: auto;<br />
margin-right: auto;<br />
padding: 2px;<br />
width: 95%; }<br />
<br />
td { border: 1 px solid #808080;<br />
margin : 2px;<br />
padding : 1px;<br />
}<br />
<br />
.black_overlay{<br />
position: relative;<br />
top: 0%;<br />
left: 0%;<br />
width: 100%;<br />
height: 100%;<br />
background-color: black;<br />
z-index: 1001;<br />
-moz-opacity: 0.8;<br />
opacity:.80;<br />
filter: alpha(opacity=80);<br />
}<br />
<br />
.white_content {<br />
position: relative;<br />
top: 25%;<br />
left: 25%;<br />
width: 100%;<br />
height: 100%;<br />
padding: 16px;<br />
border: 16px solid orange;<br />
background-color: white;<br />
overflow: auto;<br />
<br />
<br />
&lt;/style&gt;<br />
&lt;/head&gt;<br />
<br />
&lt;body&gt;<br />
<br />
&lt;div id=&quot;header&quot;&gt;This is the header.&lt;/div&gt;<br />
&lt;div id=&quot;center&quot; class=&quot;column&quot;&gt;<br />
&lt;div id=&quot;content-main&quot;&gt;<br />
&lt;div id=&quot;buffer&quot;&gt;&lt;/div&gt;<br />
&lt;table&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;<br />
&lt;a href = &quot;javascript<b></b>:void(0)&quot; onclick = &quot;document.getElementById('light').style.display='block';document.getElementById('fade').style.display='block'&quot;&gt;&lt;img src=&quot;CIMG0600.JPG&quot;alt=&quot;1&quot;height=&quot;200&quot; width=&quot;200&quot;&gt;&lt;/a&gt;<br />
&lt;div id=&quot;light&quot; class=&quot;white_content&quot;&gt;&lt;img src=&quot;CIMG0600.JPG&quot;alt=&quot;1&quot;height=&quot;100&quot; width=&quot;100&quot;&gt;&lt;a href = &quot;javascript<b></b>:void(0)&quot; onclick = &quot;document.getElementById('light').style.display='none';document.getElementById('fade').style.display='none'&quot;&gt;&lt;/a&gt;&lt;/div&gt;<br />
&lt;div id=&quot;fade&quot; class=&quot;black_overlay&quot;&gt;&lt;/div&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;<br />
<br />
&lt;td&gt;&lt;img src=&quot;CIMG0627.JPG&quot;alt=&quot;1&quot;height=&quot;100&quot; width=&quot;100&quot;&gt;&lt;/td&gt;<br />
&lt;td&gt;&lt;img src=&quot;CIMG1014.JPG&quot;alt=&quot;1&quot;height=&quot;100&quot; width=&quot;100&quot;&gt;&lt;/td&gt;<br />
&lt;td&gt;&lt;img src=&quot;CIMG1429.JPG&quot;alt=&quot;1&quot;height=&quot;100&quot; width=&quot;100&quot;&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;td&gt;&lt;img src=&quot;CIMG0500.JPG&quot;alt=&quot;1&quot;height=&quot;100&quot; width=&quot;100&quot;&gt;&lt;/td&gt;<br />
&lt;td&gt;&lt;img src=&quot;CIMG1020.JPG&quot;alt=&quot;1&quot;height=&quot;100&quot; width=&quot;100&quot;&gt;&lt;/td&gt;<br />
&lt;td&gt;&lt;img src=&quot;CIMG0710.JPG&quot;alt=&quot;1&quot;height=&quot;100&quot; width=&quot;100&quot;&gt;&lt;/td&gt;<br />
&lt;td&gt;&lt;img src=&quot;CIMG0616.JPG&quot;alt=&quot;1&quot;height=&quot;100&quot; width=&quot;100&quot;&gt;&lt;/td&gt;<br />
&lt;/table&gt;<br />
&lt;/div&gt;<br />
&lt;div id=&quot;left&quot; class=&quot;column&quot;&gt;<br />
&lt;h2&gt;About Us&lt;/h2&gt;<br />
&lt;p&gt;&lt;/p&gt;<br />
&lt;/br&gt;&lt;h3&gt;Our products &amp; services:&lt;/h3&gt;<br />
&lt;/div&gt;<br />
&lt;div id=&quot;right&quot; class=&quot;column&quot;&gt;<br />
&lt;p&gt;&lt;/p&gt;<br />
&lt;/div&gt;<br />
&lt;div id=&quot;footer&quot;&gt;<br />
&lt;/div&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>tangara</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239896.html</guid>
		</item>
		<item>
			<title>Make a button Visibile based on form field value</title>
			<link>http://www.daniweb.com/forums/thread239875.html</link>
			<pubDate>Fri, 20 Nov 2009 00:45:15 GMT</pubDate>
			<description><![CDATA[Buttons visibility is set to hidden to start.  Suggestions? 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags" target="_blank">Help...]]></description>
			<content:encoded><![CDATA[<div>Buttons visibility is set to hidden to start.  Suggestions?<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;script Language=&quot;JavaScript&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
Function CKPMT1()<br />
Var PMT1;<br />
&nbsp;  PMT1 = document.Form1.BalPmtPayee.value;<br />
IF PMT1 = &quot;&quot;&nbsp; then ;<br />
&nbsp;  document.Form1.B1.style.visiblity='visible';<br />
End if<br />
End Function<br />
<br />
&lt;body onLoad=&quot;CKPMT1()&quot;&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>Nuttdude</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239875.html</guid>
		</item>
		<item>
			<title>CSS drop down menu being covered in IE 7</title>
			<link>http://www.daniweb.com/forums/thread239777.html</link>
			<pubDate>Thu, 19 Nov 2009 15:17:18 GMT</pubDate>
			<description>Hi - 
 
I have a css drop down menu that hides behind a javascript photo gallery (in the main area of the page) in IE7. Not quite sure what to make of it. Any and all help is appreciated!!  
 
 
thanks</description>
			<content:encoded><![CDATA[<div>Hi -<br />
<br />
I have a css drop down menu that hides behind a javascript photo gallery (in the main area of the page) in IE7. Not quite sure what to make of it. Any and all help is appreciated!! <br />
<br />
<br />
thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>antr25</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239777.html</guid>
		</item>
		<item>
			<title>creating dynamic form using javascript</title>
			<link>http://www.daniweb.com/forums/thread239773.html</link>
			<pubDate>Thu, 19 Nov 2009 14:51:46 GMT</pubDate>
			<description><![CDATA[i'm still a newbie in javascript. i know this question may be silly for some experts in javascript. and i'm sorry for that :( 
 
i want to create a dynamic form using javascript, where i can click a button to add some new fields. i tried to search it in google, and i tried to use it. but it doesn't...]]></description>
			<content:encoded><![CDATA[<div>i'm still a newbie in javascript. i know this question may be silly for some experts in javascript. and i'm sorry for that :(<br />
<br />
i want to create a dynamic form using javascript, where i can click a button to add some new fields. i tried to search it in google, and i tried to use it. but it doesn't work in mozilla and gave error warning in IE. can someone help me in creating that dynamic form, or maybe you can give me some links that give explanation about that.<br />
<br />
thx so much,<br />
AG</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>AirGear</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239773.html</guid>
		</item>
		<item>
			<title>Design an oracle for the following JavaScript function</title>
			<link>http://www.daniweb.com/forums/thread239774.html</link>
			<pubDate>Thu, 19 Nov 2009 14:15:13 GMT</pubDate>
			<description>Design an oracle for the following JavaScript function.  
2.     Generate a test case set for this function and provide a coverage analysis report for your test case set. 
  
The JavaScript function:  
function purchaseSong(username, password, songId) { 
  
  // first authenticate the user 
  if...</description>
			<content:encoded><![CDATA[<div>Design an oracle for the following JavaScript function. <br />
2.     Generate a test case set for this function and provide a coverage analysis report for your test case set.<br />
 <br />
The JavaScript function: <br />
 <pre style="margin:20px; line-height:13px">function purchaseSong(username, password, songId) {<br />
&nbsp;<br />
&nbsp; // first authenticate the user<br />
&nbsp; if (checkCredentials(username, password) == false) {<br />
&nbsp; &nbsp; alert('The username or password is incorrect.');<br />
&nbsp; &nbsp; return;<br />
&nbsp; }<br />
&nbsp;<br />
&nbsp; // get the price of the song<br />
&nbsp; var songPrice = getSongPrice(songId);<br />
&nbsp;<br />
&nbsp; // make sure the user has enough money in his account<br />
&nbsp; if (getAccountBalance(username) &lt; songPrice) {<br />
&nbsp; &nbsp; alert('You do not have enough money in your account.');<br />
&nbsp; &nbsp; return;<br />
&nbsp; }<br />
&nbsp;<br />
&nbsp; // debit the user's account<br />
&nbsp; debitAccount(username, songPrice);<br />
&nbsp;<br />
&nbsp; // start downloading the song to the client machine<br />
&nbsp; downloadSong(songId);<br />
}</pre>Notice: You may note that the user could be malicious and try to modify the JavaScript. Your oracle and test case should reflect this fact.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>Gatayo</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239774.html</guid>
		</item>
		<item>
			<title>jQuery - unbind hyperlink click</title>
			<link>http://www.daniweb.com/forums/thread239751.html</link>
			<pubDate>Thu, 19 Nov 2009 13:39:02 GMT</pubDate>
			<description><![CDATA[Hi 
 
im messing around with some jQuery and want to disable a link whilst it performs a ajax post (its adding/fetching somthing from a database) and i want to disable the link so it cant be multiclickd. 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px">...]]></description>
			<content:encoded><![CDATA[<div>Hi<br />
<br />
im messing around with some jQuery and want to disable a link whilst it performs a ajax post (its adding/fetching somthing from a database) and i want to disable the link so it cant be multiclickd.<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;a href=\&quot;#\&quot; id=\&quot;seepages\&quot;&gt;See Page&lt;/a&gt;</pre><br />
ive tried using <br />
<br />
 <pre style="margin:20px; line-height:13px">$(&quot;#seepages&quot;).unbind('click');</pre><br />
but that dosnt work! =( <br />
how ever when i tried this<br />
<br />
 <pre style="margin:20px; line-height:13px">$(&quot;#seepages&quot;).unbind('click');<br />
$(&quot;#seepages&quot;).attr(&quot;id&quot;, &quot;disabled&quot;);</pre><br />
that works! but using either one of them by them self doesn't - work but why?<br />
<br />
any advice/tips would be useful! thanks in advance =)<br />
<br />
edit:<br />
i should also have said that i have to use:<br />
 <pre style="margin:20px; line-height:13px">$(&quot;#disabled&quot;).attr(&quot;id&quot;, &quot;seepages&quot;); <br />
$(&quot;#disabled&quot;).bind('click');</pre><br />
to enable it again</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>OnIIcE</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239751.html</guid>
		</item>
		<item>
			<title>Ajax Implementation on Project</title>
			<link>http://www.daniweb.com/forums/thread239647.html</link>
			<pubDate>Thu, 19 Nov 2009 05:22:44 GMT</pubDate>
			<description>Hello All, 
 
I work on PL/SQL web applications with oracle Application Server. I wish to start using some of Ajax features in my applications. Do I need to perform any application/db server side configuration changes to accommodate Ajax implementations? 
Your suggestions will be of great help to...</description>
			<content:encoded><![CDATA[<div>Hello All,<br />
<br />
I work on PL/SQL web applications with oracle Application Server. I wish to start using some of Ajax features in my applications. Do I need to perform any application/db server side configuration changes to accommodate Ajax implementations?<br />
Your suggestions will be of great help to me.<br />
<br />
Thanks in advance</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>skulkar</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239647.html</guid>
		</item>
		<item>
			<title>help.form page. no inner html</title>
			<link>http://www.daniweb.com/forums/thread239547.html</link>
			<pubDate>Wed, 18 Nov 2009 20:23:51 GMT</pubDate>
			<description><![CDATA[I'm trying to use javascript with NO Innerhtml. i am very new to javascript and i need a little help completing this form. the code i have so far to create a form page is just below this message.  
 
How do i create a code when focused the text fields should offer a hint to the right of the text...]]></description>
			<content:encoded><![CDATA[<div>I'm trying to use javascript with NO Innerhtml. i am very new to javascript and i need a little help completing this form. the code i have so far to create a form page is just below this message. <br />
<br />
How do i create a code when focused the text fields should offer a hint to the right of the text field that indicates how the user should input data??<br />
<br />
When unfocused, the validateData() function should be called.<br />
<br />
also how do i create my 2 survey questions a radio buttons??<br />
<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;script type=&quot;text/javascript&quot;&gt;<br />
function assignHandlers()<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.getElementById(&quot;fname&quot;).onblur = function()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (document.forms[0].fname.value !=&quot;&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(document.forms[0].fname.value);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
}<br />
<br />
window.onload=assignHandlers;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/script&gt;<br />
<br />
&lt;/head&gt;<br />
<br />
&lt;body&gt;<br />
&lt;form&gt;<br />
<br />
&lt;fieldset&gt;&lt;legend&gt;User Info&lt;/legend&gt;<br />
&lt;label for=&quot;fname&quot;&gt;First name&lt;/label&gt;&lt;input type=&quot;text&quot; name=&quot;fname&quot; id=&quot;fname&quot; /&gt;<br />
&lt;br/&gt;<br />
<br />
<br />
<br />
&lt;label for=&quot;lname&quot;&gt;Last name&lt;/label&gt;&lt;input type=&quot;text&quot; name=&quot;lname&quot; /&gt; &lt;br/&gt;<br />
&lt;label for=&quot;email&quot;&gt;email&lt;/label&gt;&lt;input type=&quot;text&quot; name=&quot;email&quot; /&gt; &lt;br/&gt;<br />
&lt;label for=&quot;phone&quot;&gt;Phone Number&lt;/label&gt;&lt;input type=&quot;text&quot; name=&quot;phone&quot; /&gt; &lt;br/&gt;<br />
&lt;label for=&quot;url&quot;&gt;Sulley Website&lt;/label&gt;&lt;input type=&quot;text&quot; name=&quot;url&quot; /&gt; &lt;br/&gt;<br />
&lt;/fieldset&gt;<br />
<br />
&lt;fieldset&gt;&lt;legend&gt; Survey&lt;/legend&gt;<br />
<br />
&lt;label for=&quot;question1&quot;&gt;Do you drink alcohol?&lt;/label&gt;<br />
&lt;input type=&quot;radio&quot; name=&quot;question1&quot; value=&quot;true&quot; /&gt;True<br />
&lt;input type=&quot;radio&quot; name=&quot;question1&quot; value=&quot;false&quot; /&gt;False &lt;br/&gt;<br />
<br />
&lt;label for=&quot;question2&quot;&gt; Do you have a DUI?&lt;/label&gt;<br />
&lt;input type=&quot;radio&quot; name=&quot;question2&quot; value=&quot;true&quot; /&gt;True<br />
&lt;input type=&quot;radio&quot; name=&quot;question2&quot; value=&quot;false&quot; /&gt;False &lt;br/&gt;<br />
&lt;/fieldset&gt;<br />
<br />
&lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;Submit!&quot; /&gt;<br />
&lt;/form&gt;<br />
<br />
<br />
&lt;/body&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>dmmajorstudent</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239547.html</guid>
		</item>
		<item>
			<title>Classes and Objects</title>
			<link>http://www.daniweb.com/forums/thread239475.html</link>
			<pubDate>Wed, 18 Nov 2009 14:51:06 GMT</pubDate>
			<description><![CDATA[Hey there everyone 
I'm a bit troubled with something I'm trying to construct, I'm trying to create an object that can reproduce itself, creating more objects that can be accessed also, to reproduce themselves. Each object would then be given a random name like: object1, object2 so they can be...]]></description>
			<content:encoded><![CDATA[<div>Hey there everyone<br />
I'm a bit troubled with something I'm trying to construct, I'm trying to create an object that can reproduce itself, creating more objects that can be accessed also, to reproduce themselves. Each object would then be given a random name like: object1, object2 so they can be accessed to create object3, object4, object5 and object6.<br />
<br />
I've come up with the following code, which has some segments that you might find weird but those are just testing.<br />
<br />
 <pre style="margin:20px; line-height:13px">function cMicrobe() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; var prInterval = 1.2;<br />
&nbsp; &nbsp; &nbsp; &nbsp; var prNumber = 1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; this.puX = 50;<br />
&nbsp; &nbsp; this.puY = 50;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; this.move = function() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.puX += Math.floor(Math.random()*11);<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.puY += Math.floor(Math.random()*11);<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; this.reproduce = function(name) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; prNumber += prNumber;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; name = new cMicrobe();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; this.report = function() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.write(&quot;x: &quot; + this.puX + &quot;&lt;br /&gt;y: &quot; + this.puY + &quot;&lt;br /&gt; &lt;br /&gt;&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
}<br />
<br />
oMicrobe = new cMicrobe();<br />
oMicrobe.report();<br />
oMicrobe.move();<br />
oMicrobe.report();<br />
<br />
<br />
oMicrobe.reproduce(&quot;test&quot;);<br />
test.report();</pre><br />
I'm quite stuck here, I don't know the keywords to search on Google for this so I can't figure out how I can make an additional object, named test. If I can make test I can make object2, etc.<br />
<br />
I'd appreciate some help on this,<br />
thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>brechtjah</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239475.html</guid>
		</item>
		<item>
			<title>grey out the page while showing the loading image</title>
			<link>http://www.daniweb.com/forums/thread239468.html</link>
			<pubDate>Wed, 18 Nov 2009 14:18:48 GMT</pubDate>
			<description>Hi friends, 
 
I need to do this: 
Scroll down the scroll bar 
grey out all my page and show a loading gif  
load, thru ajax, content from the db server 
turn off grey and loading gif  
update current page content.  
 
how can i do this without using jQuery?</description>
			<content:encoded><![CDATA[<div>Hi friends,<br />
<br />
I need to do this:<br />
Scroll down the scroll bar<br />
grey out all my page and show a loading gif <br />
load, thru ajax, content from the db server<br />
turn off grey and loading gif <br />
update current page content. <br />
<br />
how can i do this without using jQuery? <br />
<br />
Many thanks in advance</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>gk0110</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239468.html</guid>
		</item>
		<item>
			<title>Script Not Working in Other Browser except IE</title>
			<link>http://www.daniweb.com/forums/thread239465.html</link>
			<pubDate>Wed, 18 Nov 2009 14:10:33 GMT</pubDate>
			<description>Dear All Experts 
 
I wrote a simple code in javascript and it  is working fine with IE but when I open the page in FireFox or in Google Crome it is not working as I expect. Actually I am enabling and disabling the combo box on the on change event of radio button. 
 
Please check the code attached...</description>
			<content:encoded><![CDATA[<div>Dear All Experts<br />
<br />
I wrote a simple code in javascript and it  is working fine with IE but when I open the page in FireFox or in Google Crome it is not working as I expect. Actually I am enabling and disabling the combo box on the on change event of radio button.<br />
<br />
Please check the code attached here. And visit my site for output <br />
<a rel="nofollow" class="t" href="http://www.crispwerx.com/catasset" target="_blank">www.crispwerx.com/catasset</a><br />
<br />
Thanx to all viewer and helper</div>  <br /> <div style="padding:5px">     <fieldset class="fieldset"> <legend>Attached Files</legend> <table cellpadding="0" cellspacing="5" border="0"> <tr> <td><img class="inlineimg" src="http://www.daniweb.com/forums/images/attach/php.gif" alt="File Type: php" width="16" height="16" border="0" style="vertical-align:baseline" /></td> <td><a href="http://www.daniweb.com/forums/attachment.php?attachmentid=12620&amp;d=1258553327">index.php</a> (2.5 KB)</td> </tr> </table> </fieldset>  </div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>vishalonne</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239465.html</guid>
		</item>
		<item>
			<title>Are jquery pagination are reliable with large data</title>
			<link>http://www.daniweb.com/forums/thread239451.html</link>
			<pubDate>Wed, 18 Nov 2009 13:24:33 GMT</pubDate>
			<description><![CDATA[http://www.d-scribe.de/webtools/jquery-pagination/demo/demo_options.htm 
 
these type of jquery pagination are riable for large data...??? 
 where query doesnt need 'limit' in it..!!! 
 
thanks]]></description>
			<content:encoded><![CDATA[<div><a rel="nofollow" class="t" href="http://www.d-scribe.de/webtools/jquery-pagination/demo/demo_options.htm" target="_blank">http://www.d-scribe.de/webtools/jque...mo_options.htm</a><br />
<br />
these type of jquery pagination are riable for large data...???<br />
 where query doesnt need 'limit' in it..!!!<br />
<br />
thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>sam023</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239451.html</guid>
		</item>
		<item>
			<title>how we can change symbol in password field in javascript?</title>
			<link>http://www.daniweb.com/forums/thread239421.html</link>
			<pubDate>Wed, 18 Nov 2009 10:46:53 GMT</pubDate>
			<description><![CDATA[Friends , I wana know that how we can change text symbol in password field by using JavaScript. I mean by default there is filled circle , but I want "*" this symbol.]]></description>
			<content:encoded><![CDATA[<div>Friends , I wana know that how we can change text symbol in password field by using JavaScript. I mean by default there is filled circle , but I want &quot;*&quot; this symbol.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>lakodajin</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239421.html</guid>
		</item>
		<item>
			<title>problem with setting input text value</title>
			<link>http://www.daniweb.com/forums/thread239401.html</link>
			<pubDate>Wed, 18 Nov 2009 09:24:32 GMT</pubDate>
			<description><![CDATA[Hi !!  
i faced problem with javascript. When I call function change() it applies only second element that is link2. I wanted  when i click the link, the link name must appear to textfield.can anyone help?? 
 
here is code: 
 
<html> 
<body> 
<form> 
<a id="static"...]]></description>
			<content:encoded><![CDATA[<div>Hi !! <br />
i faced problem with javascript. When I call function change() it applies only second element that is link2. I wanted  when i click the link, the link name must appear to textfield.can anyone help??<br />
<br />
here is code:<br />
 <pre style="margin:20px; line-height:13px">&lt;html&gt;<br />
&lt;body&gt;<br />
&lt;form&gt;<br />
&lt;a id=&quot;static&quot; href=&quot;staticContentAdmin.ioml&quot;&gt;link1&lt;/a&gt;&lt;/br&gt;<br />
&lt;a id=&quot;static&quot; href=&quot;staticContentAdmin.ioml&quot;&gt;link2&lt;/a&gt;&lt;/br&gt;<br />
&lt;input type=&quot;text&quot; id=&quot;spec&quot; name=&quot;content&quot;/&gt;<br />
&lt;/form&gt;<br />
&lt;script&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; var a = document.getElementsByTagName(&quot;a&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; for(var i=0;i&lt;a.length;i++){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; a&#91;i&#93;.href=&quot;#&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var ale = a&#91;i&#93;.innerHTML;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; a&#91;i&#93;.onclick =change(ale);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; function change(object){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var inputobj = document.getElementById(&quot;spec&quot;); <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; inputobj.value = object;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&lt;/script&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>samlabs821</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239401.html</guid>
		</item>
		<item>
			<title>onclick function is not working (plz help)</title>
			<link>http://www.daniweb.com/forums/thread239389.html</link>
			<pubDate>Wed, 18 Nov 2009 07:55:36 GMT</pubDate>
			<description><![CDATA[plz chk my coding n tell me whr I am wrong. 
<html> 
  <head> 
   <title> 
    My simple calculator 
   </title> 
  </head> 
     <script language="JavaScript"> 
     <!-- 
     function addit()]]></description>
			<content:encoded><![CDATA[<div>plz chk my coding n tell me whr I am wrong.<br />
 <pre style="margin:20px; line-height:13px">&lt;html&gt;<br />
&nbsp; &lt;head&gt;<br />
&nbsp;  &lt;title&gt;<br />
&nbsp; &nbsp; My simple calculator<br />
&nbsp;  &lt;/title&gt;<br />
&nbsp; &lt;/head&gt;<br />
&nbsp; &nbsp;  &lt;script language=&quot;JavaScript&quot;&gt;<br />
&nbsp; &nbsp;  &lt;!--<br />
&nbsp; &nbsp;  function addit()<br />
&nbsp; &nbsp; &nbsp; {<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var num1=document.calform.one.value;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var num2=document.calform.two.value;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  document.calform.result.value=parseFloat(num1)+parseFloat(num2);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp;  &lt;!--<br />
&nbsp; &nbsp; &nbsp; &nbsp;  function minus()<br />
&nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  var num1=document.calform.one.value;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  var num2=document.calform.two.value;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  document.calform.result.value=parseFloat(num1)-parseFloat(num2);<br />
&nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp;  }<br />
<br />
&nbsp; &nbsp;  --&gt;<br />
&nbsp; &nbsp; &nbsp;  &lt;/script&gt;<br />
&nbsp; &nbsp; &nbsp;  &lt;body&gt;Add subtract Calculator<br />
&nbsp; &nbsp; &nbsp; &nbsp;  &lt;form name=&quot;calform&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;p&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; First Number:&lt;input type=&quot;text&quot; name=&quot;one&quot; maxlength=&quot;3&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;p&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Second Name:&lt;input type=&quot;text&quot; name=&quot;two&quot; maxlength=&quot;3&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;p&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Result:&lt;input type=&quot;text&quot; name=&quot;result&quot; maxlength=&quot;9&quot; disabled&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;p&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;button&quot;name=&quot;add&quot;value=&quot;Add Them!&quot;onclick=&quot;addit()&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;button&quot;name=&quot;minus&quot;value=&quot;Subtract Them!&quot;onclick=&quot;minus()&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;reset&quot; value=&quot;Reset!&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  &lt;/form&gt;<br />
&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>lakodajin</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239389.html</guid>
		</item>
		<item>
			<title>How Disable The F5 Key In Mozilla</title>
			<link>http://www.daniweb.com/forums/thread239353.html</link>
			<pubDate>Wed, 18 Nov 2009 04:49:45 GMT</pubDate>
			<description><![CDATA[I am trying to disable the F5 key in Mozilla. I have the next code in 
javascript that it is working in Internet Explorer but it is not 
working in Mozilla. how can I disable the F5 key in Mozilla? 
 
Code: 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px">...]]></description>
			<content:encoded><![CDATA[<div>I am trying to disable the F5 key in Mozilla. I have the next code in<br />
javascript that it is working in Internet Explorer but it is not<br />
working in Mozilla. how can I disable the F5 key in Mozilla?<br />
<br />
Code:<br />
 <pre style="margin:20px; line-height:13px"><br />
&nbsp; &nbsp; &nbsp; function checkKeyCode(evt)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp;  var evt = (evt) ? evt : ((event) ? event : null);<br />
<br />
&nbsp; &nbsp; &nbsp; var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);<br />
&nbsp;  <br />
&nbsp; &nbsp; &nbsp; if(event.keyCode==116)<br />
&nbsp;  <br />
&nbsp; &nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; &nbsp; evt.keyCode=0;<br />
&nbsp; <br />
&nbsp; &nbsp; &nbsp; return false<br />
&nbsp; <br />
&nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp;  }</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>psathish2</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239353.html</guid>
		</item>
		<item>
			<title>Select List/Menu Help</title>
			<link>http://www.daniweb.com/forums/thread239342.html</link>
			<pubDate>Wed, 18 Nov 2009 04:06:08 GMT</pubDate>
			<description><![CDATA[I am New in web designing 
What i want is  i have one List/Menu its called Make it's containing some vehicles Brands  when i selected a brand name i want another list/menu display the models that relevant to Brand   
 
this is a screen shot that what i need 
Image:...]]></description>
			<content:encoded><![CDATA[<div>I am New in web designing<br />
What i want is  i have one List/Menu its called Make it's containing some vehicles Brands  when i selected a brand name i want another list/menu display the models that relevant to Brand  <br />
<br />
this is a screen shot that what i need<br />
<img src="http://i256.photobucket.com/albums/hh192/magnificent_roo/model.gif" border="0" alt="" /><br />
 <br />
some of  vehicle websites are using this thing <br />
<br />
Here is my codes<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;<br />
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;<br />
&lt;head&gt;<br />
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;<br />
&lt;title&gt;Untitled Document&lt;/title&gt;<br />
&lt;/head&gt;<br />
<br />
&lt;body&gt;&lt;form action=&quot;&quot; method=&quot;post&quot; name=&quot;F2&quot; id=&quot;F2&quot;&gt;<br />
&nbsp; &lt;p&gt;Make<br />
&nbsp; &nbsp; &lt;select name=&quot;list&quot; id=&quot;list&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;option value=&quot;DESOTO &quot;&gt;DESOTO &lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;option value=&quot;DODGE &quot;&gt;DODGE &lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;option value=&quot;DUTTON &quot;&gt;DUTTON &lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;option value=&quot;EDSEL &quot;&gt;EDSEL &lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;option value=&quot;ELFIN &quot;&gt;ELFIN &lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;option value=&quot;EUNOS &quot;&gt;EUNOS &lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;option value=&quot;FERRARI &quot;&gt;FERRARI &lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;option value=&quot;FIAT &quot;&gt;FIAT &lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;option value=&quot;FORD &quot;&gt;FORD &lt;/option&gt;<br />
&nbsp; &nbsp; &lt;/select&gt;<br />
&nbsp; &lt;/p&gt;<br />
&nbsp; &lt;p&gt;Model<br />
&nbsp; &nbsp; &lt;select name=&quot;select&quot; id=&quot;select&quot;&gt;<br />
&nbsp; &nbsp; &lt;option&gt;SELECT&lt;/option&gt;<br />
&nbsp; &nbsp; &lt;/select&gt;<br />
&nbsp; &lt;/p&gt;<br />
&lt;/form&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>ruwanaru</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239342.html</guid>
		</item>
		<item>
			<title>Postal Address Validation Libraries</title>
			<link>http://www.daniweb.com/forums/thread239241.html</link>
			<pubDate>Tue, 17 Nov 2009 17:32:17 GMT</pubDate>
			<description><![CDATA[Hello folks, 
I am a young webdeveloper from Germany. 
There is this technology used in this great website that doesn't stop amusing me, I was just hoping someone could cypher the technology behind it and perhaps reveal it is done with the help of some freely available Library  
 
the link to this...]]></description>
			<content:encoded><![CDATA[<div>Hello folks,<br />
I am a young webdeveloper from Germany.<br />
There is this technology used in this great website that doesn't stop amusing me, I was just hoping someone could cypher the technology behind it and perhaps reveal it is done with the help of some freely available Library <br />
<br />
the link to this DSL Internet provider company is:<br />
<br />
<a rel="nofollow" class="t" href="http://www.alice-dsl.de/tavp/ooPreAction1.do?ka=pk&amp;prod=fun&amp;dsl_tariff=flat&amp;phone=&amp;dsl_speed=&amp;iptv=no" target="_blank">http://www.alice-dsl.de/tavp/ooPreAc...speed=&amp;iptv=no</a><br />
<br />
<br />
just insert this postal zip code in there to test the service: <span style="font-weight:bold">68161</span><br />
that is a German Zip coad for the city Mannheim. As soon as you type in this post code, the fields of <br />
cheers</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>marian99us</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239241.html</guid>
		</item>
		<item>
			<title>Google Calendar Search on Website</title>
			<link>http://www.daniweb.com/forums/thread238963.html</link>
			<pubDate>Mon, 16 Nov 2009 15:55:38 GMT</pubDate>
			<description><![CDATA[This may be the wrong place to be posting this but here I go. 
 
I have a search on my site that uses Google Custom Search. I would like it to also search my Google Calendar. I can't find any method to search just the Google Calendar. I was wondering if someone knew how to search the Calendar and...]]></description>
			<content:encoded><![CDATA[<div>This may be the wrong place to be posting this but here I go.<br />
<br />
I have a search on my site that uses Google Custom Search. I would like it to also search my Google Calendar. I can't find any method to search just the Google Calendar. I was wondering if someone knew how to search the Calendar and once i got that i could some how tie it together with the website search.<br />
<br />
So i need help finding a way to search Google Calendar and then tying it into the website search.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>jonow</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238963.html</guid>
		</item>
		<item>
			<title>Close through browser close button code working in IE not working in Fire Fox</title>
			<link>http://www.daniweb.com/forums/thread238942.html</link>
			<pubDate>Mon, 16 Nov 2009 14:23:52 GMT</pubDate>
			<description>Suppose,closing the browser through Browser Close Button(Top Right Corner cross(x) button), i have to execute some ASP script , for that, in body onUnLoad Event calling a fucntion 
called CloseWin(e,frm), it is working in Internet Explorer successfully , But in FireFox not working. how to solve...</description>
			<content:encoded><![CDATA[<div>Suppose,closing the browser through Browser Close Button(Top Right Corner cross(x) button), i have to execute some ASP script , for that, in body onUnLoad Event calling a fucntion<br />
called CloseWin(e,frm), it is working in Internet Explorer successfully , But in FireFox not working. how to solve this problem. or any other way to get the co-ordinates of browser close button( code for both IE and Firefox). Please help me in this regard.<br />
<br />
thanks in advance .<br />
<br />
code follows<br />
<br />
 <pre style="margin:20px; line-height:13px">function CloseWin(e,frm)<br />
{<br />
<br />
//frm required for my program<br />
<br />
var bButtonClicked = false;<br />
<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (!e)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var e=window.event;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; if((e.clientY &lt; -80)) //IE<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  bButtonClicked=true;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; else if((e.pageX&lt;0) || (e.pageY&lt;0)) //Fire Fox<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bButtonClicked=true;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (bButtonClicked==true)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;browser closed!!!&quot;);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;browser not closed!!!&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
}</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>RMSASPFORUM</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238942.html</guid>
		</item>
		<item>
			<title>Inserting a variable into a variable name</title>
			<link>http://www.daniweb.com/forums/thread238810.html</link>
			<pubDate>Mon, 16 Nov 2009 03:22:41 GMT</pubDate>
			<description><![CDATA[Hello again :) 
 
I am having a problem where I want to change a particular variable based on what parameters I send to a js function.  
 
In the code below, dnum is a number 1-6, and I want the global variable d1keep (or d2keep, d3keep etc.) to equal the dvalue. 
 
  <div class="codeblock"> <div...]]></description>
			<content:encoded><![CDATA[<div>Hello again :)<br />
<br />
I am having a problem where I want to change a particular variable based on what parameters I send to a js function. <br />
<br />
In the code below, dnum is a number 1-6, and I want the global variable d1keep (or d2keep, d3keep etc.) to equal the dvalue.<br />
<br />
 <pre style="margin:20px; line-height:13px">function KeepDie(dnum, dvalue) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; d+dnum+keep=dvalue;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp;  ... (more code)<br />
}</pre><br />
I've tried using single quotes, double quotes, brackets, curly brackets, parentheses, and other punctuation in many locations all over that line of code, but I cannot get it to work.  <br />
<br />
Please help, thanks!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>Kadjii</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238810.html</guid>
		</item>
		<item>
			<title>JS form validation pass variables into php file</title>
			<link>http://www.daniweb.com/forums/thread238797.html</link>
			<pubDate>Mon, 16 Nov 2009 02:19:27 GMT</pubDate>
			<description><![CDATA[Hi, 
 
I'm new to this and have a quick question. 
 
I have a form called register.html and have javascript to check the form validation 
 
 
<form 
<input type="submit" value="Submit" onClick="return formValidate()"> 
</form>]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I'm new to this and have a quick question.<br />
<br />
I have a form called register.html and have javascript to check the form validation<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;form<br />
&lt;input type=&quot;submit&quot; value=&quot;Submit&quot; onClick=&quot;return formValidate()&quot;&gt;<br />
&lt;/form&gt;</pre><br />
so in register.html when user presses submit the formValidate method (javascript) is run.<br />
<br />
once it returns true, how do i pass the variables from the form into a php page?<br />
<br />
i know i can change onClick=&quot;data.php&quot; but then the JS is not being run ...<br />
<br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>ady_1</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238797.html</guid>
		</item>
		<item>
			<title>Code Snippet JS Date-parser</title>
			<link>http://www.daniweb.com/code/snippet238772.html</link>
			<pubDate>Sun, 15 Nov 2009 22:50:33 GMT</pubDate>
			<description><![CDATA[This is a simple code-snippet that can be used to parse dates with javascript. It's setup to use European dates (dd.mm.yyyy | dd/mm/yyyy | dd,mm,yyyy), but it can easily be setup to use american dates as well (mm/dd/yyyy etc), to do so simply replace "$1" with "$2" and "$2" with "$1". 
 
No...]]></description>
			<content:encoded><![CDATA[<div>This is a simple code-snippet that can be used to parse dates with javascript. It's setup to use European dates (dd.mm.yyyy | dd/mm/yyyy | dd,mm,yyyy), but it can easily be setup to use american dates as well (mm/dd/yyyy etc), to do so simply replace &quot;$1&quot; with &quot;$2&quot; and &quot;$2&quot; with &quot;$1&quot;.<br />
<br />
No framework should be required for this code to run.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>Alxandr</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238772.html</guid>
		</item>
		<item>
			<title>Submit Button linking to another page</title>
			<link>http://www.daniweb.com/forums/thread238763.html</link>
			<pubDate>Sun, 15 Nov 2009 21:47:03 GMT</pubDate>
			<description><![CDATA[How would I go about creating the coding for a submit button that links to another page?  And I would I go about creating the coding for the reset button that resets the page?  I go about creating a code to do so, but it never works.  Here is the coding I have for the submit button: 
 
  <div...]]></description>
			<content:encoded><![CDATA[<div>How would I go about creating the coding for a submit button that links to another page?  And I would I go about creating the coding for the reset button that resets the page?  I go about creating a code to do so, but it never works.  Here is the coding I have for the submit button:<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;p id=&quot;pbuttons&quot;&gt;&lt;center&gt;<br />
&nbsp;  &lt;input type=&quot;reset&quot; value=&quot;Reset&quot; /&gt;<br />
&nbsp;  &lt;input type=&quot;submit&quot; value=&quot;Submit Order&quot;&gt;<br />
&lt;/center&gt;&lt;/p&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>Rblalock</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238763.html</guid>
		</item>
		<item>
			<title>html - redirect</title>
			<link>http://www.daniweb.com/forums/thread238715.html</link>
			<pubDate>Sun, 15 Nov 2009 18:59:38 GMT</pubDate>
			<description><![CDATA[I am making a web site and I was wondering how I would redirect the user to a different website if Javascript is not enabled.  I can't use <noscript> because It needs to redirect.  Could I put a meta tag inside a noscript tag?  Thx.]]></description>
			<content:encoded><![CDATA[<div>I am making a web site and I was wondering how I would redirect the user to a different website if Javascript is not enabled.  I can't use &lt;noscript&gt; because It needs to redirect.  Could I put a meta tag inside a noscript tag?  Thx.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>Romil797</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238715.html</guid>
		</item>
		<item>
			<title>copy treeview node to another treeview node using javascript dynamically</title>
			<link>http://www.daniweb.com/forums/thread238586.html</link>
			<pubDate>Sun, 15 Nov 2009 03:51:51 GMT</pubDate>
			<description>hello , 
 
my problem is that.. i have 2 treeview 
 
treeview1 and treeview2 
 
my problem is that when i add the node on treeview1 then i want to just copy the same treeview1 node to another treeview2 node 
 
please tell me how to do that i just want to ask that please help me its urgent because i...</description>
			<content:encoded><![CDATA[<div>hello ,<br />
<br />
my problem is that.. i have 2 treeview<br />
<br />
treeview1 and treeview2<br />
<br />
my problem is that when i add the node on treeview1 then i want to just copy the same treeview1 node to another treeview2 node<br />
<br />
please tell me how to do that i just want to ask that please help me its urgent because i am stuck with the code more then 2 days a little problem make it too big ...</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>mkfastian</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238586.html</guid>
		</item>
		<item>
			<title>coverXP Pro 1.65 inc KeyGen</title>
			<link>http://www.daniweb.com/forums/thread238585.html</link>
			<pubDate>Sun, 15 Nov 2009 03:50:53 GMT</pubDate>
			<description>sorry wrong title entered..</description>
			<content:encoded><![CDATA[<div>sorry wrong title entered..</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>mkfastian</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238585.html</guid>
		</item>
		<item>
			<title>rolling dice</title>
			<link>http://www.daniweb.com/forums/thread238522.html</link>
			<pubDate>Sat, 14 Nov 2009 18:21:25 GMT</pubDate>
			<description><![CDATA[Hi, 
 
I am trying to code a game program in js that will allow the user to click on a "Roll Dice" button that calls a js function to randomly display various images of dice.  My problem is that I cant find a way to display the images where I want.  The only way so far I know is to use...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I am trying to code a game program in js that will allow the user to click on a &quot;Roll Dice&quot; button that calls a js function to randomly display various images of dice.  My problem is that I cant find a way to display the images where I want.  The only way so far I know is to use document.write but that creates a new page that displays only the image(s).  What I want is for the images to appear in a certain cell of a table.  This seems like it should be fairly easy to do but I cant find any information on the web..  Please help!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>Kadjii</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238522.html</guid>
		</item>
		<item>
			<title>javascript lighting</title>
			<link>http://www.daniweb.com/forums/thread238504.html</link>
			<pubDate>Sat, 14 Nov 2009 15:41:03 GMT</pubDate>
			<description><![CDATA[:icon_smile:* hello everyone ! .. I am Abhinab Roy. I am new to this Place and I am very glad to be here. I am pursuing a course called Diploma in Multimedia & Animation. :(I have a exam on 17th Nov. .. and I have a problem in Javascript. We have been told to make a javascript code that will do the...]]></description>
			<content:encoded><![CDATA[<div>:icon_smile:<span style="font-weight:bold"> hello everyone ! .. I am Abhinab Roy. I am new to this Place and I am very glad to be here. I am pursuing a course called Diploma in Multimedia &amp; Animation. :(I have a exam on 17th Nov. .. and I have a problem in Javascript. We have been told to make a javascript code that will do the following :<br />
i) there will be image <br />
ii) the image will previously be dark or black<br />
iii)Whenever the mouse will be rolled over it the place where the cursor is should be illuminated so that the image can be seen clearly.<br />
<br />
:'(someone please please help me out or atleat give me a hint.<br />
I will be in your debt.........<br />
Plzzz Someone help me out </span></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>abhymax</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238504.html</guid>
		</item>
		<item>
			<title>problem with pictures</title>
			<link>http://www.daniweb.com/forums/thread238388.html</link>
			<pubDate>Fri, 13 Nov 2009 22:08:45 GMT</pubDate>
			<description><![CDATA[Hello Everyone, 
Quick history....Im a systems engineer, total newbie to web dev. 
 
 
Ive been trying to maintain a memorial website that we had created when my sister passed away. It was hosted somewhere but the person who made it couldn't maintain it anymore, so I downloaded all of the pages and...]]></description>
			<content:encoded><![CDATA[<div>Hello Everyone,<br />
Quick history....Im a systems engineer, total newbie to web dev.<br />
<br />
<br />
Ive been trying to maintain a memorial website that we had created when my sister passed away. It was hosted somewhere but the person who made it couldn't maintain it anymore, so I downloaded all of the pages and rebuilt it on my linux server. Heres the site:<br />
<br />
<a rel="nofollow" class="t" href="http://triciajean.com" target="_blank">http://triciajean.com</a><br />
<br />
If you poke around on there you will see some pages that have text that says click here for more pictures, like on the growing up page, and the baby pictures page.<br />
<br />
Thats my problem, the links dont work. <br />
<br />
The pages were created with Freeway, and alot of javascript in there that I dont understand. I have all of the pictures in the directory , no clue why they wont load?<br />
<br />
Can anyone maybe help me out? Ill post the javascript that I think is the problem:<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot; &quot;http://www.w3.org/TR/html4/loose.dtd&quot;&gt;<br />
&lt;html&gt;&lt;head&gt;&lt;title&gt;Baby Pictures&lt;/title&gt;<br />
&lt;meta name=&quot;GENERATOR&quot; content=&quot;Freeway 4 Pro 4.2.2&quot;&gt;&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=ISO-8859-1&quot;&gt;&lt;style type=&quot;text/css&quot;&gt;<br />
body { margin-left:0px; margin-right:0px; margin-top:0px; background-color:#fff; background-image:url(Tricia-266pixels.jpg) }<br />
p:first-child { margin-top:0px }<br />
table { empty-cells:hide }<br />
._sp { font-size:1px; visibility:hidden }<br />
._lp { margin-bottom:0px }<br />
<br />
&lt;/style&gt;<br />
<br />
&lt;script language=&quot;javascript&quot;&gt;<br />
var ft_target1 = 0;<br />
function NewSlide(direction,wrap) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; var arr = new Array(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14);<br />
&nbsp; &nbsp; &nbsp; &nbsp; var obj;<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (arr.length &gt; 0)&nbsp; &nbsp;  {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (direction &gt; arr.length){ ft_target1=arr.length-1 }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else if (direction &lt; -arr.length) ft_target1 = 1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ft_target1 = ft_target1 + direction;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (ft_target1&lt;1){ if (wrap) ft_target1=arr.length; else ft_target1=1; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else if (ft_target1&gt;=arr.length){ if (wrap){ft_target1=1;} else {ft_target1=arr.length-1;} }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; targetnumber = arr[ft_target1];<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (top.frames.length) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (i = 0 ; i != top.frames.length ; i++) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; obj = eval(&quot;top.frames[&quot; + i + &quot;].window.FT_Indigo&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (obj != null) for (j in obj)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; obj[j](targetnumber, 1);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; obj = eval('top.FT_Indigo');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (obj != null) for (j in obj)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; obj[j](targetnumber, 1);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; obj = eval('window.FT_Indigo');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (obj != null) for (j in obj)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; obj[j](targetnumber, 1);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp;  }<br />
}<br />
<br />
&lt;/script&gt;&lt;script type=&quot;text/javascript&quot;&gt;//&lt;![CDATA[<br />
<br />
var fwIsNetscape = navigator.appName == 'Netscape';<br />
<br />
function FWLHitSwap(layer,name,num)<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; var image = arguments[num+3];<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (document.images &amp;&amp; image)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var uselayers = fwIsNetscape &amp;&amp; document.layers &amp;&amp; layer != '';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var hld;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (uselayers)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hld = document.layers[layer].document;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hld = (document.all) ? document.all : document;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hld[name].src = FWLoad(image);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
}<br />
<br />
fwLoad = new Object;<br />
function FWLoad(image)<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (!document.images)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return null;<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (!fwLoad[image])<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fwLoad[image]=new image;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fwLoad[image].src=image;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; return fwLoad[image].src;<br />
}<br />
<br />
function<br />
FWPreload(){FWLoad(&quot;baby3.jpeg&quot;);FWLoad(&quot;baby1aa.jpg&quot;);FWLoad(&quot;baby4.jpg&quot;);FWLoad(&quot;baby5.jpg&quot;);FWLoad(&quot;baby6.jpg&quot;);FWLoad(&quot;baby7.jpg&quot;);FWLoad(&quot;baby8.jpg&quot;);F<br />
href=&quot;http://guestbook.pax.nu/cgi-local/guest.cgi?book38120&quot;&gt;&lt;area alt=&quot;&quot; coords=&quot;483,54,518,67&quot;<br />
href=&quot;http://www.triciajean.com/eulogy.html&quot;&gt;&lt;area alt=&quot;&quot; coords=&quot;471,58,475,61&quot;<br />
href=&quot;http://www.triciajean.com/accident2a.html&quot;&gt;&lt;area alt=&quot;&quot; coords=&quot;345,55,463,64&quot;<br />
href=&quot;http://www.triciajean.com/teenyears.html&quot;&gt;&lt;area alt=&quot;&quot; coords=&quot;202,54,337,64&quot;<br />
href=&quot;http://www.triciajean.com/triciahorses.html&quot;&gt;&lt;area alt=&quot;&quot; coords=&quot;107,54,198,67&quot;<br />
href=&quot;http://www.triciajean.com/family.html&quot;&gt;&lt;area alt=&quot;&quot; coords=&quot;436,38,573,51&quot;<br />
href=&quot;http://www.triciajean.com/talents.html&quot;&gt;&lt;area alt=&quot;&quot; coords=&quot;353,38,432,51&quot;<br />
href=&quot;http://www.triciajean.com/schooldays.html&quot;&gt;&lt;area alt=&quot;&quot; coords=&quot;238,39,345,51&quot;<br />
href=&quot;http://www.triciajean.com/growingup.html&quot;&gt;&lt;area alt=&quot;&quot; coords=&quot;104,38,226,51&quot;<br />
href=&quot;http://www.triciajean.com/babypictures.html&quot;&gt;&lt;area alt=&quot;&quot; coords=&quot;52,39,100,48&quot;<br />
href=&quot;http://www.triciajean.com/kmiotek.html&quot;&gt;&lt;/map&gt;&lt;/div&gt;&lt;a class=&quot;abp-objtab&quot;<br />
href=&quot;http://www.apple.com/qtactivex/qtplugin.cab&quot; style=&quot;padding-left: 0px;&quot;&gt;&lt;/a&gt;&lt;a class=&quot;abp-objtab&quot;<br />
href=&quot;http://www.triciajean.com/WinnieThePooha.mid&quot; style=&quot;padding-left: 0px;&quot;&gt;&lt;/a&gt;&lt;object classid=&quot;clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B&quot; codebase=&quot;ht<br />
document.write('&lt;EMBED SRC=&quot;WinnieThePooha.mid&quot; HIDDEN=&quot;true&quot; LOOP=&quot;True&quot; AUTOPLAY=&quot;true&quot; autostart=&quot;true&quot;&gt;');function FWImage_Indigo(chain,msg){if (chain==</pre><br />
Thats actually an entire page, I cut that from putty and I think alot got cut off. Ill repost it when I get home if anyone thinks they can help!<br />
<br />
Well thanks alot!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>mekmiotek</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238388.html</guid>
		</item>
		<item>
			<title>Genealogy stuff</title>
			<link>http://www.daniweb.com/forums/thread238303.html</link>
			<pubDate>Fri, 13 Nov 2009 15:37:23 GMT</pubDate>
			<description><![CDATA[Hi! All 
 
I would like to have a way to do my application using a simple way. 
 
I have a genealogy site, since a long time ago. I have near 10,000 
pages (10,000 names) on a free hoster. Everything works fine. But I'd like to 
do the conversion from my FTW (Familky tree maker) to html page...]]></description>
			<content:encoded><![CDATA[<div>Hi! All<br />
<br />
I would like to have a way to do my application using a simple way.<br />
<br />
I have a genealogy site, since a long time ago. I have near 10,000<br />
pages (10,000 names) on a free hoster. Everything works fine. But I'd like to<br />
do the conversion from my FTW (Familky tree maker) to html page ,myself. I've use<br />
VB6 (Visula Basic 6) to do the conversion of all the pages, including all the <br />
html code on each page to link to other page. Like ,click on the father's name <br />
or the childre's name and it load the html page of this INDIVIDUAL. <br />
<br />
<br />
First  : I know very well VB6 , moderate in HTML , poor in Javascript.<br />
<br />
Second : I have 10,000 pages (One for each individual), so is there a way<br />
         to only have a template page (on the server side = my hoster) and<br />
         a few text file (.txt) to pick up the data. Cause there are only 40-50<br />
         string data to put on each page but a lot of html code to make a <br />
         good looking page. So having a template html page that we can just <br />
         add at the right place ,the data of this individual then send it<br />
         would be much smaller. So instead of a lot of pages there will be only a few.<br />
<br />
Third  : I'd like to place on the viewable page, 3 cascading &quot;selection list&quot;.<br />
         The first one will be populated with the letter from A to Z , from the<br />
         HTML code. The second list would have all the name of the family , like <br />
         Smith, Johnson, rimes etc , ordered. I already have a text file of <br />
         those names. And the third list , will have all the first name like Daniel<br />
         Steve, Leann, ordered too, and I also have this ordered text file.<br />
         So in a few click , we will be able to go to another individual.<br />
<br />
<br />
Have try a lot of things but never been able to do it.<br />
I like to keep the text file for data, as it's very easy <br />
to change using VB6 and easy to read, too. <br />
         <br />
As written before, it must be easy to understand. <br />
I don't mind giving a small donation to have it, cause I really<br />
try hard to do it without been able to do it working.<br />
And it could be useful to other, too.<br />
<br />
Thanks at advance.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>dj_dan23</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238303.html</guid>
		</item>
		<item>
			<title>Protecting a Page within a Forum</title>
			<link>http://www.daniweb.com/forums/thread238281.html</link>
			<pubDate>Fri, 13 Nov 2009 13:53:22 GMT</pubDate>
			<description><![CDATA[Alright, I made a form, but I don't want just anyone to be able to use it.  So I was wondering if it was possible for the page to check if they were logged into my forum.  Any suggestions would be great =].]]></description>
			<content:encoded><![CDATA[<div>Alright, I made a form, but I don't want just anyone to be able to use it.  So I was wondering if it was possible for the page to check if they were logged into my forum.  Any suggestions would be great =].</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>Moselekm</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238281.html</guid>
		</item>
		<item>
			<title>Modifying calcPrice() function in JavaScript</title>
			<link>http://www.daniweb.com/forums/thread238278.html</link>
			<pubDate>Fri, 13 Nov 2009 13:41:57 GMT</pubDate>
			<description><![CDATA[<div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags" target="_blank">Help with Code Tags</a> </div> <div> <strong>JavaScript / DHTML / AJAX...]]></description>
			<content:encoded><![CDATA[<div> <pre style="margin:20px; line-height:13px">&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;Moultrie Technical College - Worth County Campus&lt;/title&gt;<br />
<br />
&lt;style type=&quot;text/css&quot; media=&quot;all&quot;&gt;<br />
<br />
/* Ryan Blalock (ShoppingCart.htm)<br />
10/29/09 */<br />
<br />
body {<br />
background: transparent url(images/bg.gif) repeat left top; }<br />
<br />
table {<br />
color: white;<br />
width: 800px;<br />
margin-left: auto;<br />
margin-right: auto;<br />
font-size: 10pt;<br />
font-family: arial,helvetica,sans-serif;<br />
background-color: black; }<br />
<br />
td#header {<br />
font-size: 16pt;<br />
text-align: center; }<br />
<br />
td, th {<br />
padding: .3em; }<br />
<br />
td.align {<br />
vertical-align: top; }<br />
<br />
h1 {<br />
width: 775px;<br />
height: 125px;<br />
font-size: 20pt;<br />
font-family: &quot;bernhardmod BT&quot;,serif;<br />
padding: 15 15 0 40;<br />
background-image: url(logo.png);<br />
background-repeat: no-repeat;<br />
text-align: center;<br />
border-bottom: groove thick;<br />
margin-bottom: 0; }<br />
<br />
.center {<br />
text-align: center; }<br />
<br />
tr#black {<br />
color: white;<br />
background-color: black;<br />
font-weight: bold;<br />
text-align: center; }<br />
<br />
tr#nav {<br />
color: black;<br />
background: #000 url(images/headergradient.png) repeat-x left bottom;<br />
font-weight: bold;<br />
text-align: center; }<br />
<br />
tr#header {<br />
color: black;<br />
background-color: #FFF;<br />
font-weight: bold;<br />
text-align: center; }<br />
<br />
td#body {<br />
color: black;<br />
background-color: #FFF;<br />
text-align: justify; }<br />
<br />
&lt;/style&gt;<br />
<br />
&lt;script type=&quot;text/javascript&quot;&gt;<br />
<br />
var imageclock=new Object()<br />
&nbsp; &nbsp; &nbsp; &nbsp; //Enter path to clock digit images here, in order of 0-9, then &quot;am/pm&quot;, then colon image:<br />
&nbsp; &nbsp; &nbsp; &nbsp; imageclock.digits=[&quot;images/clock/c0.gif&quot;, &quot;images/clock/c1.gif&quot;, &quot;images/clock/c2.gif&quot;, <br />
<br />
&quot;images/clock/c3.gif&quot;, &quot;images/clock/c4.gif&quot;, &quot;images/clock/c5.gif&quot;, &quot;images/clock/c6.gif&quot;, <br />
<br />
&quot;images/clock/c7.gif&quot;, &quot;images/clock/c8.gif&quot;, &quot;images/clock/c9.gif&quot;, &quot;images/clock/cam.gif&quot;, <br />
<br />
&quot;images/clock/cpm.gif&quot;, &quot;images/clock/colon.gif&quot;]<br />
&nbsp; &nbsp; &nbsp; &nbsp; imageclock.instances=0<br />
&nbsp; &nbsp; &nbsp; &nbsp; var preloadimages=[]<br />
&nbsp; &nbsp; &nbsp; &nbsp; for (var i=0; i&lt;imageclock.digits.length; i++){ //preload images<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; preloadimages[i]=new Image()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; preloadimages[i].src=imageclock.digits[i]<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; imageclock.imageHTML=function(timestring){ //return timestring (ie: 1:56:38) into string of images <br />
<br />
instead<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var sections=timestring.split(&quot;:&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (sections[0]==&quot;0&quot;) //If hour field is 0 (aka 12 AM)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sections[0]=&quot;12&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else if (sections[0]&gt;=13)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sections[0]=sections[0]-12+&quot;&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (var i=0; i&lt;sections.length; i++){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (sections[i].length==1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sections[i]='&lt;img src=&quot;'+imageclock.digits[0]+'&quot; /&gt;'+'&lt;img <br />
<br />
src=&quot;'+imageclock.digits[parseInt(sections[i])]+'&quot; /&gt;'<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sections[i]='&lt;img <br />
<br />
src=&quot;'+imageclock.digits[parseInt(sections[i].charAt(0))]+'&quot; /&gt;'+'&lt;img <br />
<br />
src=&quot;'+imageclock.digits[parseInt(sections[i].charAt(1))]+'&quot; /&gt;'<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return sections[0]+'&lt;img src=&quot;'+imageclock.digits[12]+'&quot; /&gt;'+sections[1]+'&lt;img <br />
<br />
src=&quot;'+imageclock.digits[12]+'&quot; /&gt;'+sections[2]<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; imageclock.display=function(){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var clockinstance=this<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this.spanid=&quot;clockspan&quot;+(imageclock.instances++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.write('&lt;span id=&quot;'+this.spanid+'&quot;&gt;&lt;/span&gt;')<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this.update()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; setInterval(function(){clockinstance.update()}, 1000)<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; imageclock.display.prototype.update=function(){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var dateobj=new Date()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var currenttime=dateobj.getHours()+&quot;:&quot;+dateobj.getMinutes()+&quot;:&quot;+dateobj.getSeconds() <br />
<br />
//create time string<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var currenttimeHTML=imageclock.imageHTML(currenttime)+'&lt;img <br />
<br />
src=&quot;'+((dateobj.getHours()&gt;=12)? imageclock.digits[11] : imageclock.digits[10])+'&quot; /&gt;'<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.getElementById(this.spanid).innerHTML=currenttimeHTML<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&lt;/script&gt;<br />
<br />
&lt;script type=&quot;text/javascript&quot;&gt;<br />
<br />
function startForm() {<br />
&nbsp; document.form1.date.value = todayTxt();<br />
&nbsp; document.form1.prod.focus();<br />
}<br />
<br />
function calcPrice() {<br />
&nbsp; product = document.form1.prod;<br />
&nbsp; pindex = product.selectedIndex;<br />
&nbsp; product_price = product.options[pindex].value;<br />
&nbsp; quantity = document.form1.qty;<br />
&nbsp; qindex = quantity.selectedIndex;<br />
&nbsp; quantity_ordered = quantity.options[qindex].value;<br />
&nbsp; document.form1.price.value = product_price*quantity_ordered;<br />
}<br />
<br />
function calcShipping(shipoption) {<br />
&nbsp; document.form1.ship.value = shipoption.value;<br />
}<br />
<br />
function calcTotal() {<br />
&nbsp; priceVal = parserFloat(document.form1.price.value);<br />
&nbsp; shipVal = parserFloat(document.form1.ship.value);<br />
&nbsp; taxval = 0.05*(priceVal+shipVal);<br />
&nbsp; document.form1.sub.value = (priceVal+shipVal).toFixed(2);<br />
&nbsp; document.form1.tax.value = (taxVal).toFized(2);<br />
&nbsp; document.form1.tot.value = (priceVal+shipVal+taxVal).toFixed(2);<br />
}<br />
<br />
&lt;/script&gt;<br />
&lt;/head&gt;<br />
<br />
&lt;body onload=&quot;startForm()&quot;&gt;<br />
&lt;form name=&quot;form1&quot; method=&quot;post&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; onsubmit=&quot;return checkForm1()&quot; onreset=&quot;location.reload()&quot;&gt;<br />
&lt;div class=&quot;center&quot;&gt;<br />
<br />
&lt;table border=&quot;0&quot;&gt;<br />
&lt;tr id=&quot;header&quot;&gt;<br />
&nbsp; &lt;td colspan=&quot;2&quot;&gt;&lt;h1&gt;Moultrie Technical College&lt;br /&gt;Worth County Campus&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td align=&quot;right&quot;&gt;<br />
&lt;script type=&quot;text/javascript&quot;&gt;<br />
<br />
new imageclock.display()<br />
<br />
&lt;/script&gt;<br />
&lt;/td&gt;&lt;/tr&gt;<br />
&lt;tr id=&quot;nav&quot;&gt;<br />
<br />
&lt;td&gt;Navigation:: &lt;a href=&quot;index.html&quot;&gt;Home&lt;/a&gt; | &lt;a href=&quot;infotech.html&quot;&gt;Information Technology&lt;/a&gt; | &lt;a <br />
<br />
href=&quot;webdesign.html&quot;&gt;Web Design&lt;/a&gt; | &lt;a href=&quot;cosmo.html&quot;&gt;Cosmetology&lt;/a&gt; | &lt;a <br />
<br />
href=&quot;ShoppingCart.htm&quot;&gt;Shopping Cart&lt;/a&gt; | &lt;a href=&quot;welding.html&quot;&gt;Welding&lt;/a&gt; | &lt;a <br />
<br />
href=&quot;comptia.html&quot;&gt;CompTIA&lt;/a&gt;&lt;/td&gt;<br />
<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
<br />
&lt;td id=&quot;body&quot;&gt;E-mail us at: <br />
&lt;b&gt;&lt;script type=&quot;text/javascript&quot;&gt;<br />
document.write(&quot;moultrie@moultrietech.edu&quot;);<br />
&lt;/script&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;<br />
<br />
<br />
&lt;td id=&quot;body&quot;&gt;&lt;h2&gt;&lt;center&gt;&lt;u&gt;Moultrie Tech (Worth) Shopping Cart&lt;/u&gt;&lt;/center&gt;&lt;/h2&gt;<br />
<br />
&lt;table&gt;<br />
<br />
&lt;form name=&quot;orders&quot; id=&quot;orders&quot; method=&quot;post&quot; action=&quot;done.htm&quot;&gt;<br />
<br />
&lt;p id=&quot;datep&quot;&gt;<br />
&nbsp;  &lt;input id=&quot;text&quot; id=&quot;date&quot; name=&quot;date&quot; size=&quot;11&quot; value=&quot;mm-dd-yyyy&quot; <br />
&nbsp; &nbsp; tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;&lt;/td&gt;<br />
&lt;/p&gt;<br />
<br />
&lt;table cellspacing=&quot;2&quot;&gt;<br />
&lt;tr&gt;&lt;th id=&quot;label&quot;&gt;Product&lt;/th&gt;&lt;th&gt;Price&lt;/th&gt;<br />
&nbsp; &nbsp; &lt;th&gt;Quantity&lt;/th&gt;&lt;th&gt;Cost&lt;/th&gt;&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot; onchange=&quot;calcPrice()&quot;&gt;New Perspectives on Blended HTML, XHTML, and CSS, 1st Edition&lt;/td&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot;&gt;&lt;input name=&quot;price1&quot; id=&quot;price1&quot; size=&quot;8&quot; value=&quot;77.99&quot; <br />
&nbsp; &nbsp; &nbsp; &nbsp; tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; onFocus=&quot;return calcPrice('price1','qty1');&quot; /&gt;<br />
&nbsp;  &lt;/td&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot;&gt;&lt;input name=&quot;qty1&quot; id=&quot;qty1&quot; size=&quot;8&quot; value=&quot;0&quot; /&gt;<br />
&nbsp;  &lt;/td&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot;&gt;&lt;input name=&quot;cost1&quot; id=&quot;cost1&quot; size=&quot;12&quot; value=&quot;0.00&quot; <br />
&nbsp; &nbsp; &nbsp; &nbsp; tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; onFocus=&quot;return calcPrice('price1','qty1');&quot; /&gt;<br />
&nbsp;  &lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot; onchange=&quot;calcPrice()&quot;&gt;New Perspectives on JavaScript, 1st Edition&lt;/td&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot;&gt;&lt;input name=&quot;price2&quot; id=&quot;price2&quot; size=&quot;8&quot; value=&quot;66.99&quot; <br />
&nbsp; &nbsp; &nbsp; &nbsp; tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;<br />
&nbsp;  &lt;/td&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot;&gt;&lt;input name=&quot;qty2&quot; id=&quot;qty2&quot; size=&quot;8&quot; value=&quot;0&quot; /&gt;<br />
&nbsp;  &lt;/td&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot;&gt;&lt;input name=&quot;cost2&quot; id=&quot;cost2&quot; size=&quot;12&quot; value=&quot;0.00&quot; <br />
&nbsp; &nbsp; &nbsp; &nbsp; tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;<br />
&nbsp;  &lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot; onchange=&quot;calcPrice()&quot;&gt;New Perspectives on Macromedia Dreamweaver 8, Comprehensive, 1st <br />
<br />
Edition&lt;/td&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot;&gt;&lt;input name=&quot;price3&quot; id=&quot;price3&quot; size=&quot;8&quot; value=&quot;83.99&quot; <br />
&nbsp; &nbsp; &nbsp; &nbsp; tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;&lt;/td&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot;&gt;&lt;input name=&quot;qty3&quot; id=&quot;qty3&quot; size=&quot;8&quot; value=&quot;0&quot; /&gt;<br />
&nbsp;  &lt;/td&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot;&gt;&lt;input name=&quot;cost3&quot; id=&quot;cost3&quot; size=&quot;12&quot; value=&quot;0.00&quot; <br />
&nbsp; &nbsp; &nbsp; &nbsp; tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;<br />
&nbsp;  &lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot; onchange=&quot;calcPrice()&quot;&gt;Adobe Photoshop CS4: Complete Concepts and Techniques, 1st <br />
<br />
Edition&lt;/td&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot;&gt;&lt;input name=&quot;price4&quot; id=&quot;price4&quot; size=&quot;8&quot; value=&quot;69.99&quot; <br />
&nbsp; &nbsp; &nbsp; &nbsp; tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;&lt;/td&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot;&gt;&lt;input name=&quot;qty4&quot; id=&quot;qty4&quot; size=&quot;8&quot; value=&quot;0&quot; /&gt;<br />
&nbsp;  &lt;/td&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot;&gt;&lt;input name=&quot;cost4&quot; id=&quot;cost4&quot; size=&quot;12&quot; value=&quot;0.00&quot; <br />
&nbsp; &nbsp; &nbsp; &nbsp; tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;<br />
&nbsp;  &lt;/td&gt;<br />
&nbsp;  &lt;/tr&gt;<br />
&lt;tr&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot; onchange=&quot;calcPrice()&quot;&gt;Miladys Standard Cosmetology 2008, 1st Edition&lt;/td&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot;&gt;&lt;input name=&quot;price5&quot; id=&quot;price5&quot; size=&quot;8&quot; value=&quot;78.99&quot; <br />
&nbsp; &nbsp; &nbsp; &nbsp; tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;&lt;/td&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot;&gt;&lt;input name=&quot;qty5&quot; id=&quot;qty5&quot; size=&quot;8&quot; value=&quot;0&quot; /&gt;<br />
&nbsp;  &lt;/td&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot;&gt;&lt;input name=&quot;cost5&quot; id=&quot;cost5&quot; size=&quot;12&quot; value=&quot;0.00&quot; <br />
&nbsp; &nbsp; &nbsp; &nbsp; tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;<br />
&nbsp;  &lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot; onchange=&quot;calcPrice()&quot;&gt;Network+ Guide to Networks, 4th Edition&lt;/td&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot;&gt;&lt;input name=&quot;price6&quot; id=&quot;price6&quot; size=&quot;8&quot; value=&quot;106.95&quot; <br />
&nbsp; &nbsp; &nbsp; &nbsp; tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;&lt;/td&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot;&gt;&lt;input name=&quot;qty6&quot; id=&quot;qty6&quot; size=&quot;8&quot; value=&quot;0&quot; /&gt;<br />
&nbsp;  &lt;/td&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot;&gt;&lt;input name=&quot;cost6&quot; id=&quot;cost6&quot; size=&quot;12&quot; value=&quot;0.00&quot; <br />
&nbsp; &nbsp; &nbsp; &nbsp; tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;<br />
&nbsp;  &lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;&lt;td id=&quot;body&quot; colspan=&quot;4&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot; colspan=&quot;3&quot;&gt;Sales Tax (5%)&lt;/td&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot;&gt;&lt;input name=&quot;tax&quot; id=&quot;tax&quot; size=&quot;12&quot; value=&quot;0.00&quot; <br />
&nbsp; &nbsp; &nbsp; &nbsp; tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;<br />
&nbsp;  &lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot; colspan=&quot;4&quot;&gt;<br />
&nbsp; &nbsp;  &lt;p&gt;&lt;input type=&quot;radio&quot; name=&quot;shipType&quot; id=&quot;ship1&quot; value=&quot;4.95&quot; onclick=&quot;calcShipping(this)&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp;  &lt;label for=&quot;ship1&quot;&gt;Standard (4-6 business days): $4.95&lt;/label&gt;<br />
&nbsp; &nbsp;  &lt;/p&gt;<br />
&nbsp; &nbsp;  &lt;p&gt;&lt;input type=&quot;radio&quot; name=&quot;shipType&quot; id=&quot;ship2&quot; value=&quot;8.95&quot;<br />
onclick=&quot;calcShipping(this)&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp;  &lt;label for=&quot;ship2&quot;&gt;Express (2 days): $8.95&lt;/label&gt;<br />
&nbsp; &nbsp;  &lt;/p&gt;<br />
&nbsp; &nbsp;  &lt;p&gt;&lt;input type=&quot;radio&quot; name=&quot;shipType&quot; id=&quot;ship3&quot; value=&quot;12.95&quot;<br />
onclick=&quot;calcsShipping(this)&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp;  &lt;label for=&quot;ship3&quot;&gt;Next Day (1 Day): $12.95&lt;/label&gt;<br />
&nbsp; &nbsp;  &lt;/p&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot; colspan=&quot;3&quot;&gt;TOTAL&lt;/td&gt;<br />
&nbsp;  &lt;td id=&quot;body&quot;&gt;&lt;input name=&quot;total&quot; id=&quot;total&quot; si<br />
value=&quot;0.00&quot; <br />
&nbsp; &nbsp; &nbsp; &nbsp; tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;<br />
&nbsp;  &lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&nbsp;<br />
&lt;p id=&quot;pbuttons&quot;&gt;&lt;center&gt;<br />
&nbsp;  &lt;input type=&quot;reset&quot; value=&quot;Reset&quot; /&gt;<br />
&nbsp;  &lt;input type=&quot;submit&quot; value=&quot;Submit Order&quot; /&gt;<br />
&lt;/center&gt;&lt;/p&gt;<br />
<br />
&lt;/form&gt;<br />
&lt;/script&gt;<br />
<br />
&lt;br /&gt;<br />
&lt;br /&gt;<br />
&lt;tr id=&quot;black&quot;&gt;<br />
&nbsp; &lt;td colspan=&quot;2&quot;&gt;1210 North Monroe Street Sylvester, GA 31791.&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;/div&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</pre><br />
How would I change the  <pre style="margin:20px; line-height:13px">function calcPrice() {<br />
&nbsp; product = document.form1.prod;<br />
&nbsp; pindex = product.selectedIndex;<br />
&nbsp; product_price = product.options[pindex].value;<br />
&nbsp; quantity = document.form1.qty;<br />
&nbsp; qindex = quantity.selectedIndex;<br />
&nbsp; quantity_ordered = quantity.options[qindex].value;<br />
&nbsp; document.form1.price.value = product_price*quantity_ordered;<br />
}</pre><br />
to accept the  <pre style="margin:20px; line-height:13px">&lt;td class=&quot;body&quot;&gt;&lt;input name=&quot;cost1&quot; id=&quot;cost1&quot; size=&quot;12&quot; value=&quot;0.00&quot;<br />
tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; onFocus=&quot;return calcPrice('price1','qty1');&quot; /&gt;<br />
&lt;/td&gt;</pre> element id too.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>Rblalock</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238278.html</guid>
		</item>
		<item>
			<title>Tree menu</title>
			<link>http://www.daniweb.com/forums/thread238275.html</link>
			<pubDate>Fri, 13 Nov 2009 13:27:49 GMT</pubDate>
			<description><![CDATA[<div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags" target="_blank">Help with Code Tags</a> </div> <div> <strong>JavaScript / DHTML / AJAX...]]></description>
			<content:encoded><![CDATA[<div> <pre style="margin:20px; line-height:13px">&lt;div id=&quot;menu&quot; class=&quot;menu&quot;&gt;<br />
&nbsp; &lt;a href=&quot;/&quot; title=&quot;Nornix TreeMenu&quot;&gt;start&lt;/a&gt;<br />
&nbsp; &lt;ul&gt;<br />
&nbsp; &nbsp; &lt;li&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;a href=&quot;/info&quot; title=&quot;Information&quot;&gt;info&lt;/a&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;ul&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;li&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;/info/features&quot;&gt;features&lt;/a&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/li&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;li&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;/info/layers&quot;&gt;layers&lt;/a&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/li&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;li&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;/info/compatibility&quot;&gt;compatibility&lt;/a&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/li&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;li&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;/info/usage&quot;&gt;usage&lt;/a&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;ul&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;li&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a title=&quot;HTML structure&quot;&gt;HTML&lt;/a&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/li&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;li&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;/info/usage/css&quot; title=&quot;CSS classes&quot;&gt;CSS&lt;/a&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/li&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;li&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;/info/usage/js&quot; title=&quot;JS behavior&quot;&gt;JS&lt;/a&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/li&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/ul&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/li&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/ul&gt;<br />
&nbsp; &nbsp; &lt;/li&gt;<br />
&nbsp; &nbsp; &lt;li&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;a href=&quot;/license&quot;&gt;license&lt;/a&gt;<br />
&nbsp; &nbsp; &lt;/li&gt;<br />
&nbsp; &nbsp; &lt;li&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;a href=&quot;/contact&quot;&gt;contact&lt;/a&gt;<br />
&nbsp; &nbsp; &lt;/li&gt;<br />
&nbsp; &lt;/ul&gt;<br />
&lt;/div&gt;</pre><br />
I wan tto do sthg similar, but without those squares and circles..<br />
I want it to be  by div and span maybe? can someone give me a code of tree menu without those squars/cirecles</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>hajjo</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238275.html</guid>
		</item>
		<item>
			<title>dhtml, element calling function that destroys element causes page reload, why?</title>
			<link>http://www.daniweb.com/forums/thread238154.html</link>
			<pubDate>Thu, 12 Nov 2009 23:10:56 GMT</pubDate>
			<description><![CDATA[hi friends, i try to make some selector of items placed in <div>, and click on some of items should delete one by changing innerHTML of <div>. delete works, but after delete html page reloads. i suppose its because element, originator, calling delete function exist at time of calling, but after...]]></description>
			<content:encoded><![CDATA[<div>hi friends, i try to make some selector of items placed in &lt;div&gt;, and click on some of items should delete one by changing innerHTML of &lt;div&gt;. delete works, but after delete html page reloads. i suppose its because element, originator, calling delete function exist at time of calling, but after delete no more exists and javascript engine forces page reload instead of error. is there any way to solve this behaviour?<br />
thanks a lot, have a good times<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;&gt;<br />
&lt;html&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;head&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;title&gt;&lt;/title&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;script type=&quot;text/javascript&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!--<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; selection = &quot;1:text1,2:text2,3:text3,&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; function getelebyid(id)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(document.layers)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  //NN4+<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; obj = document.layers[id];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else if(document.getElementById)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //gecko(NN6) + IE 5+<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; obj = document.getElementById(id);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else if(document.all)&nbsp; &nbsp; &nbsp; &nbsp; // IE 4<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; obj = document.all[id];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return obj;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; function showselected()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(selection)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tmp = selection<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; html = '&lt;table cellpadding=3&gt;&lt;tr&gt;'<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while (1==1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pos = tmp.indexOf(&quot;,&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (pos &lt; 0)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pos2 = tmp.indexOf(&quot;:&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; id = tmp.substring(0,pos2)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; text = tmp.substring(pos2 + 1, pos)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; html = html + '&lt;td&gt;&lt;a href=&quot;&quot; onclick=&quot;removefromselection(\'' + id + '\');&quot;&gt;X&lt;/a&gt;&lt;br&gt;&lt;b&gt;' + text + '&lt;/b&gt;&lt;/td&gt;'<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tmp = tmp.substring(pos + 1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; html = html + '&lt;/tr&gt;&lt;/table&gt;'<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; getelebyid('iddivselection').innerHTML = html<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return 0<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; function removefromselection(idtoremove)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tmp = selection<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; newselection = ''<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while (1==1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pos = tmp.indexOf(&quot;,&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (pos &lt; 0)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pos2 = tmp.indexOf(&quot;:&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; id = tmp.substring(0,pos2)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; text = tmp.substring(pos2 + 1, pos)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (id != idtoremove)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; newselection = newselection + id + &quot;:&quot; + text + &quot;,&quot; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tmp = tmp.substring(pos + 1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; selection = newselection<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; showselected()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return 0<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; // --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/script&gt;<br />
&nbsp; &lt;/head&gt;<br />
&nbsp; <br />
&nbsp; &lt;body onload=alert(&quot;loaded&quot;)&gt;<br />
&lt;div id=iddivselection&gt;&lt;/div&gt;<br />
&nbsp; &lt;/body&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;script type=&quot;text/javascript&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!--<br />
&nbsp; &nbsp; &nbsp; &nbsp; showselected();<br />
&nbsp; &nbsp; &nbsp; &nbsp; // --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/script&gt;<br />
&lt;/html&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>3.14</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238154.html</guid>
		</item>
		<item>
			<title>Array.push is STOPPING conditional code</title>
			<link>http://www.daniweb.com/forums/thread238057.html</link>
			<pubDate>Thu, 12 Nov 2009 16:00:23 GMT</pubDate>
			<description>Alright, I think 3 hours of feeling like an idiot and searching and then feeling even more stumped is grounds enough to post here. 
 
I am basically just practicing with javascript (Just started a few days ago) and wanted to create an array that pretty much checked a form for errors, listed errors,...</description>
			<content:encoded><![CDATA[<div>Alright, I think 3 hours of feeling like an idiot and searching and then feeling even more stumped is grounds enough to post here.<br />
<br />
I am basically just practicing with javascript (Just started a few days ago) and wanted to create an array that pretty much checked a form for errors, listed errors, then spewed them out in the end.<br />
<br />
I am sure there is source code for something like this, but I wanted to just do this out of practice, as I have done this before in PHP.<br />
<br />
I am basically making a function with a bunch of if statements and if any of them pop up I try to PUSH a string into the array.  Now, it has worked, somewhat and sometimes.  But then it just plain stopped working.<br />
<br />
I played with the code for a while, placing alerts in parts of the function and found that it WAS the push code that stopped it from running completely.  Can anyone help?  I honestly don't think posting my code will help.  Can a Push not exist in an If statement?<br />
<br />
[Yes, I have tried to old LENGTH fashion way of doing it.  NO my software is not outdated]</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>Moselekm</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238057.html</guid>
		</item>
		<item>
			<title>javascript to load images?</title>
			<link>http://www.daniweb.com/forums/thread238051.html</link>
			<pubDate>Thu, 12 Nov 2009 15:10:47 GMT</pubDate>
			<description>Hello! 
 
I got a page which whenever a checkbox is checked I want to insert an image to the right of the check box. Can anyone help? 
 
- realchamp.</description>
			<content:encoded><![CDATA[<div>Hello!<br />
<br />
I got a page which whenever a checkbox is checked I want to insert an image to the right of the check box. Can anyone help?<br />
<br />
- realchamp.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>realchamp</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238051.html</guid>
		</item>
		<item>
			<title>java script program to find dates between two dates</title>
			<link>http://www.daniweb.com/forums/thread237958.html</link>
			<pubDate>Thu, 12 Nov 2009 08:24:27 GMT</pubDate>
			<description>Hi , 
I need to find all the dates between two given dates. 
For e.g dates between, 02/03/09 and 02/15/09 format is in mm/dd/yy. 
I need java script program for this. Kindly help.</description>
			<content:encoded><![CDATA[<div>Hi ,<br />
I need to find all the dates between two given dates.<br />
For e.g dates between, 02/03/09 and 02/15/09 format is in mm/dd/yy.<br />
I need java script program for this. Kindly help.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>rashi_b</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237958.html</guid>
		</item>
		<item>
			<title>online chat for mysite</title>
			<link>http://www.daniweb.com/forums/thread237935.html</link>
			<pubDate>Thu, 12 Nov 2009 06:16:40 GMT</pubDate>
			<description>how to add online chat for my new website, 
what i to do, ineed assistance from u ist stage last stage, 
 
thank! 
 
 
 
regards, 
krishna.</description>
			<content:encoded><![CDATA[<div>how to add online chat for my new website,<br />
what i to do, ineed assistance from u ist stage last stage,<br />
<br />
thank!<br />
<br />
<br />
<br />
regards,<br />
krishna.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>krishnaboppana</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237935.html</guid>
		</item>
		<item>
			<title>Need help building an instant messaging system with AJAX/PHP</title>
			<link>http://www.daniweb.com/forums/thread237906.html</link>
			<pubDate>Thu, 12 Nov 2009 03:37:08 GMT</pubDate>
			<description>Hi guys, 
 
I am trying to add an instant messaging system to my website so that logged in member can chat one-on-one with other member on his/her contact list. I am aware that there are many of such free scripts that I can use but I would rather learn to do it myself. So, could anyone please tell...</description>
			<content:encoded><![CDATA[<div>Hi guys,<br />
<br />
I am trying to add an instant messaging system to my website so that logged in member can chat one-on-one with other member on his/her contact list. I am aware that there are many of such free scripts that I can use but I would rather learn to do it myself. So, could anyone please tell me how to set it up or at least where the resources are.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>anatta</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237906.html</guid>
		</item>
		<item>
			<title>Calculating Price in JavaScript</title>
			<link>http://www.daniweb.com/forums/thread237877.html</link>
			<pubDate>Thu, 12 Nov 2009 01:17:51 GMT</pubDate>
			<description><![CDATA[*I need help understand where to place (and how to create)   <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags" target="_blank">Help with...]]></description>
			<content:encoded><![CDATA[<div><span style="font-weight:bold">I need help understand where to place (and how to create)  <pre style="margin:20px; line-height:13px">function calcPrice() {<br />
&nbsp; product = document.form1.prod;<br />
&nbsp; pindex = product.selectedIndex;<br />
&nbsp; product_price = product.options[pindex].value;<br />
&nbsp; quantity = document.form1.qty;<br />
&nbsp; qindex = quantity.selectedIndex;<br />
&nbsp; quantity_ordered = quantity.options[qindex].value;<br />
&nbsp; document.form1.price.value = product_price*quantity_ordered;<br />
}</pre>.  I also need to know where to add the  <pre style="margin:20px; line-height:13px">onchange = &quot;calcPrice()&quot;</pre> event handler.  I will post my coding below, please help.</span><br />
<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;Moultrie Technical College - Worth County Campus&lt;/title&gt;<br />
<br />
&lt;style type=&quot;text/css&quot; media=&quot;all&quot;&gt;<br />
<br />
/* Ryan Blalock (ShoppingCart.htm)<br />
10/29/09 */<br />
<br />
body {<br />
background: transparent url(images/bg.gif) repeat left top; }<br />
<br />
table {<br />
color:white;<br />
width: 800px;<br />
margin-left: auto;<br />
margin-right: auto;<br />
font-size: 10pt;<br />
font-family: arial,helvetica,sans-serif;<br />
background-color: black; }<br />
<br />
td#header {<br />
font-size: 16pt;<br />
text-align: center; }<br />
<br />
td, th {<br />
padding: .3em; }<br />
<br />
td.align {<br />
vertical-align: top; }<br />
<br />
h1 {<br />
width: 775px;<br />
height: 125px;<br />
font-size: 20pt;<br />
font-family: &quot;bernhardmod BT&quot;,serif;<br />
padding: 15 15 0 40;<br />
background-image: url(logo.png);<br />
background-repeat: no-repeat;<br />
text-align: center;<br />
border-bottom: groove thick;<br />
margin-bottom: 0; }<br />
<br />
.center {<br />
text-align: center; }<br />
<br />
tr#black {<br />
color: white;<br />
background-color: black;<br />
font-weight: bold;<br />
text-align: center; }<br />
<br />
tr#nav {<br />
color: black;<br />
background: #000 url(images/headergradient.png) repeat-x left bottom;<br />
font-weight: bold;<br />
text-align: center; }<br />
<br />
tr#header {<br />
color: black;<br />
background-color: #FFF;<br />
font-weight: bold;<br />
text-align: center; }<br />
<br />
td#body {<br />
color: black;<br />
background-color: #FFF;<br />
text-align: justify; }<br />
<br />
&lt;/style&gt;<br />
<br />
&lt;script type=&quot;text/javascript&quot;&gt;<br />
<br />
var imageclock=new Object()<br />
	//Enter path to clock digit images here, in order of 0-9, then &quot;am/pm&quot;, then colon image:<br />
	imageclock.digits=[&quot;images/clock/c0.gif&quot;, &quot;images/clock/c1.gif&quot;, &quot;images/clock/c2.gif&quot;, <br />
<br />
&quot;images/clock/c3.gif&quot;, &quot;images/clock/c4.gif&quot;, &quot;images/clock/c5.gif&quot;, &quot;images/clock/c6.gif&quot;, <br />
<br />
&quot;images/clock/c7.gif&quot;, &quot;images/clock/c8.gif&quot;, &quot;images/clock/c9.gif&quot;, &quot;images/clock/cam.gif&quot;, <br />
<br />
&quot;images/clock/cpm.gif&quot;, &quot;images/clock/colon.gif&quot;]<br />
	imageclock.instances=0<br />
	var preloadimages=[]<br />
	for (var i=0; i&lt;imageclock.digits.length; i++){ //preload images<br />
		preloadimages[i]=new Image()<br />
		preloadimages[i].src=imageclock.digits[i]<br />
	}<br />
<br />
	imageclock.imageHTML=function(timestring){ //return timestring (ie: 1:56:38) into string of <br />
<br />
images instead<br />
		var sections=timestring.split(&quot;:&quot;)<br />
		if (sections[0]==&quot;0&quot;) //If hour field is 0 (aka 12 AM)<br />
			sections[0]=&quot;12&quot;<br />
		else if (sections[0]&gt;=13)<br />
			sections[0]=sections[0]-12+&quot;&quot;<br />
		for (var i=0; i&lt;sections.length; i++){<br />
			if (sections[i].length==1)<br />
				sections[i]='&lt;img src=&quot;'+imageclock.digits[0]+'&quot; /&gt;'+'&lt;img <br />
<br />
src=&quot;'+imageclock.digits[parseInt(sections[i])]+'&quot; /&gt;'<br />
			else<br />
				sections[i]='&lt;img <br />
<br />
src=&quot;'+imageclock.digits[parseInt(sections[i].charAt(0))]+'&quot; /&gt;'+'&lt;img <br />
<br />
src=&quot;'+imageclock.digits[parseInt(sections[i].charAt(1))]+'&quot; /&gt;'<br />
		}<br />
		return sections[0]+'&lt;img src=&quot;'+imageclock.digits[12]+'&quot; /&gt;'+sections[1]+'&lt;img <br />
<br />
src=&quot;'+imageclock.digits[12]+'&quot; /&gt;'+sections[2]<br />
	}<br />
<br />
	imageclock.display=function(){<br />
		var clockinstance=this<br />
		this.spanid=&quot;clockspan&quot;+(imageclock.instances++)<br />
		document.write('&lt;span id=&quot;'+this.spanid+'&quot;&gt;&lt;/span&gt;')<br />
		this.update()<br />
		setInterval(function(){clockinstance.update()}, 1000)<br />
	}<br />
<br />
	imageclock.display.prototype.update=function(){<br />
		var dateobj=new Date()<br />
		var currenttime=dateobj.getHours()+&quot;:&quot;+dateobj.getMinutes()+&quot;:&quot;+dateobj.getSeconds() <br />
<br />
//create time string<br />
		var currenttimeHTML=imageclock.imageHTML(currenttime)+'&lt;img <br />
<br />
src=&quot;'+((dateobj.getHours()&gt;=12)? imageclock.digits[11] : imageclock.digits[10])+'&quot; /&gt;'<br />
		document.getElementById(this.spanid).innerHTML=currenttimeHTML<br />
<br />
	}<br />
&lt;/script&gt;<br />
<br />
&lt;script type=&quot;text/javascript&quot;&gt;<br />
<br />
function startForm() {<br />
  document.form1.date.value = todayTxt();<br />
  document.form1.prod.focus();<br />
}<br />
<br />
function calcPrice() {<br />
  product = document.form1.prod;<br />
  pindex = product.selectedIndex;<br />
  product_price = product.options[pindex].value;<br />
  quantity = document.form1.qty;<br />
  qindex = quantity.selectedIndex;<br />
  quantity_ordered = quantity.options[qindex].value;<br />
  document.form1.price.value = product_price*quantity_ordered;<br />
}<br />
<br />
&lt;/script&gt;<br />
&lt;/head&gt;<br />
<br />
&lt;body onload=&quot;startForm()&quot;&gt;<br />
&lt;form name=&quot;form1&quot; method=&quot;post&quot;<br />
	onsubmit=&quot;return checkForm1()&quot; onreset=&quot;location.reload()&quot;&gt;<br />
&lt;div class=&quot;center&quot;&gt;<br />
<br />
&lt;table border=&quot;0&quot;&gt;<br />
&lt;tr id=&quot;header&quot;&gt;<br />
  &lt;td colspan=&quot;2&quot;&gt;&lt;h1&gt;Moultrie Technical College&lt;br /&gt;Worth County Campus&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td align=&quot;right&quot;&gt;<br />
&lt;script type=&quot;text/javascript&quot;&gt;<br />
<br />
new imageclock.display()<br />
<br />
&lt;/script&gt;<br />
&lt;/td&gt;&lt;/tr&gt;<br />
&lt;tr id=&quot;nav&quot;&gt;<br />
<br />
&lt;td&gt;Navigation:: &lt;a href=&quot;index.html&quot;&gt;Home&lt;/a&gt; | &lt;a href=&quot;infotech.html&quot;&gt;Information Technology&lt;/a&gt; | <br />
<br />
&lt;a href=&quot;webdesign.html&quot;&gt;Web Design&lt;/a&gt; | &lt;a href=&quot;cosmo.html&quot;&gt;Cosmetology&lt;/a&gt; | &lt;a <br />
<br />
href=&quot;cal.html&quot;&gt;Calendar&lt;/a&gt; | &lt;a href=&quot;comptia.html&quot;&gt;CompTIA&lt;/a&gt;&lt;/td&gt;<br />
<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
<br />
&lt;td id=&quot;body&quot;&gt;E-mail us at: <br />
&lt;b&gt;&lt;script type=&quot;text/javascript&quot;&gt;<br />
document.write(&quot;moultrie@moultrietech.edu&quot;);<br />
&lt;/script&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;<br />
<br />
<br />
&lt;td&gt;&lt;h2&gt;&lt;center&gt;&lt;u&gt;Moultrie Tech (Worth) Shopping Cart&lt;/u&gt;&lt;/center&gt;&lt;/h2&gt;<br />
<br />
&lt;table&gt;<br />
<br />
&lt;form name=&quot;orders&quot; id=&quot;orders&quot; method=&quot;post&quot; action=&quot;done.htm&quot;&gt;<br />
<br />
&lt;p id=&quot;datep&quot;&gt;<br />
   &lt;input class=&quot;text&quot; id=&quot;date&quot; name=&quot;date&quot; size=&quot;11&quot; value=&quot;mm-dd-yyyy&quot; <br />
    tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;&lt;/td&gt;<br />
&lt;/p&gt;<br />
<br />
&lt;table cellspacing=&quot;2&quot;&gt;<br />
&lt;tr&gt;&lt;th class=&quot;label&quot;&gt;Product&lt;/th&gt;&lt;th&gt;Price&lt;/th&gt;<br />
    &lt;th&gt;Quantity&lt;/th&gt;&lt;th&gt;Cost&lt;/th&gt;&lt;/tr&gt;<br />
&lt;tr&gt;<br />
   &lt;td class=&quot;body&quot;&gt;New Perspectives on Blended HTML, XHTML, and CSS, 1st Edition&lt;/td&gt;<br />
   &lt;td class=&quot;body&quot;&gt;&lt;input name=&quot;price1&quot; id=&quot;price1&quot; size=&quot;8&quot; value=&quot;77.99&quot; <br />
        tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;<br />
   &lt;/td&gt;<br />
   &lt;td class=&quot;body&quot;&gt;&lt;input name=&quot;qty1&quot; id=&quot;qty1&quot; size=&quot;8&quot; value=&quot;0&quot; /&gt;<br />
   &lt;/td&gt;<br />
   &lt;td class=&quot;body&quot;&gt;&lt;input name=&quot;cost1&quot; id=&quot;cost1&quot; size=&quot;12&quot; value=&quot;0.00&quot; <br />
        tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;<br />
   &lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
   &lt;td class=&quot;body&quot;&gt;New Perspectives on JavaScript, 1st Edition&lt;/td&gt;<br />
   &lt;td class=&quot;body&quot;&gt;&lt;input name=&quot;price2&quot; id=&quot;price2&quot; size=&quot;8&quot; value=&quot;66.99&quot; <br />
        tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;<br />
   &lt;/td&gt;<br />
   &lt;td class=&quot;body&quot;&gt;&lt;input name=&quot;qty2&quot; id=&quot;qty2&quot; size=&quot;8&quot; value=&quot;0&quot; /&gt;<br />
   &lt;/td&gt;<br />
   &lt;td class=&quot;body&quot;&gt;&lt;input name=&quot;cost2&quot; id=&quot;cost2&quot; size=&quot;12&quot; value=&quot;0.00&quot; <br />
        tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;<br />
   &lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
   &lt;td class=&quot;body&quot;&gt;New Perspectives on Macromedia Dreamweaver 8, Comprehensive, 1st Edition&lt;/td&gt;<br />
   &lt;td&gt;&lt;input name=&quot;price3&quot; id=&quot;price3&quot; size=&quot;8&quot; value=&quot;83.99&quot; <br />
        tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;&lt;/td&gt;<br />
   &lt;td&gt;&lt;input name=&quot;qty3&quot; id=&quot;qty3&quot; size=&quot;8&quot; value=&quot;0&quot; /&gt;<br />
   &lt;/td&gt;<br />
   &lt;td&gt;&lt;input name=&quot;cost3&quot; id=&quot;cost3&quot; size=&quot;12&quot; value=&quot;0.00&quot; <br />
        tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;<br />
   &lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
   &lt;td class=&quot;body&quot;&gt;Adobe Photoshop CS4: Complete Concepts and Techniques, 1st Edition&lt;/td&gt;<br />
   &lt;td class=&quot;body&quot;&gt;&lt;input name=&quot;price4&quot; id=&quot;price4&quot; size=&quot;8&quot; value=&quot;69.99&quot; <br />
        tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;&lt;/td&gt;<br />
   &lt;td class=&quot;body&quot;&gt;&lt;input name=&quot;qty4&quot; id=&quot;qty4&quot; size=&quot;8&quot; value=&quot;0&quot; /&gt;<br />
   &lt;/td&gt;<br />
   &lt;td class=&quot;body&quot;&gt;&lt;input name=&quot;cost4&quot; id=&quot;cost4&quot; size=&quot;12&quot; value=&quot;0.00&quot; <br />
        tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;<br />
   &lt;/td&gt;<br />
   &lt;/tr&gt;<br />
&lt;tr&gt;<br />
   &lt;td class=&quot;body&quot;&gt;Miladys Standard Cosmetology 2008, 1st Edition&lt;/td&gt;<br />
   &lt;td class=&quot;body&quot;&gt;&lt;input name=&quot;price5&quot; id=&quot;price5&quot; size=&quot;8&quot; value=&quot;78.99&quot; <br />
        tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;&lt;/td&gt;<br />
   &lt;td class=&quot;body&quot;&gt;&lt;input name=&quot;qty5&quot; id=&quot;qty5&quot; size=&quot;8&quot; value=&quot;0&quot; /&gt;<br />
   &lt;/td&gt;<br />
   &lt;td class=&quot;body&quot;&gt;&lt;input name=&quot;cost5&quot; id=&quot;cost5&quot; size=&quot;12&quot; value=&quot;0.00&quot; <br />
        tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;<br />
   &lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
   &lt;td class=&quot;body&quot;&gt;Network+ Guide to Networks, 4th Edition&lt;/td&gt;<br />
   &lt;td class=&quot;body&quot;&gt;&lt;input name=&quot;price6&quot; id=&quot;price6&quot; size=&quot;8&quot; value=&quot;106.95&quot; <br />
        tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;&lt;/td&gt;<br />
   &lt;td class=&quot;body&quot;&gt;&lt;input name=&quot;qty6&quot; id=&quot;qty6&quot; size=&quot;8&quot; value=&quot;0&quot; /&gt;<br />
   &lt;/td&gt;<br />
   &lt;td class=&quot;body&quot;&gt;&lt;input name=&quot;cost6&quot; id=&quot;cost6&quot; size=&quot;12&quot; value=&quot;0.00&quot; <br />
        tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;<br />
   &lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;&lt;td class=&quot;body&quot; colspan=&quot;4&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;<br />
&lt;tr&gt;<br />
   &lt;td class=&quot;body&quot; colspan=&quot;3&quot;&gt;Sales Tax (5%)&lt;/td&gt;<br />
   &lt;td class=&quot;body&quot;&gt;&lt;input name=&quot;tax&quot; id=&quot;tax&quot; size=&quot;12&quot; value=&quot;0.00&quot; <br />
        tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;<br />
   &lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
   &lt;td class=&quot;body&quot; colspan=&quot;3&quot;&gt;<br />
     &lt;p&gt;&lt;input type=&quot;radio&quot; name=&quot;shipType&quot; id=&quot;ship1&quot; value=&quot;4.95&quot; onclick=&quot;calcShipping(this)&quot; /&gt;<br />
       &lt;label for=&quot;ship1&quot;&gt;Standard (4-6 business days): $4.95&lt;/label&gt;<br />
     &lt;/p&gt;<br />
     &lt;p&gt;&lt;input type=&quot;radio&quot; name=&quot;shipType&quot; id=&quot;ship2&quot; value=&quot;8.95&quot;<br />
onclick=&quot;calcShipping(this)&quot;/&gt;<br />
       &lt;label for=&quot;ship2&quot;&gt;Express (2 days): $8.95&lt;/label&gt;<br />
     &lt;/p&gt;<br />
     &lt;p&gt;&lt;input type=&quot;radio&quot; name=&quot;shipType&quot; id=&quot;ship3&quot; value=&quot;12.95&quot;<br />
onclick=&quot;calcsShipping(this)&quot; /&gt;<br />
       &lt;label for=&quot;ship3&quot;&gt;Next Day (1 Day): $12.95&lt;/label&gt;<br />
     &lt;/p&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
   &lt;td class=&quot;body&quot; colspan=&quot;3&quot;&gt;TOTAL&lt;/td&gt;<br />
   &lt;td class=&quot;body&quot;&gt;&lt;input name=&quot;total&quot; id=&quot;total&quot; si<br />
value=&quot;0.00&quot; <br />
        tabindex=&quot;-1&quot; readonly=&quot;readonly&quot; /&gt;<br />
   &lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;<br />
 <br />
&lt;p id=&quot;pbuttons&quot;&gt;&lt;center&gt;<br />
   &lt;input type=&quot;reset&quot; value=&quot;Reset&quot; /&gt;<br />
   &lt;input type=&quot;submit&quot; value=&quot;Submit Order&quot; /&gt;<br />
&lt;/center&gt;&lt;/p&gt;<br />
<br />
&lt;/form&gt;<br />
&lt;/script&gt;<br />
<br />
&lt;br /&gt;<br />
&lt;br /&gt;<br />
&lt;tr id=&quot;black&quot;&gt;<br />
  &lt;td colspan=&quot;2&quot;&gt;1210 North Monroe Street Sylvester, GA 31791.&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;/div&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>Rblalock</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237877.html</guid>
		</item>
		<item>
			<title>Spry tabs</title>
			<link>http://www.daniweb.com/forums/thread237783.html</link>
			<pubDate>Wed, 11 Nov 2009 15:58:20 GMT</pubDate>
			<description><![CDATA[How to make something like spry tabs in dreamweaver with jquery or something. I don't have dreamweaver and i don't want to download a trial.]]></description>
			<content:encoded><![CDATA[<div>How to make something like spry tabs in dreamweaver with jquery or something. I don't have dreamweaver and i don't want to download a trial.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>web3</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237783.html</guid>
		</item>
		<item>
			<title>Dynamic table rows</title>
			<link>http://www.daniweb.com/forums/thread237773.html</link>
			<pubDate>Wed, 11 Nov 2009 15:12:20 GMT</pubDate>
			<description>Hello! 
 
I have been working on a dynamic solution for a web based purchase order system. When i enter a purchase order i am greeted with: 
 
Image: http://nenuno.co.uk/temp/12-rows.jpg  
 
And i have started to code a solution where I can add rows when I need them! 
 
Inspiration is:</description>
			<content:encoded><![CDATA[<div>Hello!<br />
<br />
I have been working on a dynamic solution for a web based purchase order system. When i enter a purchase order i am greeted with:<br />
<br />
<img src="http://nenuno.co.uk/temp/12-rows.jpg" border="0" alt="" /><br />
<br />
And i have started to code a solution where I can add rows when I need them!<br />
<br />
Inspiration is:<br />
<br />
<img src="http://nenuno.co.uk/temp/example.jpg" border="0" alt="" /><br />
<br />
The code I have so far is:<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;script type='text/javascript'&gt;<br />
&nbsp; var emptyRow = null;<br />
&nbsp; function init() {<br />
&nbsp; &nbsp; var table = document.getElementById( 'insertorder' );<br />
&nbsp; &nbsp; var tbody = table.getElementsByTagName( 'TBODY' )[ 0 ];<br />
&nbsp; &nbsp; var tr&nbsp; &nbsp; = tbody.firstChild;<br />
&nbsp; &nbsp; while ( tr &amp;&amp; tr.nodeName != 'TR' ) {<br />
&nbsp; &nbsp; &nbsp; tr = tr.nextSibling;<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; emptyRow = tr.cloneNode( true );<br />
&nbsp; }<br />
&nbsp; function AddRow() {<br />
&nbsp; &nbsp; var table = document.getElementById( 'insertorder' );<br />
&nbsp; &nbsp; var tbody = table.getElementsByTagName( 'TBODY' )[ 0 ];<br />
&nbsp; &nbsp; var numRows = tbody.rows.length;<br />
&nbsp; &nbsp; var where&nbsp;  = tbody.rows[ numRows - 1 ];<br />
&nbsp; &nbsp; var newRow&nbsp; = emptyRow.cloneNode( true );<br />
&nbsp; &nbsp; insertAfter( where, newRow );<br />
&nbsp; }<br />
&nbsp; function insertAfter( here, newNode ) {<br />
&nbsp; &nbsp; here.parentNode.insertBefore( newNode, here.nextSibling );<br />
&nbsp; }<br />
&lt;/script&gt;<br />
&lt;/head&gt;<br />
&lt;body onload='init()'&gt;<br />
&nbsp; &lt;table border='1' id='insertorder'&gt;<br />
&nbsp; &nbsp; &lt;thead&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;th&gt;Part Number&lt;/th&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;th&gt;Description&lt;/th&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;th&gt;Qty&lt;/th&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;th&gt;Unit Cost&lt;/th&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &lt;/thead&gt;<br />
&nbsp; &nbsp; &lt;tbody&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;th&gt;&lt;input type='text' size='10'&gt;&lt;/th&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;th&gt;&lt;input type='text' size='20'&gt;&lt;/th&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;th&gt;&lt;input type='text' size='5'&gt;&lt;/th&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;th&gt;&lt;input type='text' size='5'&gt;&lt;/th&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &lt;/tbody&gt;<br />
&nbsp; &lt;/table&gt;&lt;br&gt;<br />
&nbsp; &lt;input type='button' value='AddRow' onclick='AddRow()'&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</pre><br />
Currently each row has a unique reference<br />
<br />
Partnumber line 1 is &quot;l1pn&quot; line 2 is &quot;l2pn&quot; and so on till 12<br />
Description line 1 is &quot;l1desc&quot;  line 2 is &quot;l2desc&quot; and so on till 12<br />
etc etc<br />
<br />
What else do I need to add to the above code to make it when i add a new row that the row reference changes from &quot;l1pn&quot; to &quot;l2pn&quot; etc and limit it to creating 12 rows only.<br />
<br />
Many thanks in advance</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>oku</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237773.html</guid>
		</item>
		<item>
			<title>AJAX/Jquery Internet Explorer error</title>
			<link>http://www.daniweb.com/forums/thread237739.html</link>
			<pubDate>Wed, 11 Nov 2009 11:58:40 GMT</pubDate>
			<description><![CDATA[Hi guys 
 
I was wondering whether someone could help me with a slight issue I have. I'm trying to set up a quick poll using AJAX which all works fine when using Firefox but running into issues via IE. 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>Hi guys<br />
<br />
I was wondering whether someone could help me with a slight issue I have. I'm trying to set up a quick poll using AJAX which all works fine when using Firefox but running into issues via IE.<br />
<br />
 <pre style="margin:20px; line-height:13px">&nbsp; $(function() {<br />
&nbsp; &nbsp; $('.error').hide();<br />
&nbsp; &nbsp; $(&quot;.button&quot;).click(function() {<br />
&nbsp; &nbsp; &nbsp; var userid = $(&quot;input#userid&quot;).val();<br />
&nbsp; &nbsp; &nbsp; var name = $('input[name=name]:checked').val();<br />
<br />
&nbsp; &nbsp; &nbsp; var dataString = 'name='+ name + '&amp;userid=' + userid;<br />
<br />
&nbsp; $.ajax({<br />
&nbsp; &nbsp; type: &quot;POST&quot;,<br />
&nbsp; &nbsp; url: &quot;poll/process.php&quot;,<br />
&nbsp; &nbsp; data: dataString,<br />
&nbsp; &nbsp; success: function() {<br />
&nbsp; &nbsp; &nbsp; $('#weekly_poll').html(&quot;&lt;div id='message'&gt;&lt;/div&gt;&quot;);<br />
&nbsp; &nbsp; &nbsp; $('#message').html(&quot;&lt;h2&gt;Thanks for your vote!&lt;/h2&gt;&quot;)<br />
&nbsp; &nbsp; &nbsp; .hide()<br />
&nbsp; &nbsp; &nbsp; .fadeIn(500, function() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; $('#message');<br />
&nbsp; &nbsp; &nbsp; });<br />
&nbsp; &nbsp; }<br />
&nbsp; });<br />
&nbsp; return false;<br />
&nbsp; &nbsp; });<br />
&nbsp; });</pre><br />
The issue I'm having is that although the form is being processed OK with data being captured in the database, once the form is submitted, the above script just seems to stop the rest of the page from loading. This only happens on IE and it must be something to do with the success function but as I'm new to JavaScript I don't know what I'm doing wrong.<br />
<br />
Can anyway help me please? I think it's something really simple and I'm just being stupid.<br />
<br />
Many thanks for reading.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>calina</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237739.html</guid>
		</item>
		<item>
			<title>Cookies with javascript</title>
			<link>http://www.daniweb.com/forums/thread237702.html</link>
			<pubDate>Wed, 11 Nov 2009 08:34:45 GMT</pubDate>
			<description><![CDATA[Hi I have made a program in which we have to read cookies through javascript but I am facing a problem in it. And I am unable to understand where the problem is? Please help me understand the same. 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>Hi I have made a program in which we have to read cookies through javascript but I am facing a problem in it. And I am unable to understand where the problem is? Please help me understand the same.<br />
 <pre style="margin:20px; line-height:13px">&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;read cookies&lt;/title&gt;<br />
<br />
&lt;script language=&quot;javascript&quot;&gt;<br />
function gettime(){<br />
if(document.cookie)<br />
{<br />
index=document.cookie.indexOf(cookie_name);<br />
if(index!=-1)<br />
countbegin=(documnet.cookie.indexOf(&quot;=&quot;,index);<br />
countend=document.cookie.indexOf(&quot;;&quot;,index);<br />
if(countend == -1)<br />
countend=document.cookie.length;<br />
}<br />
count=document.cookie.substring(countbegin,countend);<br />
if(count==1)<br />
return(count+&quot;time&quot;);<br />
}<br />
else<br />
{<br />
return(count+ &quot;times&quot;);<br />
}<br />
}}<br />
return(&quot;0 times&quot;);<br />
}<br />
&lt;/script&gt;<br />
&lt;/head&gt;<br />
&lt;/html&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>namratakakkar84</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237702.html</guid>
		</item>
		<item>
			<title>onmouseover on parent element</title>
			<link>http://www.daniweb.com/forums/thread237690.html</link>
			<pubDate>Wed, 11 Nov 2009 08:03:12 GMT</pubDate>
			<description>Hi, 
This is probably a very simple problem, but still it is bugging me for a while. I have tried to google for solutions, but I did not find any. 
 
I have a div containing a few text elements like date and description. I want to change the background-color of the div to a light grey when the...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
This is probably a very simple problem, but still it is bugging me for a while. I have tried to google for solutions, but I did not find any.<br />
<br />
I have a div containing a few text elements like date and description. I want to change the background-color of the div to a light grey when the mouse is over it. This works fine. The problem: As soon as the mouse is over a child element, the background changes back!<br />
<br />
What to do?<br />
<br />
I appreciate your help.<br />
<br />
Regards,<br />
Ali Baradaran</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>Baradaran</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237690.html</guid>
		</item>
	</channel>
</rss>
