<?xml version="1.0" encoding="iso-8859-1" ?>
<rss version="2.0">
<channel>
	<title>w3schools.com - Browser Scripting</title>
	<description>The complete discussion board conversation RSS Feed - Javascript, VBScript</description>
	<link>http://w3schools.invisionzone.com/index.php</link>
	<pubDate>Sun, 22 Nov 2009 19:31:19 -0500</pubDate>
	<ttl>5</ttl>
	<item>
		<title>Firefox Javascript Does Not Work</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28677</link>
		<description><![CDATA[this code with red color does not work on firefox. it works on ie and google chrome<br />what is the problem please help me...<br /><br /><br />&lt;tr&gt;&lt;input type="hidden" name="product_id_&lt;% = counter %&gt;" id="product_id_&lt;% = counter %&gt;" value="&lt;% = rs("product_id") %&gt;"&gt;<br />    &lt;td class="a-center" width="20"&gt;&lt;a class="a-center" href="?OPERATION=delete&basket_item_id=&lt;%=rs("basket_item_id")%&gt;" title="&lt;%=removes%&gt;"&gt;&lt;img src="http://forum.ceviz.net/images/delete.gif" alt="&lt;%=removes%&gt;" /&gt;&lt;/a&gt;&lt;/td&gt;<br />    &lt;td&gt;&lt;a href="product.asp?product_id=&lt;%=rs("product_id")%&gt;" class="product-image" title="&lt;%=rs("title" & language_constant)%&gt;"&gt;&lt;img src="&lt;%=rs("img3")%&gt;" height="100" alt="&lt;%=rs("title" & language_constant)%&gt;" /&gt;&lt;/a&gt;&lt;/td&gt;<br />    &lt;td width="400"&gt;<br />        &lt;h3 class="product-name"&gt;&lt;a href="product.asp?product_id=&lt;%=rs("product_id")%&gt;"&gt;&lt;%=rs("title" & language_constant)%&gt;&lt;/a&gt;&lt;/h3&gt;<br />    &lt;/td&gt;<br />    &lt;td class="a-center" width="20"&gt;<br />        &lt;div class="cart-price"&gt;&lt;span class="price"&gt;&lt;%=rs("price")%&gt; TL&lt;/span&gt;&lt;/div&gt;&lt;input type="hidden" name="price_each_&lt;% = counter %&gt;" id="price_each_&lt;% = counter %&gt;" value="&lt;%=rs("price")%&gt;"&gt;<br />    &lt;/td&gt;<br />    &lt;td class="a-center" width="20"&gt;<br />        &lt;input name="product_count_&lt;% = counter %&gt;" id="product_count_&lt;% = counter %&gt;" value="&lt;%=rs("quantity")%&gt;" size="4" class="input-text qty" maxlength="8" /&gt;<br />    &lt;/td&gt;<br />    &lt;td width="120"&gt;<br />        &lt;div class="cart-price"&gt;&lt;span class="price"&gt;&lt;%= (rs("price") * rs("quantity"))%&gt; TL&lt;/span&gt;&lt;/div&gt;<br />    &lt;/td&gt;<br />    &lt;td class="a-center"&gt;<br />        <!--coloro:#FF0000--><span style="color:#FF0000"><!--/coloro-->&lt;a href="java script:updateProduct('&lt;% = rs("basket_item_id") %&gt;','&lt;% = counter %&gt;')"&gt;update&lt;img src="http://forum.ceviz.net/images/update.gif" border="0"&gt;&lt;/a&gt;<!--colorc--></span><!--/colorc--><br />        <br />    &lt;/td&gt;<br />&lt;/tr&gt;<br />&lt;script language="Javascript"&gt;<br />    function checkInput(counter, quantity){<br />        if (isNaN(eval('document.all.product_count_' + counter).value) || eval('document.all.product_count_' + counter).value.length == 0){<br />            eval('document.all.product_count_' + counter).value = quantity;<br />        }<br />    }<br />    <!--coloro:#FF0000--><span style="color:#FF0000"><!--/coloro--><br />    function updateProduct(basket_item_id, counter){<br />        var session_id = ;<br />        var quantity = eval('document.all.product_count_' + counter).value;<br />        var width = 300;<br />        var height = 150;<br />        var y =(screen.availHeight-height)/2;<br />        var x =(screen.availWidth-width)/2;<br />        window.basketWin = location.href='basket.asp?OPERATION=update&session_id='+session_id+'&basket_item_id='+basket_item_id+'&quantity='+quantity,'basket';<br />        window.basketWin.focus();<br />    }<!--colorc--></span><!--/colorc--><br />    <br />    function deleteProduct(basket_item_id){<br />        var width = 300;<br />        var height = 150; <br />        var y =(screen.availHeight-height)/2;<br />        var x =(screen.availWidth-width)/2;<br />        window.basketWin = window.open('basket.asp?OPERATION=delete&basket_item_id='+basket_item_id,'basket','toolbar=0, scrollbars=2 ,width='+width+',height='+height+',top=' + y + ',left='+ x);<br />        window.basketWin.focus();<br />    }<br />    <br />    &lt;/script&gt;<br />]]></description>
		<pubDate>Sun, 22 Nov 2009 10:44:57 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28677</guid>
	</item>
	<item>
		<title>Goto Url By Selecting A Drop Down List Option</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28667</link>
		<description><![CDATA[Ok, this is an easy one all of you "pro's", but I don't know how to do it and need a little help. <br /><br />Here is what I want to do: create a drop down list with three options. Once the user selects one of the options, it takes him/her to a URL (I would like it to open up in a new window) e.g. a .pdf file on my web site. Here is what I have so far: <br /><br />                    &lt;td&gt;&lt;select name="select" style="width:111px; height:19px;"&gt;<br />                      &lt;option selected="selected"&gt;&lt;/option&gt;<br />                      &lt;option&gt;Company Brochure&lt;/option&gt;<br />                    &lt;/select&gt;&lt;/td&gt;<br /><br />I want the first option to display a blank field and the rest of the list of options below that. I know how to make the list of options, but I do not know how to make the hyperlink part work. <br /><br />Anyone have any ideas? <br /><br />Thanks much! <br /><br />Ace495<br /><br />PS. I assume I need to do this with javascript? If there is an easier way, I am open to that also. <br /><br />]]></description>
		<pubDate>Fri, 20 Nov 2009 21:34:34 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28667</guid>
	</item>
	<item>
		<title>Run Function Help</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28664</link>
		<description><![CDATA[Hi i have this script to show a modal box when a user clicks a link at the moment i have to add it MANUALLY using Onclick, but would like to run it whenever a user clicks anything, links, buttons etc. How could i edit the code to do this?<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;script type=&#34;text/javascript&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//----------------------------------------------------------------------<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// Modal<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//----------------------------------------------------------------------<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var objModal;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function JS_Utils_ShowModal &#40;&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// hide selects if IE6<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bIsIE6 = /msie|MSIE 6/.test&#40;navigator.userAgent&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if &#40; bIsIE6 &#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var arSelects = document.getElementsByTagName&#40;&#34;select&#34;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for &#40; var n=0; n&#60;arSelects.length; n++ &#41; arSelects&#91;n&#93;.style.display = &#34;none&#34;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// require modal item to be on the page<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;objModal = document.getElementById&#40;&#34;divModal&#34;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;objModal.style.display = &#34;block&#34;;<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;return true;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function JS_Utils_HideModal &#40;&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if &#40; objModal &#41; objModal.style.display = &#34;none&#34;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//----------------------------------------------------------------------<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//----------------------------------------------------------------------<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;/script&#62;<!--c2--></div><!--ec2-->]]></description>
		<pubDate>Fri, 20 Nov 2009 17:40:33 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28664</guid>
	</item>
	<item>
		<title>If Element Exists (cross Browser)</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28658</link>
		<description><![CDATA[I am looking for a sure fire way to see if an element exists on a page. I have searched this topic and there seems to be a lot of ways to do it but I want to know what is the best and most accurate way of detecting an element. I use the following but Im not sure if it's best practice:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->if&#40;document.getElementById&#40;&#34;elem&#34;&#41;&#41;{<br />alert&#40;&#34;exists&#34;&#41;<br />}else{<br />alert&#40;&#34;does not exist&#34;&#41;<br />}<!--c2--></div><!--ec2-->]]></description>
		<pubDate>Fri, 20 Nov 2009 10:17:52 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28658</guid>
	</item>
	<item>
		<title>How Does A Drop Down Works</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28657</link>
		<description><![CDATA[please i need to know how to write a script that will change the content of Department on selection of Faculty.What i mean is maybe on selection of Sciences from Faculty, the content of Department will change to Science Departments.<br /><br /><br /><div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>&lt;form&gt;<br />Department:<br />&lt;select&gt;<br />&lt;option&gt;Mechanical&lt;/option&gt;<br />&lt;option&gt;Chemical&lt;/option&gt;<br />&lt;option&gt;Civil&lt;/option&gt;&lt;/select&gt;&lt;br&gt;<br />Faculty:<br />&lt;select&gt;<br />&lt;option&gt;Engineering&lt;/option&gt;<br />&lt;option&gt;Sciences&lt;/option&gt;<br />&lt;option&gt;Law&lt;/option&gt;&lt;/select&gt;<br />&lt;/form&gt;</div>]]></description>
		<pubDate>Fri, 20 Nov 2009 10:16:21 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28657</guid>
	</item>
	<item>
		<title>How Does A Drop Down Works</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28656</link>
		<description><![CDATA[please i need to know how to write a script that will change the content of Department on selection of Faculty.What i mean is maybe on selection of Sciences from Faculty, the content of Department will change to Science Departments.<br /><br /><br /><div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>&lt;form&gt;<br />Department:<br />&lt;select&gt;<br />&lt;option&gt;Mechanical&lt;/option&gt;<br />&lt;option&gt;Chemical&lt;/option&gt;<br />&lt;option&gt;Civil&lt;/option&gt;&lt;/select&gt;&lt;br&gt;<br />Faculty:<br />&lt;select&gt;<br />&lt;option&gt;Engineering&lt;/option&gt;<br />&lt;option&gt;Sciences&lt;/option&gt;<br />&lt;option&gt;Law&lt;/option&gt;&lt;/select&gt;<br />&lt;/form&gt;</div>]]></description>
		<pubDate>Fri, 20 Nov 2009 10:14:37 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28656</guid>
	</item>
	<item>
		<title>Javascript In Ie7</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28646</link>
		<description><![CDATA[HI;  I am using MS XP-home and IE7.  When I play "try It Yourself" examples with embedded Java Script everything goes as expected.  When I play the same code from a file on my computer I get and information bar that warns me against allowing scripts or Active-X sites, but then gives me the option to enable them.  Enabling them takes clicking three times.  Thats a big nuisance to do each time I edit such a file.  I'm also using "Context" as my code editor.  Can anyone suggest a fix?  I have enabled scripting in my IE7 security settings with no change.]]></description>
		<pubDate>Thu, 19 Nov 2009 11:43:10 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28646</guid>
	</item>
	<item>
		<title>Regular Expression</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28645</link>
		<description><![CDATA[I'm looking for a javascript regular expression with the condition<br />Minimum 7 Characters<br />Atleast 1 Number<br />Atleast 1 Alphanumeric of<br /><br />means when i enter "abcd111111#$@#$' then it should be valid.]]></description>
		<pubDate>Thu, 19 Nov 2009 05:58:34 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28645</guid>
	</item>
	<item>
		<title>Parsing Xml</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28641</link>
		<description><![CDATA[If this is my XML, how do I get the value of "id" in the article tag?<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;news&#62;<br />&#8722;<br />&#60;article id=&#34;2&#34;&#62;<br />&#60;title&#62;Project Launch&#60;/title&#62;<br />&#60;author id=&#34;1&#34;&#62;Scott&#60;/author&#62;<br />&#8722;<br />&#60;preview&#62;<br />Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ...<br />&#60;/preview&#62;<br />&#8722;<br />&#60;body&#62;<br />Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.<br />&#60;/body&#62;<br />&#60;date&#62;2009-11-18&#60;/date&#62;<br />&#60;/article&#62;<br />&#8722;<br />&#60;article id=&#34;1&#34;&#62;<br />&#60;title&#62;Site Under Construction&#60;/title&#62;<br />&#60;author id=&#34;1&#34;&#62;Scott&#60;/author&#62;<br />&#8722;<br />&#60;preview&#62;<br />Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ...<br />&#60;/preview&#62;<br />&#8722;<br />&#60;body&#62;<br />Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.<br />&#60;/body&#62;<br />&#60;date&#62;2009-11-18&#60;/date&#62;<br />&#60;/article&#62;<br />&#60;/news&#62;<!--c2--></div><!--ec2-->]]></description>
		<pubDate>Wed, 18 Nov 2009 23:26:05 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28641</guid>
	</item>
	<item>
		<title>Moving Image</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28628</link>
		<description><![CDATA[Hi i am trying to move an image forward and back but it does not seem to be working.<br /><br />Could some one help cheers,<br /><br /><div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'><br />var moveTo= 150;<br />var moveBack = 50;<br />var x = 5;<br />     function moveCar() {<br />     <br />    pic =document.getElementById('car').style.left;<br />    {<br />	if(pic!=moveTo) {document.getElementById('car').style.left = x + "px"}  <br />        if(pic !=moveBack) {document.getElementById('car').style.left = x - "px"}  <br />           }<br />           <br />           window.setTimeout(moveCar,1500);<br />           }</div>]]></description>
		<pubDate>Wed, 18 Nov 2009 10:56:16 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28628</guid>
	</item>
	<item>
		<title>Rewrite Url (masking It)</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28616</link>
		<description><![CDATA[Hello,<br />I need help with this issue:<br />I had the site:<br />sub.site.com<br />when the user enter sub.site.com into their browser, <br />a link opens: sub.site.com/page1/page1.1/......<br />Is there some way in JavaScript or maybe php to make the URL fixed?<br />Thanks in advance]]></description>
		<pubDate>Tue, 17 Nov 2009 13:11:12 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28616</guid>
	</item>
	<item>
		<title>File-read Into Div Through Ajax. I’m Missing Something Small I Think!</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28613</link>
		<description><![CDATA[Hello. I'm doing something very simple, and yet it's not working.. maybe I'm missing something.<br /><br />I need to read a text file, through ajax, and into a div. I can easily write to the file through ajax, but not read. Here is what I have:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->function ajaxLoader&#40;url&#41;<br />{<br />if&#40;document.getElementById&#41;<br />{<br />var x = &#40;window.ActiveXObject&#41; ? new ActiveXObject&#40;&#34;Microsoft.XMLHTTP&#34;&#41; &#58; new<br />XMLHttpRequest&#40;&#41;;<br />}<br />if&#40;x&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />x.onreadystatechange = function&#40;&#41; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />if&#40;x.readyState == 4 && x.status == 200&#41; <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;&nbsp;&nbsp;&nbsp;&nbsp;el = document.getElementById&#40;'content'&#41;;<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;el.innerHTML = x.responseText;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br /><br />x.open&#40;&#34;GET&#34;,url, true&#41;;<br />x.send&#40;null&#41;;<br />}<br />}<!--c2--></div><!--ec2--><br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;a class=&#34;blocklink&#34; href=&#34;#&#34; id=&#34;readg&#34; onclick=&#34;ajaxLoader&#40;'guestBook.txt'&#41;;return false;&#34;&#62;Read The Guestbook&#60;/a&#62;&#60;/p&#62;<!--c2--></div><!--ec2--><br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;div id=&#34;content&#34; style=&#34;width&#58;600px;&#34;&#62;<!--c2--></div><!--ec2--><br /><br />I've been stuck on this all day. I am able to use all of the same code, and output a regular html file to the div, but not this .txt file. The txt file has all of the read write privileges it needs. <br /><br />At one point, I also changed the ajax to open a normal html page into the div, instead of a txt file, and it worked as it should. So my problem seems to be opening the text file itself...]]></description>
		<pubDate>Tue, 17 Nov 2009 11:04:57 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28613</guid>
	</item>
	<item>
		<title>Change Attribute Of An Element</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28607</link>
		<description><![CDATA[HI, I'm trying to change the attribute of an element,<br />I have this function <br />I want to change the style top and style left position of the second image cloned form the first,<br />I think i need to use nodeValue to get the value of an attribute, but how can i do or there is another method?<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;html&#62;<br />&#60;head&#62;<br />&lt;script type=&#34;text/javascript&#34;&#62;<br />function crea&#40;&#41; {<br /><br />createImgAnanas = document.createElement&#40;&#34;img&#34;&#41;;<br />createImgAnanas.style.position=&#34;absolute&#34;;<br />createImgAnanas.style.top=&#34;1%&#34;;<br />createImgAnanas.style.left=&#34;25%&#34;<br />createImg1.style.zIndex=&#34;3&#34;;<br />createImgAnanas.style.border=&#34;0&#34;;<br />createImgAnanas.setAttribute&#40;&#34;src&#34;, &#34;http&#58;//www.fruechteadam.com/img/Ananas.jpg&#34;&#41;;<br />createImgAnanas.setAttribute&#40;&#34;id&#34;, &#34;ananas1&#34;&#41;;<br />createImgAnanas.setAttribute&#40;&#34;alt&#34;, &#34;ananas&#34;&#41;;<br />createImgAnanas.setAttribute&#40;&#34;title&#34;, &#34;indicazione paese produzione ananas&#34;&#41;;<br />createImgAnanas.setAttribute&#40;&#34;width&#34;, &#34;150&#34;&#41;;<br />createImgAnanas.setAttribute&#40;&#34;height&#34;, &#34;79&#34;&#41;;<br /><br /> document.getElementById&#40;&#34;prince&#34;&#41;.appendChild&#40;createImgAnanas&#41;;<br /><br /><br />createImgAnanas1 = createImgAnanas.cloneNode&#40;true&#41;;<br /><br />&nbsp;&nbsp;document.getElementById&#40;&#34;prince&#34;&#41;.appendChild&#40;createImgAnanas1&#41;;<br />}<br /><br />&#60;/script&#62;<br />&#60;body id=&#34;prince&#34;&#62;<br /><br />&#60;input type=&#34;button&#34; value=&#34;crea&#34; onclick=&#34;crea&#40;&#41;;&#34; /&#62;<br /><br /><br /><br />&#60;/body&#62;<br />&#60;/html&#62;<!--c2--></div><!--ec2-->]]></description>
		<pubDate>Tue, 17 Nov 2009 03:56:38 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28607</guid>
	</item>
	<item>
		<title>Eval() Not Working</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28602</link>
		<description><![CDATA[Hello again,<br />I'm trying to use eval() on a JSON string.  Problem is my function keeps aborting on the eval line.  I don't know what's wrong.<br />Here's the code:<br /><div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'><br />httpRequest.onreadystatechange = function() {<br />	if(httpRequest.readyState == 4) {<br />		//If the tip doesn't exist, create it<br />		if (!homePage.getElementById("miscCharge_tip")) {<br />			divTipNode = homePage.createElement('div');<br />			divTipNode.style.width = "24em";<br />			divTipNode.className = "tip";<br />			divTipNode.id = "miscCharge_tip";<br />			<br />			tmpNode = homePage.createElement('div');<br />			tmpNode.className = "tip_title";<br />			tmpNode.innerHTML = "Other Charges";<br />			divTipNode.appendChild(tmpNode);<br />			<br />			tmpNode = homePage.createElement('div');<br />			tmpNode.className = "tip_body";<br />			divTipNode.appendChild(tmpNode);<br />		}<br />		divContainer = homePage.getElementById("miscChrg_tipBody");<br />		<br />		//arrResponse = eval("("+httpRequest.responseText+")");<br />		tmpResponseTxt = httpRequest.responseText;<br />		arrResponse = eval("("+tmpResponseTxt+")");<br />		divContainer.innerHTML = arrResponse.HTML;<br />		homePage.getElementById("OtherCost").value = FormatNumber(arrResponse.Total, 2);<br />		<br />		//window.close();<br />	}<br />}<br /></div><br />In case you haven't guessed this is also an AJAX request, but the AJAX seems to be working fine.<br />It's this line that's aborting:<br />arrResponse = eval("("+tmpResponseTxt+")");<br /><br />Here is the JSON string I'm trying to eval():<br /><div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'><br />"{"HTML": "&lt;table style='width: 350px; font-size: 14px; border-style: groove;'&gt;&#092;n&lt;tr&gt;&lt;th style='width: 75%;'&gt;Description&lt;/th&gt;&#092;n&lt;th colspan='2'&gt;Value&lt;/th&gt;&lt;/tr&gt;&#092;n&lt;tr&gt;&lt;td style='text-align: right; border-bottom: dashed; border-width: 1px;'&gt;&lt;input name='MiscChrgDesc' id='MiscChrgDesc0' class='tableInfo chargeDesc' value='Charge 1' readonly /&gt;&lt;/td&gt;&#092;n&lt;td style='width: 10px; text-align: right; border-bottom: dashed; border-width: 1px;'&gt;$&lt;/td&gt;&#092;n&lt;td style='text-align: right; border-bottom: dashed; border-width: 1px;'&gt;&lt;input name='MiscChrgAmt' id='MiscChrgAmt0' class='tableInfo' value='900' style='width: 40px;' readonly /&gt;&lt;/td&gt;&lt;/tr&gt;&#092;n&lt;tr&gt;&lt;td style='text-align: right; border-bottom: dashed; border-width: 1px;'&gt;&lt;input name='MiscChrgDesc' id='MiscChrgDesc1' class='tableInfo chargeDesc' value='Charge 2' readonly /&gt;&lt;/td&gt;&#092;n&lt;td style='width: 10px; text-align: right; border-bottom: dashed; border-width: 1px;'&gt;$&lt;/td&gt;&#092;n&lt;td style='text-align: right; border-bottom: dashed; border-width: 1px;'&gt;&lt;input name='MiscChrgAmt' id='MiscChrgAmt1' class='tableInfo' value='750' style='width: 40px;' readonly /&gt;&lt;/td&gt;&lt;/tr&gt;&#092;n&lt;tr&gt;&lt;td style='text-align: right; border-bottom: dashed; border-width: 1px;'&gt;&lt;input name='MiscChrgDesc' id='MiscChrgDesc2' class='tableInfo chargeDesc' value='Bleu cheese and taco sauce' readonly /&gt;&lt;/td&gt;&#092;n&lt;td style='width: 10px; text-align: right; border-bottom: dashed; border-width: 1px;'&gt;$&lt;/td&gt;&#092;n&lt;td style='text-align: right; border-bottom: dashed; border-width: 1px;'&gt;&lt;input name='MiscChrgAmt' id='MiscChrgAmt2' class='tableInfo' value='1,322' style='width: 40px;' readonly /&gt;&lt;/td&gt;&lt;/tr&gt;&#092;n&lt;tr&gt;&lt;td class='header' style='border-bottom: none;'&gt;Total&lt;/td&gt;&#092;n&lt;td style='font-weight: bold; border-bottom: none;'&gt;$&lt;/td&gt;&#092;n&lt;td class='header' style='border-bottom: none;'&gt;2,972&lt;/td&gt;&lt;/tr&gt;&#092;n&lt;/table&gt;&#092;n", "Total": 2972}"<br /></div><br />Any help is appreciated, thank you.]]></description>
		<pubDate>Mon, 16 Nov 2009 18:01:28 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28602</guid>
	</item>
	<item>
		<title>Display None In Ie</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28596</link>
		<description><![CDATA[Hi,<br /><br />I'm pretty sure my problem is a common one, but I can't figure it out.<br /><br />It works in FF, but not in IE. The function showpapiergewicht(this.form) shows or hides the selectable weights (gewicht) for each papertype (papiersoort).<br />EDIT: also doesn't seem to work in Chrome and Safari<br /><br />The function reken(this.form) calculates stuff, but has no influence in this example.<br /><br />I hope someone can help me with this.<br /><br />I have a form that looks like this (it may not be too symantic):<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;form&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;fieldset&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;legend&#62;Papiersoort&#60;/legend&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;label&#62;HVO&#58;&#60;/label&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;input type=&#34;radio&#34; name=&#34;papiersoort&#34; checked=&#34;checked&#34; onclick=&#34;showpapiergewicht&#40;this.form&#41;; reken&#40;this.form&#41;;&#34;/&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;label&#62;Colorcopy&#58;&#60;/label&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;input type=&#34;radio&#34; name=&#34;papiersoort&#34; onclick=&#34;showpapiergewicht&#40;this.form&#41;; reken&#40;this.form&#41;;&#34; /&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;label&#62;MC&#58;&#60;/label&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;input type=&#34;radio&#34; name=&#34;papiersoort&#34; onclick=&#34;showpapiergewicht&#40;this.form&#41;; reken&#40;this.form&#41;;&#34; /&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;label&#62;Gekleurd papier&#58;&#60;/label&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;input type=&#34;radio&#34; name=&#34;papiersoort&#34; onclick=&#34;showpapiergewicht&#40;this.form&#41;; reken&#40;this.form&#41;;&#34; /&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;br /&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;select name=&#34;grams&#34; onchange=&#34;reken&#40;this.form&#41;&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;option id=&#34;papier_gewicht1&#34; value=&#34;80&#34;&#62;80 grms.&#60;/option&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;option id=&#34;papier_gewicht2&#34; value=&#34;90&#34;&#62;90 grms.&#60;/option&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;option id=&#34;papier_gewicht3&#34; value=&#34;100&#34;&#62;100 grms.&#60;/option&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;option id=&#34;papier_gewicht4&#34; value=&#34;120&#34;&#62;120 grms.&#60;/option&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;option id=&#34;papier_gewicht5&#34; value=&#34;160&#34;&#62;160 grms.&#60;/option&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;option id=&#34;papier_gewicht6&#34; value=&#34;200&#34;&#62;200 grms.&#60;/option&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;option id=&#34;papier_gewicht7&#34; value=&#34;250&#34;&#62;250 grms.&#60;/option&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;option id=&#34;papier_gewicht8&#34; value=&#34;300&#34;&#62;300 grms.&#60;/option&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;/select&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;/fieldset&#62;<br />&#60;/form&#62;<!--c2--></div><!--ec2--><br /><br />And some java script:<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->function showpapiergewicht&#40;oForm&#41; {<br />&nbsp;&nbsp;&nbsp;&nbsp;if &#40;oForm.papiersoort&#91;1&#93;.checked&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;document.getElementById&#40;&#34;papier_gewicht1&#34;&#41;.style.display = 'none';<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;document.getElementById&#40;&#34;papier_gewicht2&#34;&#41;.style.display = 'none';<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;document.getElementById&#40;&#34;papier_gewicht3&#34;&#41;.style.display = '';<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;document.getElementById&#40;&#34;papier_gewicht4&#34;&#41;.style.display = '';<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;document.getElementById&#40;&#34;papier_gewicht5&#34;&#41;.style.display = '';<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;document.getElementById&#40;&#34;papier_gewicht6&#34;&#41;.style.display = '';<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;document.getElementById&#40;&#34;papier_gewicht7&#34;&#41;.style.display = '';<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;document.getElementById&#40;&#34;papier_gewicht8&#34;&#41;.style.display = '';<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;else if &#40;oForm.papiersoort&#91;3&#93;.checked&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;document.getElementById&#40;&#34;papier_gewicht1&#34;&#41;.style.display = '';<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;document.getElementById&#40;&#34;papier_gewicht2&#34;&#41;.style.display = 'none';<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;document.getElementById&#40;&#34;papier_gewicht3&#34;&#41;.style.display = 'none';<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;document.getElementById&#40;&#34;papier_gewicht4&#34;&#41;.style.display = '';<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;document.getElementById&#40;&#34;papier_gewicht5&#34;&#41;.style.display = '';<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;document.getElementById&#40;&#34;papier_gewicht6&#34;&#41;.style.display = 'none';<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;document.getElementById&#40;&#34;papier_gewicht7&#34;&#41;.style.display = 'none';<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;document.getElementById&#40;&#34;papier_gewicht8&#34;&#41;.style.display = 'none';<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;else if &#40;oForm.papiersoort&#91;0&#93;.checked || oForm.papiersoort&#91;2&#93;.checked&#41; <br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;document.getElementById&#40;&#34;papier_gewicht1&#34;&#41;.style.display = '';<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;document.getElementById&#40;&#34;papier_gewicht2&#34;&#41;.style.display = '';<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;document.getElementById&#40;&#34;papier_gewicht3&#34;&#41;.style.display = '';<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;document.getElementById&#40;&#34;papier_gewicht4&#34;&#41;.style.display = '';<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;document.getElementById&#40;&#34;papier_gewicht5&#34;&#41;.style.display = '';<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;document.getElementById&#40;&#34;papier_gewicht6&#34;&#41;.style.display = '';<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;document.getElementById&#40;&#34;papier_gewicht7&#34;&#41;.style.display = '';<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;document.getElementById&#40;&#34;papier_gewicht8&#34;&#41;.style.display = '';<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />}<!--c2--></div><!--ec2-->]]></description>
		<pubDate>Mon, 16 Nov 2009 13:52:00 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28596</guid>
	</item>
	<item>
		<title>Tree Manipulation In Dojo</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28594</link>
		<description><![CDATA[I have created a small code section that creates a tree.  I am having trouble finding the way to select an item and perform some task.  In the following code all I am trying to do is to display which item I selected.  This first code box is the code and then second is the data to populate the tree<br /><br /><div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>&lt;html dir="ltr"&gt;<br />    &lt;script&gt;<br />		function Select(what){<br />			alert( what +" was chosen");<br />		}<br />	&lt;/script&gt;<br />    &lt;head&gt;<br />        &lt;link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/dojo/1.3/dijit/themes/tundra/tundra.css"&gt;<br />        &lt;style type="text/css"&gt;<br />            body, html { font-family:helvetica,arial,sans-serif; font-size:90%; }<br />        &lt;/style&gt;<br />        &lt;style type="text/css"&gt;<br />            html, body { width: 100%; height: 100%; margin: 0; } #borderContainer<br />            { width: 100%; height: 100%; }<br />        &lt;/style&gt;<br />    &lt;/head&gt;<br />    <br />    &lt;body class="tundra "&gt;<br />		&lt;div dojoType="dijit.layout.ContentPane"  region="top"&gt;<br />			&lt;center&gt;&lt;h1&gt;Admin Control Center&lt;/h1&gt;&lt;/center&gt;<br />		&lt;/div&gt;<br />        &lt;div dojoType="dijit.layout.BorderContainer" design="sidebar" gutters="true"<br />        liveSplitters="true" id="borderContainer"&gt;<br />            &lt;div id="mainPage" dojoType="dijit.layout.ContentPane" splitter="true" region="center"&gt;<br />                &lt;h2&gt;Welcome! Select one of the items at the left to continue&lt;/h2&gt;<br />            &lt;/div&gt;		<br />	<br />            &lt;div dojoType="dijit.layout.ContentPane" splitter="true" region="leading"<br />            style="width: 200px;"&gt;<br />		        &lt;div dojoType="dojo.data.ItemFileReadStore"<br />		          url="AdminLabelList.json" jsid="listStore" /&gt;<br />				&lt;div  dojoType="dijit.tree.ForestStoreModel" rootLabel="Item List"<br />					childrenAttrs="line" store="listStore" <br />					jsId="listModel"&gt;&lt;/div&gt;<br /><br />				&lt;div dojoType="dijit.Tree" id="listTree" model="listModel"&gt;<br />					&lt;script type="dojo/method" onClick="Select(this)" args="item" &lt;/script&gt;<br />				&lt;/div&gt;<br />            &lt;/div&gt;<br /><br />        &lt;/div&gt;<br />    &lt;/body&gt;<br />    &lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/dojo/1.3/dojo/dojo.<img src="http://w3schools.invisionzone.com/style_emoticons/default/xd.gif" style="vertical-align:middle" emoid="xD" border="0" alt="xd.gif" />.js"<br />    djConfig="parseOnLoad: true"&gt;<br />    &lt;/script&gt;<br />    &lt;script type="text/javascript"&gt;<br />	    dojo.require("dojo.data.ItemFileReadStore");<br />        dojo.require("dijit.layout.ContentPane");<br />        dojo.require("dijit.layout.BorderContainer");<br />		dojo.require("dijit.Tree");<br />        dojo.require("dijit.tree.ForestStoreModel");<br />		&lt;/script&gt;<br />   <br />&lt;/html&gt;</div><br /><br />The data :<br /><br /><div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>{<br />   identifier: 'id',<br />   label: 'description',<br />   items: [<br />      { id: 1, description:"Users", <br />        line: [<br />            { id: '1-1', description: 'Master List'},<br />            { id: '1-2', description: 'Individual Stats'}<br />        ]<br />      },<br />      { id: 2, description:"Traces", <br />        line: [<br />            { id: '2-1', description: 'Master List'},<br />            { id: '2-2', description: 'Trace Details'}<br />		]<br />      },<br />      { id: 3, description:"Functions", <br />        line: [<br />            { id: '3-1', description: 'Where Defined'},<br />            { id: '3-2', description: 'Where Used'}        <br />        ] <br />      }<br />   ]<br />}</div><br /><br />Thank you for any assistance<br />]]></description>
		<pubDate>Mon, 16 Nov 2009 13:07:07 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28594</guid>
	</item>
	<item>
		<title>Need Help About Using Ajax To Submit The Form Without Page Changing</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28587</link>
		<description><![CDATA[I've asked my questions in HTML forum<br />and someone answer me that I may need to use AJAX<br />and all I've been knew about AJAX is , It's a technic to use javascript right?, or I misunderstood ?<br /><br />so I try to read and understand the tutorials in this website<br />but I'm too foolish to understand it  <img src="http://w3schools.invisionzone.com/style_emoticons/default/crazy.gif" style="vertical-align:middle" emoid=":crazy:" border="0" alt="crazy.gif" /> <br /><br />and I consider to post my topic again in this JAVA forum category<br /><br /><br />this is my questions:<br /><br />1. Which one of javascript I have to know to do what I want<br />2. If it's too hard to learn that script for newbie (it's me, I'm just a beginer of website coding) Would you please me by tell me the command or guide me<br />3. If I need to lean about AJAX . What is the knowledge I must knowing before<br /><br />Thanks you all<br /><br /><br />=This is my Questions which I copy from my topic= ; link=http://w3schools.invisionzone.com/index.php?showtopic=28583<br /><br /><!--quoteo(post=155516:date=Nov 16 2009, 02&#58;25 PM:name=lovekit)--><div class='quotetop'>QUOTE (lovekit &#064; Nov 16 2009, 02&#58;25 PM) <a href="index.php?act=findpost&pid=155516"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->How can I make my web page sending a form submit without link to that page<br /><br />- = I'm not good in using English language So I'll try to explain you my problem = -<br /><br />I want to make a page with a form (or Poll) to ask visiter something<br />But, How to make [Submit] or [Send] button to do just sending detail (or anything they're typeing in the field of the form)<br />just send form submit to my receiver&storage page<br /><br />I try to use target="(I tested all type)"<br />in that form<br />but it still redirect my page to my receiver page<br /><br />I want it to be just staying on that page , not change the page<br />Or maybe just show alert "your comment was received Thank you for comment"   &lt;&lt; like this (it's just sample)<br /><br />I knew, that AJAX can help me this problem<br />but I've been a foolish one. I don't understand it enough to use AJAX<br /><br />and I think, that must have anyway to do this by using just HTML JAVASCRIPT or PHP (I'm trying to understand PHP now but i'm just beginer)<br /><br /><br />so if you understand my question (that I think, I use a little wrong word or phase, B'cos I'm not good in English language)<br />Please help me<br /><br />Thanks for the answer<br />Thanks you to read my questions<br />Thanks you all<!--QuoteEnd--></div><!--QuoteEEnd--><br />]]></description>
		<pubDate>Mon, 16 Nov 2009 06:59:20 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28587</guid>
	</item>
	<item>
		<title>Looking For A Sparkly Script</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28585</link>
		<description><![CDATA[Hi there,<br /><br />I'm making a space themed site and I'm looking for a script that will display sparkling stars against a black background (i.e. very small white dots speckled throughout the background which either continuously sparkle/shimmer or slowly fade in and out etc..).  The background is fixed, as well, so that only the foreground content scrolls.  Any suggestions on where I can find such a script?  I tried going to the google home page to find what I wanted, but all I could see there was a search box; nothing at all about sparklies. Weird...<br /><br />Haha (slapping knee). Seriously, though, I did find one website advertising sparkles on the mouse, without using an image.  It turns out the "sparkle" was the "*" sign.  Two or three of them appear in various colors as the mouse is moved around the page.  I wonder if something similar could be done with the "." (period, fullstop) symbol of various font sizes speckled around the background of a page so that an image would not be necessary.  They could then fade in and out at various intervals thus giving the appearance of sparkling stars.  If anyone feels like writing a script for me like that real quick I'd be so grateful. <img src="http://w3schools.invisionzone.com/style_emoticons/default/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" /><br /><br />Actually, come to think of it, that won't do in this situation (though I am still curious if it could still be done in that way) cause I'm doing this as a zengarden submission so I can't change the html by inserting the periods, which means it would need to be a javascript image effect.  Of course, some kind of css solution that could achieve the desired effect would be even BETTER!  <br /><br />Anyway, thanks for any advice offered.<br />(makes like a tree and leafs)]]></description>
		<pubDate>Mon, 16 Nov 2009 05:47:09 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28585</guid>
	</item>
	<item>
		<title>Populate Textbox If The Value Of The Upload Is Not Null</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28573</link>
		<description><![CDATA[I made a simple script that<br />check the the value of the upload field, <br />if null then textbox remains null,<br />but if there is some value of upload field, the text box gets populated with that value.<br />while if the value fiield is null,any value can be set to textbox manually]]></description>
		<pubDate>Sun, 15 Nov 2009 05:42:35 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28573</guid>
	</item>
	<item>
		<title>Recognizing A Browser</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28570</link>
		<description><![CDATA[I'm currently designing a template for a website and the amount of line breaks between two div's works only in IE and does not work in Firefox (it comes out of the main container.) I wanted to know how I could make my site recognize the browser type, and see if I could make it so there are a certain amount of line breaks, depending on the browser type, so it looked as it should. Here is my code:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;?xml version=&#34;1.0&#34; encoding=&#34;ISO-8859-1&#34;?&#62;<br />&#60;!DOCTYPE html <br />&nbsp;&nbsp;&nbsp;&nbsp; PUBLIC &#34;-//W3C//DTD XHTML 1.0 Strict//EN&#34;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#34;http&#58;//www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&#34;&#62;<br />&#60;html xmlns=&#34;http&#58;//www.w3.org/1999/xhtml&#34; xml&#58;lang=&#34;en&#34; lang=&#34;en&#34;&#62;<br />&#60;head&#62;<br />&nbsp;&nbsp;&#60;title&#62;Bree Noa Publishing - Template&#60;/title&#62;<br /><br />&nbsp;&nbsp;&#60;meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=ISO-8859-1&#34; /&#62;<br /><br />&nbsp;&nbsp;&#60;meta name=&#34;keywords&#34; content=&#34;bree, noa, publishing, co, you, know, your, way, home, suzanne, jauchius, jerry, henderson, books, intuitive&#34; /&#62;<br />&nbsp;&nbsp;&#60;meta name=&#34;description&#34; content=&#34;Bree Noa is an independent publishing company in West Linn, Oregon creating opportunities every day for authors of memoir <br /><br />and creative non-fiction.&#34; /&#62;<br /><br />&nbsp;&nbsp;&#60;link rel=&#34;stylesheet&#34; href=&#34;styles.css&#34; type=&#34;text/css&#34; /&#62;<br /><br />&nbsp;&nbsp; &#60;style type=&#34;text/css&#34;&#62;<br />&nbsp;&nbsp; body {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;background&#58; #800000;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;margin&#58; 0;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;padding&#58; 0;<br />&nbsp;&nbsp; }<br /><br />&nbsp;&nbsp; .allContainer {<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;width&#58; 84%;<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;margin&#58; 10px;<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;padding&#58; 4px;<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;margin-left&#58; 7%;<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;margin-right&#58; 7%;<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;background&#58; #996600;<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;height&#58; 1475px;<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;border&#58; 2px solid #996600;<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;text-align&#58; center;<br />&nbsp;&nbsp; }<br /><br />&nbsp;&nbsp; .headContainer {<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; width&#58; 98.5%;<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; margin&#58; 4px;<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; padding&#58; 2px;<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; height&#58; 170px;<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; background&#58; #996600;<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; text-align&#58; left;<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; border&#58; 2px dotted black;<br />&nbsp;&nbsp; }<br /><br />&nbsp;&nbsp; .navContainer {<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; width&#58; 98.8%;<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; margin&#58; 3px 0.3% 3px 0.3%;<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; padding&#58; 4px;<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; background&#58; #996600;<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; height&#58; 45px;<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; text-align&#58; left;<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; border&#58; 2px dotted black;<br />&nbsp;&nbsp; }<br /><br />&nbsp;&nbsp; .noticeContainer {<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;width&#58; 145px;<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;height&#58; 78.7%;<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;margin&#58; 3.5px 0px 0px 3px;<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;background&#58; #996600;<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;text-align&#58; left;<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;float&#58; left;<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;border&#58; 2px dotted black;<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;padding&#58; 3px;<br />&nbsp;&nbsp; }<br /><br />&nbsp;&nbsp; .bodyContainer {<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;background&#58; #996600;<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;width&#58; 82.99%;<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;height&#58; 78.7%;<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;margin&#58; 2px;<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;margin-left&#58; 0;<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;text-align&#58; left;<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;float&#58; right; <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;border&#58; 2px dotted black;<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;padding&#58; 4px;<br />&nbsp;&nbsp; }<br /><br />&nbsp;&nbsp; .footerContainer {<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; background&#58; #996600;<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; width&#58; 99%;<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; height&#58; 45px;<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; margin&#58; 9px 0px 1px 3.5px;<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; text-align&#58; left; <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; border&#58; 2px dotted black;<br />&nbsp;&nbsp; }<br /><br />&nbsp;&nbsp; h1 {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; color&#58; #000;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; font-family&#58; &#34;Arial&#34;, Helvetica, sans-serif;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; font-size&#58; 36px;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; text-align&#58; center;<br />&nbsp;&nbsp; }<br /><br />&nbsp;&nbsp; h2 {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; color&#58; #000;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; font-family&#58; &#34;Arial&#34;, Helvetica, sans-serif;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; font-size&#58; 29px;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; text-align&#58; left;<br />&nbsp;&nbsp; }<br /><br />&nbsp;&nbsp; h3 {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; color&#58; #000;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; font-family&#58; &#34;Arial&#34;, Helvetica, sans-serif;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; font-size&#58; 25px;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; text-align&#58; left;<br />&nbsp;&nbsp; }<br /><br />&nbsp;&nbsp; p {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; color&#58; #000;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; font-family&#58; &#34;Palatino Linotype&#34;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; font-size&#58; 22px;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; text-align&#58; left;<br />&nbsp;&nbsp; }<br /><br />&nbsp;&nbsp; a {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;color&#58; #000;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;text-decoration&#58; underline;<br />&nbsp;&nbsp; }<br /><br />&nbsp;&nbsp; a&#58;hover {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; color&#58; #800000;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; text-decoration&#58; none;<br />&nbsp;&nbsp; }<br />&nbsp;&nbsp; &#60;/style&#62;<br />&#60;/head&#62;<br />&#60;body&#62;<br /><br />&nbsp;&nbsp;&#60;div class=&#34;allContainer&#34;&#62;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp; &#60;div class=&#34;headContainer&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#60;a href=&#34;index.html&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#60;img src=&#34;http&#58;//www.breenoa.com/images/BreeNoaPublishing wind.png&#34;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; alt=&#34;Bree Noa Publishing Co. - A Wind to carry the Tale&#34;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; width=&#34;64%&#34;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; height=&#34;89%&#34;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; border=&#34;0&#34; /&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#60;/a&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp; &#60;/div&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp; &#60;div class=&#34;navContainer&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#60;h3 align=&#34;center&#34; style=&#34;font-size&#58; 22px;&#34;&#62;This will contain the navigation bar&#60;/h3&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp; &#60;/div&#62;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp; &#60;div class=&#34;noticeContainer&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;h3&#62;This will contain the notices &#40;marquee, javascript notices, or plain text and links&#41; of bree noa. <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;br /&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;br /&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If the need arises, we can organize an RSS feed here as well.&#60;/h3&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp; &#60;/div&#62;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp; &#60;div class=&#34;bodyContainer&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;h1&#62;This will contain all of the body contents of the page&#60;/h1&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;br /&#62;&#60;br /&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;h3&#62;Testing font styles&#58;&#60;/h3&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;br /&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;h1 style=&#34;text-align&#58; left;&#34;&#62;Heading1&#60;/h1&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;h2&#62;Heading2&#60;/h2&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;h3&#62;Heading3&#60;/h3&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;p&#62;Paragraph<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;br /&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;br /&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;a href=&#34;#&#34;&#62;Link&#60;/a&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;/p&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp; &#60;/div&#62;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp; &#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br <br /><br />/&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br <br /><br />/&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;&#60;br /&#62;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp; &#60;div class=&#34;footerContainer&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#60;h4&#62;This will contain the copyright footer.&#60;/h3&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp; &#60;/div&#62;<br />&nbsp;&nbsp;&#60;/div&#62;<br /><br />&#60;/body&#62;<br />&#60;/html&#62;<!--c2--></div><!--ec2-->]]></description>
		<pubDate>Sat, 14 Nov 2009 19:40:33 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28570</guid>
	</item>
	<item>
		<title>Jquery Slider Help</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28568</link>
		<description><![CDATA[Hey everyone, I am pretty new to javascript and Jquery and I am trying to change the direction of a simple image slider (slide right instead of left)  Can anyone give me some tips as to what to focus on?  You don't have to solve this for me necessarily, but I would really appreciate any help.  The page in question is:<br /><a href="http://www.lesflaneurs.com/wordpress/?page_id=230" target="_blank">http://www.lesflaneurs.com/wordpress/?page_id=230</a><br />and the slider is the Accessible News Slider.  All of the CSS and JS is viewable in the source.  Thanks to anyone who can give me some advice.<br /><br />JW]]></description>
		<pubDate>Sat, 14 Nov 2009 16:57:55 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28568</guid>
	</item>
	<item>
		<title>Change An Image With Value In Form And Javascript/ajax?</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28555</link>
		<description><![CDATA[See: <a href="http://smartboyssite.net/formosum/wolfCustomize.php" target="_blank">http://smartboyssite.net/formosum/wolfCustomize.php</a><br />And: <a href="http://smartboyssite.net/formosum/changeWolfColors.php?furbase=3333FF" target="_blank">http://smartboyssite.net/formosum/changeWo...?furbase=3333FF</a><br /><br />I ripped the Javascript from Wajas, but I'm guessing its will not do what I want. I'm new to javascript, so forgive me if I made some stupid mistakes.<br /><br />Anyway, I'm trying to create something which will let you customize the colors of different layers within an image. At first I tried SVG, but that failed miserably, so now I'm using PHP + layered PNG images adjusted with imagemagick (hackish, I know, but at least it works). It works when I use the second URL listed above, but I want to embed it into the web page. What I need to do now is take the data from the form and have the second script create a new image, which is embedded into the first. How I saw it done on Wajas was using:<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->function ajaxmenuchange&#40;serverPage, objID&#41;{<br />&nbsp;&nbsp;&nbsp;&nbsp;var obj = document.getElementById&#40;objID&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;xmlhttp.open&#40;&#34;GET&#34;, serverPage&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;xmlhttp.onreadystatechange = function&#40;&#41;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&#40;xmlhttp.readyState == 4 && xmlhttp.status == 200&#41;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;obj.innerHTML = xmlhttp.responseText;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;xmlhttp.send&#40;null&#41;;<br />}<!--c2--></div><!--ec2--><br />And:<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;input type=&#34;text&#34; id=&#34;furcolor&#34; value=&#34;333333&#34;&#62;&#60;input type=&#34;button&#34; value=&#34;Preview&#34; id=&#34;preview&#34; onclick=&#34;ajaxmenuchange&#40;'changeWolfColors.php?furbase=' + document.getElementById&#40;'furcolor'&#41;.value, 'wolfImage'&#41;; return false;&#34;&#62;<!--c2--></div><!--ec2--><br />But it isn't working. Is there a way to fix this so it will work, or perhaps another way to regenerate the image without refreshing the whole page?]]></description>
		<pubDate>Thu, 12 Nov 2009 23:36:41 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28555</guid>
	</item>
	<item>
		<title>Csv To Html Table - Javascript</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28554</link>
		<description><![CDATA[Please help!<br /><br />I am very, very new at the whole web development thing and need a bit of help with figuring out the simplest way to convert a basic csv file into an html table with a verticle scroll bar. Like with all things there is a catch, and that is my client will need to change the linked csv document on a regular basis so this process needs to be made as simple as possible.<br /><br />I found what seemed like fairly clean javascript code that claims to do what I want, but I can't seem to make it work. I tried to insert the " HTML Header data" and " HTML footer data" directly into the html code but that doesn't seem to work either.<br /><br />Below is both my js and html code. Any help solving this problem would be immensely appreciated!!!<br /><br /><div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>//javascript<br /><br />// The names of our input and output files<br />var src  = "toronto_Nov09.csv";<br />var dest = "results.html";<br /><br />// Create some variables<br />var fso, fin, fout;<br />var data = new Array();<br /><br />// Define constants for file access<br />var forReading   = 1;<br />var forWriting   = 2;<br />var forAppending = 8; // not used - given for reference<br /><br />// Create File System Object and open input and output files<br />fso  = new ActiveXObject( "Scripting.FileSystemObject" );<br />fin  = fso.OpenTextFile( src, forReading );<br />fout = fso.OpenTextFile( dest, forWriting, true );// create file if not found<br /><br />// Write out header and start of table<br />fout.WriteLine( htmlHeader() );<br />fout.WriteLine( "&lt;table border='0' cellpadding='1' cellspacing='0' width='100%'&gt;" );<br /><br />// Loop through entire file<br />while( !fin.AtEndOfStream )<br />{<br /> try <br /> {<br />  // Read the next line<br />  var line = fin.ReadLine();<br />  <br />  // If line if blank - skip it<br />  if( line == "" )<br />    continue;<br />  <br />  // Fill our array 'data' which csv data split at ','<br />  // If you are using a different seperator, such as a TAB<br />  // you will need to modify the next item<br />  // Some examples <br />  // data = line.split( "&#092;t" ); // for tab<br />  // data = line.split( ":" );  // for colon<br />  // data = line.split( " " );  // for space<br />  data = line.split( "," );<br />  <br />  // Start our table ROW<br />  fout.WriteLine( "&lt;tr&gt;" );<br /> <br />  // Loop through data elements found on current line<br />  for( i = 0; i &lt; data.length; i++ )<br />  { <br />   // write TD tags to wrap data<br />   fout.WriteLine( "&lt;td&gt;" + data[i] + "&lt;/td&gt;" );<br />  }<br />  <br />  // Close the ROW<br />  fout.WriteLine( "&lt;/tr&gt;&#092;r&#092;n" );<br /> }<br /> catch( e )<br /> {<br />  WScript.Echo( "Error: " + e.description );<br /> }<br />}<br /><br />// Close TABLE<br />fout.WriteLine( "&lt;/table&gt;" );<br /><br />// Close HTML page<br />fout.WriteLine( htmlFooter() );<br /><br />// Close input and output files<br />fin.Close();<br />fout.Close();<br /><br /> <br /><br />/*******************************<br /> HTML Header data<br />********************************/<br /><br />function htmlHeader()<br />{<br /> var title = "CSV2HTML";<br /> var head = "&lt;html&gt;&#092;r&#092;n&lt;head&gt;&#092;r&#092;n";<br /> <br /> // Title<br /> head += "&lt;title&gt;" + title + "&lt;/title&gt;&#092;r&#092;n";<br /> <br /> // Style Sheet<br /> head += "&lt;style&gt;&#092;r&#092;n";<br /> head += " TD { &#092;r&#092;n";<br /> head += "    font-family: verdana;&#092;r&#092;n";<br /> head += "    font-size: 10pt; &#092;r&#092;n";<br /> head += "    border-bottom: thin groove lightyellow;&#092;r&#092;n";<br /> head += "    border-top: thin groove lightyellow;&#092;r&#092;n";<br /> head += "    color: blue; background: lightgrey;&#092;r&#092;n";<br /> head += " }&#092;r&#092;n";<br /> head += "&lt;/style&gt;&#092;r&#092;n";<br /> <br /> head += "&lt;/head&gt;&#092;r&#092;n&lt;body&gt;&#092;r&#092;n";<br /> return( head );<br />}<br /><br />/********************************<br /> HTML Footer data<br />*********************************/<br />function htmlFooter()<br />{<br /> var foot = "&#092;r&#092;n&lt;/body&gt;&#092;r&#092;n&lt;/html&gt;";<br /> return( foot );<br />}</div><br /><br /><br /><div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;<br />&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;<br />&lt;head&gt;<br />&lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;<br />&lt;title&gt;Untitled Document&lt;/title&gt;<br /><br />&lt;script type="text/javascript" src="csv2html.js"&gt;&lt;/script&gt;<br /><br /><br />&lt;/head&gt;<br /><br />&lt;body&gt;<br />&lt!--&lt;form id="commentForm" action="csvWithphp.php" method="post" onSubmit="return false;"&gt;<br />&lt;/form&gt;<br />--&gt;<br /><br />&lt;p&gt;My csv conversion test&lt;/p&gt;<br /><br /><br />&lt;/body&gt;<br />&lt;/html&gt;<br /></div>]]></description>
		<pubDate>Thu, 12 Nov 2009 20:04:45 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28554</guid>
	</item>
	<item>
		<title>Anchor Pseudo Classes</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28552</link>
		<description><![CDATA[I'm using CSS Sprites for a nav-bar, and using the pseudo classes "hover, visited, etc" (which is very cool) but for javascript enabled browsers I wanted to know if or how I can change the style dynamically.  In other words, when the user clicks an anchor, I capture the onclick event, which calls an AJAX function to just change the body of the page (which has a more pleasing effect) instead of the default anchor calling a whole page.<br /><br />However I would like to alter the style of the pseudo classes to change the "image".  I know I can just do this with mouseover, mouseout events, but for example heres the original CSS snippet;<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->#menu1 a&#58;link {background&#58; transparent url&#40;'menu_buttons.png'&#41;&nbsp;&nbsp;-0px -0px no-repeat;}<br />#menu1 a&#58;visited {background&#58; transparent url&#40;'menu_buttons.png'&#41;&nbsp;&nbsp;0px -0px no-repeat;}<br />#menu1 a&#58;focus {background&#58; transparent url&#40;'menu_buttons.png'&#41;&nbsp;&nbsp;0px -32px no-repeat;}<br />#menu1 a&#58;hover {background&#58; transparent url&#40;'menu_buttons.png'&#41;&nbsp;&nbsp;0px -64px no-repeat;}<br />#menu1 a&#58;active {background&#58; transparent url&#40;'menu_buttons.png'&#41;&nbsp;&nbsp;0px -64px no-repeat;}<!--c2--></div><!--ec2--><br /><br />HTML<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;li id=&#34;menu1&#34;&#62;&#60;a id=&#34;p1&#34; href=&#34;index.php?p=p1&#34;&#62;&#60;/a&#62;&#60;/li&#62;<!--c2--></div><!--ec2--><br /><br />Javascript<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->window.onload = init;<br /><br />function init&#40;&#41;<br />{<br />&nbsp;&nbsp; ...<br />&nbsp;&nbsp; document.getElementById&#40;'p1'&#41;.onclick = changePage;<br />}<br /><br />function changePage&#40;&#41;<br />{<br />&nbsp;&nbsp; // Is there something similar to what I'm trying to do here?&nbsp;&nbsp; <br />&nbsp;&nbsp; document.getElementById&#40;'p1'&#41;.style.hover.background = &#34;transparent url&#40;'menu_buttons.png'&#41;&nbsp;&nbsp;0px -128px no-repeat&#34;;&nbsp;&nbsp;<br />&nbsp;&nbsp; ...<br />}<!--c2--></div><!--ec2--><br /><br />Thanks in advance for any advice!]]></description>
		<pubDate>Thu, 12 Nov 2009 15:59:44 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28552</guid>
	</item>
	<item>
		<title>Remove Element With Dom</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28547</link>
		<description><![CDATA[I have this code<br />i want to remove all elements inside the div<br />my function closeDiv doesn't work :<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;html&#62;<br />&#60;head&#62;<br />&lt;script &#34;text/javascript&#34;&#62;<br />function closeDiv&#40;&#41;<br />{<br />&nbsp;&nbsp;if&#40;this.createDiv&#41;<br />&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;document.getElementById&#40;&#34;prince&#34;&#41;.removeChild&#40;createDiv&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;createDiv = null;<br />&nbsp;&nbsp;}<br />}<br /><br /><br />function insert&#40;&#41; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />if&#40;document.getElementById && document.createElement&#41; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />createDiv = document.createElement&#40;&#34;div&#34;&#41;;<br />createDiv.setAttribute&#40;&#34;id&#34;, &#34;div1&#34;&#41;;<br />document.getElementById&#40;&#34;prince&#34;&#41;.appendChild&#40;createDiv&#41;;<br /><br />createDiv = document.createElement&#40;&#34;div&#34;&#41;;<br />createDiv.setAttribute&#40;&#34;id&#34;, &#34;div2&#34;&#41;;<br />document.getElementById&#40;&#34;div1&#34;&#41;.appendChild&#40;createDiv&#41;;<br /><br />img=document.createElement&#40;&#34;img&#34;&#41;;<br />img.setAttribute&#40;&#34;alt&#34;, &#34;slide&#34;&#41;;&nbsp;&nbsp;&nbsp;&nbsp;<br />img.setAttribute&#40;&#34;src&#34;, &#34;http&#58;//www.volalibero.it/immagini/colorizzare_1.jpg&#34;&#41;;<br />document.getElementById&#40;&#34;div2&#34;&#41;.appendChild&#40;img&#41;;<br />}<br />}<br />&#60;/script&#62;<br />&#60;/head&#62;<br />&#60;body id=&#34;prince&#34;&#62;<br /><br /><br />&#60;input type=&#34;button&#34; value=&#34;00button&#34; onclick=&#34;insert&#40;&#41;;&#34; /&#62;<br />&#60;input type=&#34;button&#34; value=&#34;01button&#34;&nbsp;&nbsp;onclick=&#34;closeDIv&#40;&#41;;&#34; /&#62;<br /><br />&#60;/body&#62;<br />&#60;/html&#62;<!--c2--></div><!--ec2-->]]></description>
		<pubDate>Thu, 12 Nov 2009 11:22:13 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28547</guid>
	</item>
	<item>
		<title>Can We Write A Script Like Instapaper</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28543</link>
		<description><![CDATA[Hi all<br />Most of the users might have used INSTAPAPER<br /><br />Can we make an application like that too,<br /><br />Does anyone has idea about it,How to start it from??????]]></description>
		<pubDate>Thu, 12 Nov 2009 09:36:15 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28543</guid>
	</item>
	<item>
		<title>Slideshow Images</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28535</link>
		<description><![CDATA[HI, i have a problem i have this script:<br />the slideshow function &lt;cambiaImg&gt; doesn't works, i don't understand why...  <img src="http://w3schools.invisionzone.com/style_emoticons/default/umnik2.gif" style="vertical-align:middle" emoid=":umnik2:" border="0" alt="umnik2.gif" /> <br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;html&#62;<br />&#60;head&#62;<br /><br />&lt;script type=&#34;text/javascript&#34;&#62;&lt!-- <br />function insertDivImage &#40;linkImage&#41; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&#40;document.getElementById && document.createElement&#41; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;createDiv = document.createElement&#40;&#34;div&#34;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;createDiv.setAttribute&#40;&#34;id&#34;, &#34;containerSlide&#34;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;createDiv.setAttribute&#40;&#34;style&#34;, &#34;width&#58; 400px;&#34;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;createDiv.setAttribute&#40;&#34;style&#34;, &#34;height&#58; 400px;&#34;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;createDiv.setAttribute&#40;&#34;style&#34;, &#34;position&#58; absolute;&#34;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;createDiv.setAttribute&#40;&#34;style&#34;, &#34;border&#58; 1px solid #000000;&#34;&#41;;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;document.getElementById&#40;&#34;principal&#34;&#41;.appendChild&#40;createDiv&#41;;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pulsante=document.createElement&#40;&#34;input&#34;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pulsante.setAttribute&#40;&#34;id&#34;, &#34;closeSlide&#34;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pulsante.setAttribute&#40;&#34;type&#34;, &#34;button&#34;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pulsante.setAttribute&#40;&#34;value&#34;, &#34;chiudi&#34;&#41;;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&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;document.getElementById&#40;&#34;containerSlide&#34;&#41;.appendChild&#40;pulsante&#41;;<br /><br /><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;pulsante=document.createElement&#40;&#34;input&#34;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pulsante.setAttribute&#40;&#34;id&#34;, &#34;forwSlide&#34;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pulsante.setAttribute&#40;&#34;type&#34;, &#34;button&#34;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pulsante.setAttribute&#40;&#34;value&#34;, &#34;avanti&#34;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pulsante.setAttribute&#40;&#34;onclick&#34;, &#34;cambiaImg&#40;1&#41;;&#34;&#41;;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&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;document.getElementById&#40;&#34;containerSlide&#34;&#41;.appendChild&#40;pulsante&#41;;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /><br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pulsante=document.createElement&#40;&#34;input&#34;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pulsante.setAttribute&#40;&#34;id&#34;, &#34;backSlide&#34;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pulsante.setAttribute&#40;&#34;type&#34;, &#34;button&#34;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pulsante.setAttribute&#40;&#34;value&#34;, &#34;indietro&#34;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pulsante.setAttribute&#40;&#34;onclick&#34;, &#34;cambiaImg&#40;-1&#41;;&#34;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;document.getElementById&#40;&#34;containerSlide&#34;&#41;.appendChild&#40;pulsante&#41;;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /><br /><br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;img=document.createElement&#40;&#34;img&#34;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;img.setAttribute&#40;&#34;alt&#34;, &#34;slide&#34;&#41;;&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;img.setAttribute&#40;&#34;src&#34;, linkImage&#41;;<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;document.getElementById&#40;&#34;containerSlide&#34;&#41;.appendChild&#40;img&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;NewImg = new Array &#40;&#34;http&#58;//www.mentelocale.it/img_contenuti/collaboratori/grandi/Citta%20arte%20scienze%20Valencia.jpg&#34;, &#34;http&#58;//www.edb.utexas.edu/resources/team/images/L1_shack.jpg&#34;, &#34;http&#58;//img510.imageshack.us/img510/9830/vetrataadesivjl5.gif&#34;&#41;;<br /><br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var ImgNum = 0;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var ImgLength = NewImg.length - 1;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function cambiaImg&#40;direzione&#41; {<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if &#40;document.images&#41; {<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ImgNum = ImgNum + direzione;<br /><br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if &#40;ImgNum &#62; ImgLength&#41; {<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ImgNum = 0;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&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;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if &#40;ImgNum &#60; 0&#41; {<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ImgNum = ImgLength;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br /><br />&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;document.getElementById&#40;&#34;containerSlide&#34;&#41;.src = NewImg&#91;ImgNum&#93;;<br /><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;&nbsp;&nbsp;&nbsp;&nbsp;<br /><br />//--&gt;&#60;/script&#62; <br /><br /><br />&#60;/head&#62;<br />&#60;body id=&#34;principal&#34;&#62;<br />&#60;br /&#62;<br />&#60;input type=&#34;button&#34; value=&#34;bottone&#34; onclick=&#34;insertDivImage&#40;'http&#58;//www.mentelocale.it/img_contenuti/collaboratori/grandi/Citta%20arte%20scienze%20Valencia.jpg'&#41;&#34;; /&#62;<br />&#60;/body&#62;<br />&#60;/html&#62;<!--c2--></div><!--ec2-->]]></description>
		<pubDate>Wed, 11 Nov 2009 14:00:50 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28535</guid>
	</item>
	<item>
		<title>Decoding Base64 And Displaying Image In Browser</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28529</link>
		<description><![CDATA[This was previously posted in the ASP forum, but is probably better off here.<br /><br />I am looking for a way to take a base64 string that I get from an XML document and covert it to an image. I am trying to integrate UPS Online Tools to generate a Return label from our website. <br /><br />I was able to find a script that looks like it could work. All search inquires for decoding a base64 image is pointing me to this vb function:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->Function Base64Decode&#40;ByVal base64String&#41;<br /><br />&nbsp;&nbsp;Const Base64 = &#34;ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/&#34;<br />&nbsp;&nbsp;Dim dataLength, sOut, groupBegin<br />&nbsp;&nbsp;<br />&nbsp;&nbsp;'remove white spaces, If any<br />&nbsp;&nbsp;base64String = Replace&#40;base64String, vbCrLf, &#34;&#34;&#41;<br />&nbsp;&nbsp;base64String = Replace&#40;base64String, vbTab, &#34;&#34;&#41;<br />&nbsp;&nbsp;base64String = Replace&#40;base64String, &#34; &#34;, &#34;&#34;&#41;<br />&nbsp;&nbsp;<br />&nbsp;&nbsp;'The source must consists from groups with Len of 4 chars<br />&nbsp;&nbsp;dataLength = Len&#40;base64String&#41;<br />&nbsp;&nbsp;If dataLength Mod 4 &#60;&#62; 0 Then<br />&nbsp;&nbsp;&nbsp;&nbsp;Err.Raise 1, &#34;Base64Decode&#34;, &#34;Bad Base64 string.&#34;<br />&nbsp;&nbsp;&nbsp;&nbsp;Exit Function<br />&nbsp;&nbsp;End If<br /><br />&nbsp;&nbsp;<br />&nbsp;&nbsp;' Now decode each group&#58;<br />&nbsp;&nbsp;For groupBegin = 1 To dataLength Step 4<br />&nbsp;&nbsp;&nbsp;&nbsp;Dim numDataBytes, CharCounter, thisChar, thisData, nGroup, pOut<br />&nbsp;&nbsp;&nbsp;&nbsp;' Each data group encodes up To 3 actual bytes.<br />&nbsp;&nbsp;&nbsp;&nbsp;numDataBytes = 3<br />&nbsp;&nbsp;&nbsp;&nbsp;nGroup = 0<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;For CharCounter = 0 To 3<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' Convert each character into 6 bits of data, And add it To<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' an integer For temporary storage.&nbsp;&nbsp;If a character is a '=', there<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' is one fewer data byte.&nbsp;&nbsp;&#40;There can only be a maximum of 2 '=' In<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' the whole string.&#41;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;thisChar = Mid&#40;base64String, groupBegin + CharCounter, 1&#41;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If thisChar = &#34;=&#34; Then<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;numDataBytes = numDataBytes - 1<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;thisData = 0<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Else<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;thisData = InStr&#40;1, Base64, thisChar, vbBinaryCompare&#41; - 1<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End If<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If thisData = -1 Then<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Err.Raise 2, &#34;Base64Decode&#34;, &#34;Bad character In Base64 string.&#34;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Exit Function<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End If<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;nGroup = 64 * nGroup + thisData<br />&nbsp;&nbsp;&nbsp;&nbsp;Next<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;'Hex splits the long To 6 groups with 4 bits<br />&nbsp;&nbsp;&nbsp;&nbsp;nGroup = Hex&#40;nGroup&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;'Add leading zeros<br />&nbsp;&nbsp;&nbsp;&nbsp;nGroup = String&#40;6 - Len&#40;nGroup&#41;, &#34;0&#34;&#41; & nGroup<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;'Convert the 3 byte hex integer &#40;6 chars&#41; To 3 characters<br />&nbsp;&nbsp;&nbsp;&nbsp;pOut = Chr&#40;CByte&#40;&#34;&H&#34; & Mid&#40;nGroup, 1, 2&#41;&#41;&#41; + _<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Chr&#40;CByte&#40;&#34;&H&#34; & Mid&#40;nGroup, 3, 2&#41;&#41;&#41; + _<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Chr&#40;CByte&#40;&#34;&H&#34; & Mid&#40;nGroup, 5, 2&#41;&#41;&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;'add numDataBytes characters To out string<br />&nbsp;&nbsp;&nbsp;&nbsp;sOut = sOut & Left&#40;pOut, numDataBytes&#41;<br />&nbsp;&nbsp;Next<br /><br />&nbsp;&nbsp;Base64Decode = sOut<br />End Function<!--c2--></div><!--ec2--><br /><br />I am trying to run this function like this:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->Response.Write&#40;Base64Decode&#40;myBase64data&#41;&#41;<!--c2--></div><!--ec2--><br /><br />But all I get is:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->GIF87a@ ç<!--c2--></div><!--ec2--><br /><br />I must be doing something wrong. Can anyone help?]]></description>
		<pubDate>Wed, 11 Nov 2009 09:27:46 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28529</guid>
	</item>
	<item>
		<title>Regular Expressions</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28524</link>
		<description><![CDATA[I need some help with a regex I'm trying to create for a replace function. This is how I want it set up:<br /><br />[0-9A-Za-z][one space][0-9A-Za-z]<br /><br />I'm trying to prevent spaces from being entered for the first character and prevent extra (two or more) spaces between letters. I have been trying to create my own for a while but I haven't had any luck, this is the best that I have:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->str.replace&#40;/&#40;&#91;^a-zA-Z0-9&#93;&#41;{1}&#092;s/g,''&#41;;<!--c2--></div><!--ec2--><br />The above code removes extra spaces but allows spaces for the first character. Any help with this would be great.]]></description>
		<pubDate>Wed, 11 Nov 2009 04:36:13 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28524</guid>
	</item>
	<item>
		<title>Menu Hidden By Body Div</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28523</link>
		<description><![CDATA[I have a menu in a fixed position div to simulate a frame set...<br />the balance of the page is in a fake body div and when scrolled down the page the dropdown of the menu is being hidden. I have the z-index set to be higher in the static than the body but this is still not helping. Any ideas?<br /><br />I have put a test page to illustrate this...http://www.webconstruct.co.za/test/menutest.asp<br /><br />Any help appreciated.<br />Dave]]></description>
		<pubDate>Wed, 11 Nov 2009 03:16:33 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28523</guid>
	</item>
	<item>
		<title>Get Element By Id In Ff</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28520</link>
		<description><![CDATA[i have<br /><br /><!--quoteo--><div class='quotetop'>QUOTE </div><div class='quotemain'><!--quotec-->function Request(el,url) {<br />var query="";   <br /><b>var inputs=el.getElementsByTagName("input");</b><br />	for(var i = 0; i &lt; inputs.length; i++){<br />	    switch(inputs[i].type)<br />		{<br />		case "checkbox":<br />		  if(inputs[i].checked==true){query+=inputs[i].name+"=on";}else{query+=inputs[i].name+"="}<br />		  break;<br />		case "radio":<br />		  if(inputs[i].checked==true){query+=inputs[i].name+"="+inputs[i].value;}<br />		  break;<br />		case "hidden":<br />		  query+=inputs[i].name+"="+inputs[i].value;<br />		  break;<br />		case "password":<br />		  query+=inputs[i].name+"="+inputs[i].value;<br />		  break;<br />		case "text":<br />		  query+=inputs[i].name+"="+inputs[i].value;<br />		  break;<br />		case "textarea":<br />		  query+=inputs[i].name+"="+inputs[i].value;<br />		  break;<br />		case "submit":<br />		  query+="submit";<br />		  break;<br />		default:<br />		  query+=inputs[i].name+"="+inputs[i].value;<br />		  prompt("Error","java script:alert('ERROR While handeling POSTsubmitrequest: &#092;nname="&#043;inputs&#91;i&#93;.name&#043;"&#092;nid="+inputs[i].id+"&#092;nvalue="+inputs[i].value+"')");<br />		}<br />	query+="&";	<br />    }<br />requestOut(query,url);<br />}<!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />if run this code by foloing (eval) script:<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->$&#40;document&#41;.ready&#40;function&#40;&#41;{$&#40;'#user_start_chose_form_submit'&#41;.click&#40;function &#40;&#41; {Request&#40;$&#40;'#user_start_chose_form'&#41;,'user_start'&#41;;}&#41;;}&#41;;<!--c2--></div><!--ec2--><br />whats wrong??<br /><br />but fire bug says there is a problem at the bolt line]]></description>
		<pubDate>Tue, 10 Nov 2009 16:58:46 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28520</guid>
	</item>
	<item>
		<title>Cookie Problem (firefox)</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28512</link>
		<description><![CDATA[Hi Guys can you please tell me that<br /><br />I need to read cookie from cookie list which is set after login ,but i am unable to read it for a particular id.<br />I dont want to set cookie ,but just need to read cookie and it's parameters which is created after login.<br />Please help <br />]]></description>
		<pubDate>Tue, 10 Nov 2009 04:15:29 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28512</guid>
	</item>
	<item>
		<title>Lightbox Not Working Dispite All Seeming Good</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28502</link>
		<description><![CDATA[I have made a wordpress theme and wish to include lightbox in the site.<br /><br />I am using a lightbox clone (which is basically the same but smaller) called<a href="http://www.digitalia.be/software/slimbox" target="_blank"> slimbox</a>. It is a plugin within wordpress.<br /><br />Please see <a href="http://topuptents.x10hosting.com/wordpress/2009/11/a-picture/" target="_blank">this page</a> to see the page I'm trying to get to work.<br /><br />I check the page source and all the .js files and other external files are loaded succesfully, the thumbnail links to the full size image and the link has rel="lightbox" (as instructed by the plugin page)<br /><br />Yet when the thumbnail is clicked it just loads the full-size image normally in browser window.<br /><br />I would appreciate anyone who discovers why it's not working and who can help me fix it... cheers<br /><br />]]></description>
		<pubDate>Mon, 09 Nov 2009 10:18:23 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28502</guid>
	</item>
	<item>
		<title>Updating Data Based On What Boxes Are Checked</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28494</link>
		<description><![CDATA[Hi all,<br /><br />I'm looking for a way to go about this trick using jquery and ajax<br /><br />I have a form with a few boxes, for example:<br />box1 = 1, box2 = 2, box3 = 3 etc etc... Where box1 is the name, and 1 is the value. The checkboxes will always be a numerical value.<br /><br />Now, whenever someone checks the box, i would like a message below them to update the total without a page refresh. So, if boxes 1 and 3 were ticked, it would say 4, if boxes 1, 3 and 7 were checked, then the total 11, etc etc. There would be decimals involved, like 1.5 and 3.5 for example, if thats going to cause any trouble.<br /><br />How would I go about this using ajax and preferably jquery if possible??<br /><br />Any help would be appreciated <img src="http://w3schools.invisionzone.com/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />]]></description>
		<pubDate>Sun, 08 Nov 2009 14:19:16 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28494</guid>
	</item>
	<item>
		<title>Continuing Variables</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28486</link>
		<description><![CDATA[Hi,<br /><br />I'm working on a script where I need to send a query string to another page.<br /><br />This query string however is made up with several values that are added to the string conditionally.<br />In PHP for example you can continue with variables like so:<br /><br />$var .= 'value';<br />$var .= 'value2';<br />echo $var; // result valuevalu2<br /><br />How does this work with javascript?  var Number = Number + 'whatever'; (?)<br />Or does it have a similar method as in PHP?<br /><br />(A link where this is explained will suffice)<br /><br />Thank you.]]></description>
		<pubDate>Sat, 07 Nov 2009 08:58:46 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28486</guid>
	</item>
	<item>
		<title>Make An Iframe A Link..?</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28485</link>
		<description><![CDATA[Is there anyway to make a whole Iframe a link..??<br />So say I have a website that has an Iframe of another site on it, and if the user clicks anywhere in/on the iframe it takes them to that site thats in the Iframe..??]]></description>
		<pubDate>Sat, 07 Nov 2009 04:54:13 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28485</guid>
	</item>
	<item>
		<title>Onmouseover Stops Working... Very Strange</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28475</link>
		<description><![CDATA[Hi,<br /><br />I have a sample up at <a href="http://nkcorner.com/tmp.php" target="_blank">http://nkcorner.com/tmp.php</a><br /><br />The code has 3 comments. one in the internal style, one in the image.position code, and one which controls opacity. Any of those comments uncommented fix the problem. I don't understand why.<br /><br />The idea of the code is to bring up a floating div when mouse is over either link or floated div. floated div fades away over a period of 2 seconds, but is brought back fully if mouse is put back over link or over the float itself. This was working fine until I decided to control opacity through the div as opposed to the image. I want to control the div b/c I may want to do the same thing without an image. This change caused onmouseover to stop being called.<br /><br />Any help is appreciated,<br />Thanks,<br /><br />Issue doesn't seem to exist in IE, only in chrome and firefox.<br /><br />HTML:<br />&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"<br /><br />"http://www.w3.org/TR/html4/strict.dtd"&gt; <br />&lt;html lang="en-US"&gt; <br />&lt;head&gt; <br />&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8559-1"&gt; <br />&lt;style type="text/css"&gt;<br />.tmpItem {<br />/* remove this to fix problem */<br />float:left;<br />}<br />&lt;/style&gt;<br />&lt;script type="text/javascript"&gt;<br />var visible = false;<br />var clearing = false;<br />var div;<br />var image = null;<br />var timer;<br />var opControl;<br />function popup(show) {<br />	if(show) {<br />		if(!visible) {<br />			div = document.createElement("div");<br />			div.setAttribute("class", "floatingDownloadLink");<br />			image = document.createElement("img");<br />			image.style.width = "100px";<br />			image.style.height = "100px";<br />			image.style.border = "groove";<br />			image.style.margin = "100px";<br />			image.setAttribute("onmouseover", "popup(true)");<br />			image.setAttribute("onmouseout", "popup(false)");<br />			//image.style.position = "absolute";<br />			div.appendChild(image);<br />			document.body.appendChild(div);<br />			visible = true;<br />		}<br />		if(clearing) {<br />			clearTimeout(timer);<br />		}<br />		opControl = div;<br />		//opControl = image;<br />		opControl.style.opacity = "1";<br />		clearing = false;<br />	}<br />	else if(visible && !clearing) {<br />		clearing = true;<br />		clearPopup();<br />	}<br />}<br />function clearPopup() {<br />	var num = new Number(opControl.style.opacity);<br />	if(num == 0) {<br />		div.removeChild(image);<br />		document.body.removeChild(div);<br />		visible = false;<br />		clearing = false;<br />	}<br />	else {<br />		timer = setTimeout(clearPopup, 20);<br />		opControl.style.opacity = num - .01;<br />	}<br />}<br />&lt;/script&gt;<br />&lt;/head&gt; <br />&lt;body&gt;<br />&lt;div class="tmpItem"&gt;&lt;a href="tmp.php" onclick="window.open(this.href, '_blank'); return false;" onmouseover="popup(true); return true;" onmouseout="popup(false); return true;"&gt;makeFloat&lt;/a&gt;&lt;/div&gt;<br />&lt;/body&gt; <br />&lt;/html&gt; <br />]]></description>
		<pubDate>Fri, 06 Nov 2009 12:54:07 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28475</guid>
	</item>
	<item>
		<title>Ajax Return Next Image Src</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28473</link>
		<description><![CDATA[Hi, can someone explain why this happens:<br /><br />Here's the javascript section<br /><br /><div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>	function checkForMoreImgs(id, last, limit){<br />		//AJAX to check if there are more images in this category. if not, check if there is a row to go to<br />		xmlHttp=GetXmlHttpObject();<br />		if (xmlHttp==null)<br />		  {<br />		  alert ("Browser does not support HTTP Request");<br />		  return;<br />		  }<br />		var url="http://www.###.com/administrator/gallery.class.php";<br />		url=url+"?imgCat="+id;<br />		url=url+"&lastPic="+last;<br />		url=url+"&limit="+limit;<br />		url=url+"&sid="+Math.random();<br />		xmlHttp.onreadystatechange=checkForMore;<br />		xmlHttp.open("GET",url,true);<br />		xmlHttp.send(null);	<br />	}<br />	<br />	function checkForMore(){ <br />		var paths;<br />		if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){<br />			// If there are more images we want to replace them with new urls and get rid of any old ones that might be left<br />			document.getElementById("0-0").src =xmlHttp.responseText; // !!!!!!!!!! THIS IS THE LINE IN QUESTION !!!<br />		}<br />	}<br /><br />	function GetXmlHttpObject(){<br />	var xmlHttp=null;<br />	try{<br />	 // Firefox, Opera 8.0+, Safari<br />	 xmlHttp=new XMLHttpRequest();<br />	}<br />	catch (e){<br />	 // Internet Explorer<br />		try{<br />		  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");<br />		}<br />		catch (e){<br />		  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");<br />		}<br />	}<br />	return xmlHttp;<br />	}<br /></div><br /><br />here's the php section<br /><br /><div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>if(isset($_GET['imgCat'])){<br />	$gallery = new gallery();<br />	$category = $_GET['imgCat'];<br />	$start = $_GET['lastPic'];<br />	$limit = $_GET['limit'];<br />	$gallery-&gt;getImagesByCategory($category, $start, $limit);<br />	if($gallery-&gt;fullpath[0] != ''){<br />		echo $gallery-&gt;fullpath[0] . $gallery-&gt;filename[0];<br />	} else {<br />		echo "&lt;p&gt;no more images&lt;/p&gt;";<br />	}<br />} else {<br />	echo "&lt;p&gt;Not Set&lt;/p&gt;";<br />}<br /></div><br /><br />In the javascript section, the line that says document.getElementById("0-0").src =xmlHttp.responseText in the checkForMore() function, if I do document.write(xmlHttp.responseText), I get the text that I want to insert into the src, but when I go document.getElementById("0-0").src =xmlHttp.responseText I get a whole long line of stuff.<br /><br />Below is what gets inserted in the src if it makes a difference, Thanks!<br /><br /><a href="http://www.###.com/%3Cscript%20type=%22text/javascript%22%20language=%22javascript%22%3E%20%3C!--//var%20oldId%20=%200+'-'+0;var%20t;var%20numImages%20=%20Array();%20//%20This%20variable%20is%20set%20by%20the%20below%20PHP%20in%20thumbnails()var%20perRow;var%20categories%20=%20Array();%20//%20This%20variable%20is%20set%20by%20the%20below%20PHP%20in%20thumbnails()function%20largeImg(newSrc,%20alt,%20imgId,%20catNum)%7Bvar%20newSrc%20=%20newSrc;var%20alt%20=%20alt;var%20imgId%20=%20imgId;var%20oldStr%20=%20%22div-%22%20+%20oldId;var%20newStr%20=%20%22div-%22%20+%20imgId;newStr%20=%20newStr%20+%20'-'%20+%20catNum;document.getElementById(%22lrgImg%22).src%20=%20newSrc;document.getElementById(%22imageTitle%22).innerHTML%20=%20alt;document.getElementById(oldStr).style.backgroundColor%20=%20'#000000';document.getElementById(newStr).style.backgroundColor" target="_blank">http://www.###.com/%3Cscript%20type=%22tex...backgroundColor</a> = '#999966';oldId = imgId + '-' + catNum;} function playShow(){setTimeout("next()", 500); // Slight delay for startt = setInterval("next()", 4000);} function stopShow(){clearInterval(t);} function next(){var splitOldId = oldId.split("-");var newId;var moreInRow = "no";if(splitOldId[0] == numImages[splitOldId[1]] - 1){newId = 0;var oldSrc = document.getElementById(splitOldId[0] + "-" + splitOldId[1]).src;checkForMoreImgs(categories[splitOldId[1]], splitOldId[0], perRow);newId = newId + '-' + splitOldId[1];splitOldId[0] = -1;} else {newId = parseInt(splitOldId[0]) + 1;newId = newId + '-' + splitOldId[1];//document.getElementById("code").innerHTML = "New ID: " + newId + " Old ID: " + oldId + " Split 1: " +splitOldId[1] + " Number of Images: " + numImages;}var alt = document.getElementById(newId).alt;var newSrc = document.getElementById(newId).src;var splitPoint = newSrc.lastIndexOf("&#092;/");var start = newSrc.substring(0,splitPoint);var large = '/large/';var end = newSrc.substring(splitPoint + 1);newSrc = start + large + end;largeImg(newSrc, alt, parseInt(splitOldId[0]) + 1, parseInt(splitOldId[1]));}function checkForMoreImgs(id, last, limit){//AJAX to check if there are more images in this category. if not, check if there is a row to go toxmlHttp=GetXmlHttpObject();if (xmlHttp==null)  {  alert ("Browser does not support HTTP Request");  return;  }var url="http://www.###.com/administrator/gallery.class.php";url=url+"?imgCat="+id;url=url+"&lastPic="+last;url=url+"&limit="+limit;url=url+"&sid="+Math.random();xmlHttp.onreadystatechange=checkForMore;xmlHttp.open("GET",url,true);xmlHttp.send(null);}function checkForMore(){ var paths;if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){// If there are more images we want to replace them with new urls and get rid of any old ones that might be leftdocument.getElementById("0-0").src =xmlHttp.responseText;}}function GetXmlHttpObject(){var xmlHttp=null;try{ // Firefox, Opera 8.0+, Safari xmlHttp=new XMLHttpRequest();}catch (e){ // Internet Explorertry{  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}catch (e){  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}}return xmlHttp;} //--&gt;&lt;/script&gt;&lt;div id="code"&gt;&lt;/div&gt;http://www.###.com/images/current-projects/Pollard/Cellar-hole-before-frost-walls.jpg]]></description>
		<pubDate>Fri, 06 Nov 2009 12:05:30 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28473</guid>
	</item>
	<item>
		<title>Drag And Drop Function</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28471</link>
		<description><![CDATA[Hi everyone.<br /><br />I've been searching for a while, and cant seem to find the answer to my question.<br /><br />I'm searching for a function that makes it possible to take a image, and drag it into a div tag, my code without function looks like this:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&lt!-- My Draggable Images --&gt;<br />&#60;img src=&#34;draggable_image1.jpg&#34; width=&#34;250&#34; height=&#34;250&#34; /&#62;<br />&#60;img src=&#34;draggable_image2.jpg&#34; width=&#34;250&#34; height=&#34;250&#34; /&#62;<br />&#60;img src=&#34;draggable_image3.jpg&#34; width=&#34;250&#34; height=&#34;250&#34; /&#62;<br />&#60;img src=&#34;draggable_image4.jpg&#34; width=&#34;250&#34; height=&#34;250&#34; /&#62;<br /><br />&lt!-- My Drop-accepting divs --&gt;<br />&#60;div id=&#34;#droparea1&#34;&#62;&nbsp;&#60;/div&#62;<br />&#60;div id=&#34;#droparea2&#34;&#62;&nbsp;&#60;/div&#62;<br />&#60;div id=&#34;#droparea3&#34;&#62;&nbsp;&#60;/div&#62;<br />&#60;div id=&#34;#droparea4&#34;&#62;&nbsp;&#60;/div&#62;<!--c2--></div><!--ec2--><br /><br />So as you see, its not so much that i want to be done, but i cant find a way to do this at all.<br /><br />On the page it will be more draggable images and dropable areas, so might be best to use a id that goes for all dropareas.<br />But you decide <img src="http://w3schools.invisionzone.com/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /><br /><br />Hope you understand my question and can help.<br /><br />Kristian]]></description>
		<pubDate>Fri, 06 Nov 2009 06:47:42 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28471</guid>
	</item>
	<item>
		<title>Js In Google Apps</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28467</link>
		<description><![CDATA[Hey all,<br /><br />Random question here. I watched a video on Google Wave, and noticed Google has some amazing UI features in all their products like perfect use of AP Divs (layers) and drag and drop.  Do they have super expert JS developers, or do you think they leverage off of a JS library?]]></description>
		<pubDate>Fri, 06 Nov 2009 02:16:19 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28467</guid>
	</item>
	<item>
		<title>Container Sizes</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28445</link>
		<description><![CDATA[hi <br />can anyone tell me what code i use to stop my text overspilling a container ie a section with a width and a height<br />cheers<br />jnf555]]></description>
		<pubDate>Tue, 03 Nov 2009 20:02:47 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28445</guid>
	</item>
	<item>
		<title>Ajax Request Not Working</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28443</link>
		<description><![CDATA[I have an AJAX request that queries a database.  Problem is, the records aren't being found.  Am I sending the request properly?<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->postParams = &#34;QuoteNum=&#34;+tmpQuote+&#34;&SetNum=&#34;+tmpSet+&#34;&Type=&#34;+tmpType; //+&#34;&RevNum=&#34;+tmpRev;<br /><br />httpRequest.open&#40;&#34;POST&#34;,&#34;/SkyPrice/Scripts/AJAX_Requests/GetDtlInfo.php&#34;,true&#41;;<br />httpRequest.setRequestHeader&#40;&#34;Content-type&#34;, &#34;application/x-www-form-urlencoded&#34;&#41;<br />httpRequest.send&#40;postParams&#41;;<!--c2--></div><!--ec2--><br />I know it's accessing the PHP file because it spits out the text it's supposed to if no record is found.  Trouble is I know the records exist in the database.  It's just not finding them.<br /><br />Help please?<br />Thanks,<br />jkloth]]></description>
		<pubDate>Tue, 03 Nov 2009 17:44:47 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28443</guid>
	</item>
	<item>
		<title><![CDATA[Getting The Height Of An Element With A Height Of 'auto']]></title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28442</link>
		<description><![CDATA[I'm designing a web page that has boxes that you can click to make slide open and close.  However, I don't know how to get the height of an element when it is defined in an external style sheet, or if it is 'auto'.<br /><br />The problem is that I can't get the boxes to slide back to their original size.  I have to make an argument in the function, and then guess what size the box actually is.  This isn't desirable because the JavaScript functions I have made will be used in many parts of this project, and eventually, many parts of the page will be dynamic.<br /><br />Is there a way to determine the height of an element if it has a height of 'auto', or has the height residing in an external style sheet?]]></description>
		<pubDate>Tue, 03 Nov 2009 16:28:02 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28442</guid>
	</item>
	<item>
		<title>Execute Javascript After Iframe Has Loaded..?</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28441</link>
		<description>how would I Execute some JavaScript code only After and IFrame has 100% loaded on a webpage..??</description>
		<pubDate>Tue, 03 Nov 2009 16:21:45 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28441</guid>
	</item>
	<item>
		<title>Passing Listboxes As Parameters To A Function</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28440</link>
		<description><![CDATA[I have a web form with 3 pairs of listboxes, 6 listboxes total. I perform exactly the same actions in a pair by pair basis so I would like to use the same function code for the 3 pairs passing 2 listboxes as parameters depending on which pair will be used. <br /><br />Is it possible to indicate a function that a parameter is a listbox?<br />Please advice.<br /><br />Best regards,<br />Jorge Maldonado]]></description>
		<pubDate>Tue, 03 Nov 2009 10:33:19 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28440</guid>
	</item>
	<item>
		<title>Copying Selected Text From Any Browser Window To One Static Page</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28435</link>
		<description><![CDATA[Hey guys i want a feature that whenever i select any text from any browser's page ,it get copied to a small pop-up like window or my static page.<br />please help guys. i am not getting any idea of it.]]></description>
		<pubDate>Tue, 03 Nov 2009 02:46:14 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28435</guid>
	</item>
	<item>
		<title>Changing Background Position</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28428</link>
		<description><![CDATA[hi,<br /><br />U have been trying to change the background position property but mozilla brower does not support style.backgroundPositionX but mozilla does not except that.  So I have now changed my function to this but it does now work. <br /><br />Could someone help thanks.<br /><br />gary<br /><br /><div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'><br />var x = 10; //Starting Location - left<br />var y = 10; //Starting Location - top<br />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 /><br />function moveimg() {<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("landscape").style.backgroundPosition = 'x+'px' 'y+'px";<br /><br />window.setTimeout(moveimg,300);<br />}<br />}<br />&lt;/script&gt;</div>]]></description>
		<pubDate>Mon, 02 Nov 2009 19:57:04 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28428</guid>
	</item>
	<item>
		<title>Mouseover And Out</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28426</link>
		<description><![CDATA[Evening,<br /><br />Not sure what I am doing wrong here in particulair, but I thought this should work.<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&lt;script language=&#34;JavaScript&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt!-- Start<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;news = new Image&#40;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;news.src = 'imageWeb/newsOn.png';<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //End --&gt;&nbsp;&nbsp;&nbsp;&nbsp;<br />&#60;/script&#62;<br /><br />&#60;a href=&#34;news.html&#34; onmouseover=&#34;news.src=imageWeb/newsOn.png;&#34; onmouseout=&#34;news.src=imageWeb/newsOut.png;&#34;&#62;&#60;img src=&#34;imageWeb/newsOut.png&#34; alt=&#34;news&#34; width=&#34;172px&#34; height=&#34;45px&#34; name=&#34;news&#34; /&#62;&#60;/a&#62;<!--c2--></div><!--ec2--><br /><br />Or am I missing something here, cause they different images are not being displayed.]]></description>
		<pubDate>Mon, 02 Nov 2009 18:45:32 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28426</guid>
	</item>
	<item>
		<title>How To Tell My Site To Read What Browser Is Viewing It</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28421</link>
		<description>As of now, my website looks perfect on all browsers except for on cell phones. I want to know how I can adjust settings so that it looks like this on one browser, then looks like this on another browser, and so on.</description>
		<pubDate>Mon, 02 Nov 2009 11:50:15 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28421</guid>
	</item>
	<item>
		<title>Style</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28416</link>
		<description><![CDATA[&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt;<br />&lt;html&gt;<br /><br /><br />&lt;title&gt;<br />thebullshead<br />&lt;/title&gt;<br /><br />&lt;head&gt;<br />&lt;style type="text/css"&gt;<br />body{<br />background-color:silver<br />}<br /><br />.b{background-color:yellow}<br />.b{width:150px;height:30px}<br />.b{border:1px solid black}<br /><br /><br /><br />&lt;/style&gt;<br />&lt;/head&gt;<br /><br />&lt;body&gt;<br /><br /><br />&lt;div&gt;<br />&lt;table&gt;<br /><br />  &lt;td &gt;&lt;a  href=""class="b"&gt;bar&lt;/a&gt;&lt;/td&gt;<br /><br />&lt;/table&gt;<br /><br />&lt;/div&gt;<br /><br /><br /><br />&lt;/body&gt;<br />&lt;/html&gt;<br /><br /><br /><br />hi can anyone tell me why this formular dosent recognise the size instuction<br /><br />thanks<br />jnf555]]></description>
		<pubDate>Mon, 02 Nov 2009 06:39:26 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28416</guid>
	</item>
	<item>
		<title>How Important Is Designing Version W/o Java?</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28405</link>
		<description><![CDATA[I'm a beginner web designer, trying to get perspective on advice i hear... Design version of your site that does not include java in case viewer has java turned off.<br /><br />Sure it's a possibility, but really, how many people have it turned off?  What if my audience is graphic arts professionals or tech professionals?<br /><br />Any thoughts?<br /><br />Thanks]]></description>
		<pubDate>Sun, 01 Nov 2009 14:13:36 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28405</guid>
	</item>
	<item>
		<title>Jquery: Ajax Issue</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28400</link>
		<description><![CDATA[Here's a rundown of what happens.<br /><br /><ul><li> I enter my test username and password into the input fields and click "Login".</li><li> A small loader image takes the place of the login form while the server processes my login request.</li><li> The loader is then replaced with the results of the login request.</li><li> If successful, the username of the account and a logout button are presented.</li><li><b> If the logout link is clicked, nothing happens.</li><li> However, if the page is refreshed and the logout button is pressed...</b></li><li> The username and logout button are removed and replaced with a small loader image while the server processes the logout request.</li><li> The loader is then replaced with the login form.</li></ul><br /><br />What I need help with is making it so the user does not have to refresh the page in order to logout.  Any help, at all, is appreciated.<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&lt;script type=&#34;text/javascript&#34; charset=&#34;utf-8&#34;&#62;<br />$&#40;document&#41;.ready&#40;function&#40;&#41; {<br />// AJAX Login<br />&nbsp;&nbsp;&nbsp;&nbsp;$&#40;&#34;#login-form&#34;&#41;.submit&#40;function&#40;&#41; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// Password and Username Values<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// #name has to be equal to the ID value of the html field<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var unameval = $&#40;&#34;#username&#34;&#41;.val&#40;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var pwordval = $&#40;&#34;#password&#34;&#41;.val&#40;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// Spinning Loader<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$&#40;&#34;#login-form&#34;&#41;.replaceWith&#40;'&#60;div id=&#34;load&#34; class=&#34;load&#34;&#62;&#60;center&#62;&#60;img src=&#34;images/ajax-loader.gif&#34; alt=&#34;ajax spinning loader&#34; /&#62;&#60;/center&#62;&#60;/div&#62;'&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// Post Info to .php, retrieve data<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$.post&#40;&#34;user/loginProcess.php&#34;, { username&#58; unameval, password&#58; pwordval }, function&#40;data&#41; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// display result of login request<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$&#40;&#34;#load&#34;&#41;.html&#40;data&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&#41;; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return false;<br />&nbsp;&nbsp;&nbsp;&nbsp;}&#41;;<br /><br />// Ajax Logout<br />&nbsp;&nbsp; $&#40;&#34;p logout a&#34;&#41;.click&#40;function&#40;event&#41;{<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;// Spinning Loader<br />&nbsp;&nbsp;&nbsp;&nbsp;$&#40;&#34;#load&#34;&#41;.replaceWith&#40;'&#60;div id=&#34;load&#34; class=&#34;load&#34;&#62;&#60;center&#62;&#60;img src=&#34;images/ajax-loader.gif&#34; alt=&#34;ajax spinning loader&#34; /&#62;&#60;/center&#62;&#60;/div&#62;'&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;// Logout &#91;&#58;<br />&nbsp;&nbsp;&nbsp;&nbsp;$&#40;&#34;#load&#34;&#41;.load&#40;&#34;user/logout.php&#34;&#41;.html;<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;return false;<br />&nbsp;&nbsp; }&#41;;<br />}&#41;;<br />&#60;/script&#62;<!--c2--></div><!--ec2--><br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;div class=&#34;login&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;div id=&#34;anchor&#34; style=&#34;display&#58;none&#34;&#62;&#60;a href=&#34;#top&#34;&#62;Back to Top&#60;/a&#62;&#60;/div&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;?php<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&#40;isset&#40;$_SESSION&#91;'username'&#93;&#41;&#41; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo &#34;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;div id='load' class='load'&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;p&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;a href='#'&#62;My Account&#60;/a&#62; &nbsp;&nbsp;|&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt!-- Using &#60;logout&#62; tags so JQuery can Find this baby --&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;You're logged in as $username &#40;&#60;logout&#62;&#60;a href='#'&#62;Logout&#60;/a&#62;&#60;/logout&#62;&#41; &nbsp;&nbsp;|&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;a href='#'&#62;Help&#60;/a&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;/p&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;/div&#62;&#34;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}else{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;?&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;form id=&#34;login-form&#34; name=&#34;login-form&#34; method=&#34;post&#34; action=&#34;user/loginProcess.php&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;label&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;input name=&#34;username&#34; type=&#34;text&#34;&nbsp;&nbsp;class=&#34;text&#34; id=&#34;username&#34; value=&#34;login...&#34; /&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;/label&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;label&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;input name=&#34;password&#34; type=&#34;password&#34; class=&#34;text&#34; id=&#34;password&#34; value=&#34;password...&#34; /&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;/label&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;label&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;input type=&#34;image&#34; name=&#34;imageField&#34; id=&#34;imageField&#34; src=&#34;images/top_login.gif&#34; class=&#34;button_search&#34; /&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;/label&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;/form&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;?php <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;?&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;/div&#62;<!--c2--></div><!--ec2--><br />]]></description>
		<pubDate>Sun, 01 Nov 2009 10:59:51 -0500</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28400</guid>
	</item>
	<item>
		<title>Autorun.inf And Ms32dll.dll.vbs</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28396</link>
		<description><![CDATA[I've got a virus on my computer that is called the Hacked by Godzilla virus,<br /><br />I placed this here because it is a VBScript, if this is on the wrong place please move it<br /><br />does anyone know a way to get rid of this virus in a way you don't damage the computer?<br /><br />thanks anyway, <img src="http://w3schools.invisionzone.com/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />]]></description>
		<pubDate>Sat, 31 Oct 2009 14:20:46 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28396</guid>
	</item>
	<item>
		<title>Programming Logic Doubt</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28393</link>
		<description><![CDATA[Hello Everyone,<br /><br />I executed this looping logic: <br /><br />&lt;html&gt;<br />&lt;body&gt;<br /><br />&lt;script type="text/vbscript"&gt;<br />For i = 0 To 5 step 0.02<br /> document.write("The number is " & i & "&lt;br /&gt;")<br />Next<br />&lt;/script&gt;<br /><br />&lt;/body&gt;<br />&lt;/html&gt;<br /><br /><br />and i got this result:<br /><br />The number is 0<br />The number is 0.02<br />The number is 0.04<br />The number is 0.06<br />The number is 0.08<br />The number is 0.1<br />The number is 0.12<br />The number is 0.14<br />The number is 0.16<br />The number is 0.18<br />The number is 0.2<br />The number is 0.22<br />The number is 0.24<br />The number is 0.26<br />The number is 0.28<br />The number is 0.3<br />The number is 0.32<br />The number is 0.34<br />The number is 0.36<br />The number is 0.38<br />The number is 0.4<br />The number is 0.42<br />The number is 0.44<br />The number is 0.46<br />The number is 0.48<br />The number is 0.5<br />The number is 0.52<br />The number is 0.54<br />The number is 0.56<br />The number is 0.58<br />The number is 0.6<br />The number is 0.62<br />The number is 0.64<br />The number is 0.66<br />The number is 0.68<br />The number is 0.7<br />The number is 0.72<br />The number is 0.74<br />The number is 0.76<br />The number is 0.78<br />The number is 0.8<br />The number is 0.82<br />The number is 0.84<br />The number is 0.86<br />The number is 0.88<br />The number is 0.9<br />The number is 0.92<br />The number is 0.940000000000001<br />The number is 0.960000000000001<br />The number is 0.980000000000001<br />The number is 1<br />The number is 1.02<br />The number is 1.04<br />The number is 1.06<br />The number is 1.08<br />The number is 1.1<br />The number is 1.12<br />The number is 1.14<br />The number is 1.16<br />The number is 1.18<br />The number is 1.2<br />The number is 1.22<br />The number is 1.24<br />The number is 1.26<br />The number is 1.28<br />The number is 1.3<br />The number is 1.32<br />The number is 1.34<br />The number is 1.36<br />The number is 1.38<br />The number is 1.4<br />The number is 1.42<br />The number is 1.44<br />The number is 1.46<br />The number is 1.48<br />The number is 1.5<br />The number is 1.52<br />The number is 1.54<br />The number is 1.56<br />The number is 1.58<br />The number is 1.6<br />The number is 1.62<br />The number is 1.64<br />The number is 1.66<br />The number is 1.68<br />The number is 1.7<br />The number is 1.72<br />The number is 1.74<br />The number is 1.76<br />The number is 1.78<br />The number is 1.8<br />The number is 1.82<br />The number is 1.84<br />The number is 1.86<br />The number is 1.88<br />The number is 1.9<br />The number is 1.92<br />The number is 1.94<br />The number is 1.96<br />The number is 1.98<br />The number is 2<br />The number is 2.02<br />The number is 2.04<br />The number is 2.06<br />The number is 2.08<br />The number is 2.1<br />The number is 2.12<br />The number is 2.14<br />The number is 2.16<br />The number is 2.18<br />The number is 2.2<br />The number is 2.22<br />The number is 2.24<br />The number is 2.26<br />The number is 2.28<br />The number is 2.3<br />The number is 2.32<br />The number is 2.34<br />The number is 2.36<br />The number is 2.38<br />The number is 2.4<br />The number is 2.42<br />The number is 2.44<br />The number is 2.46<br />The number is 2.48<br />The number is 2.5<br />The number is 2.52<br />The number is 2.54<br />The number is 2.56<br />The number is 2.58<br />The number is 2.6<br />The number is 2.62<br />The number is 2.64<br />The number is 2.66<br />The number is 2.68<br />The number is 2.7<br />The number is 2.72<br />The number is 2.74<br />The number is 2.76<br />The number is 2.78<br />The number is 2.8<br />The number is 2.82<br />The number is 2.84<br />The number is 2.86<br />The number is 2.88<br />The number is 2.9<br />The number is 2.92<br />The number is 2.94<br />The number is 2.96<br />The number is 2.98<br />The number is 3<br />The number is 3.02<br />The number is 3.04<br />The number is 3.06<br />The number is 3.08<br />The number is 3.1<br />The number is 3.12<br />The number is 3.14<br />The number is 3.16<br />The number is 3.18<br />The number is 3.2<br />The number is 3.22<br />The number is 3.24<br />The number is 3.26<br />The number is 3.28<br />The number is 3.3<br />The number is 3.32<br />The number is 3.34<br />The number is 3.36<br />The number is 3.38<br />The number is 3.4<br />The number is 3.42<br />The number is 3.44<br />The number is 3.46<br />The number is 3.48<br />The number is 3.5<br />The number is 3.52<br />The number is 3.54<br />The number is 3.56<br />The number is 3.58<br />The number is 3.6<br />The number is 3.62<br />The number is 3.64<br />The number is 3.66<br />The number is 3.68<br />The number is 3.7<br />The number is 3.72<br />The number is 3.74<br />The number is 3.76<br />The number is 3.78<br />The number is 3.8<br />The number is 3.82<br />The number is 3.84<br />The number is 3.86<br />The number is 3.88<br />The number is 3.9<br />The number is 3.92<br />The number is 3.94<br />The number is 3.96<br />The number is 3.98<br />The number is 4<br />The number is 4.02<br />The number is 4.04<br />The number is 4.06<br />The number is 4.08<br />The number is 4.1<br />The number is 4.12<br />The number is 4.14<br />The number is 4.16<br />The number is 4.18<br />The number is 4.2<br />The number is 4.22<br />The number is 4.24<br />The number is 4.26<br />The number is 4.28<br />The number is 4.3<br />The number is 4.32<br />The number is 4.34<br />The number is 4.36<br />The number is 4.37999999999999<br />The number is 4.39999999999999<br />The number is 4.41999999999999<br />The number is 4.43999999999999<br />The number is 4.45999999999999<br />The number is 4.47999999999999<br />The number is 4.49999999999999<br />The number is 4.51999999999999<br />The number is 4.53999999999999<br />The number is 4.55999999999999<br />The number is 4.57999999999999<br />The number is 4.59999999999999<br />The number is 4.61999999999999<br />The number is 4.63999999999999<br />The number is 4.65999999999999<br />The number is 4.67999999999999<br />The number is 4.69999999999999<br />The number is 4.71999999999999<br />The number is 4.73999999999999<br />The number is 4.75999999999999<br />The number is 4.77999999999999<br />The number is 4.79999999999999<br />The number is 4.81999999999999<br />The number is 4.83999999999998<br />The number is 4.85999999999998<br />The number is 4.87999999999998<br />The number is 4.89999999999998<br />The number is 4.91999999999998<br />The number is 4.93999999999998<br />The number is 4.95999999999998<br />The number is 4.97999999999998<br />The number is 4.99999999999998<br /><br /><br />Can anyone please explain this discrepancy??<br /><br />This is an observation with any programming language, not specific to vbScript.]]></description>
		<pubDate>Sat, 31 Oct 2009 11:11:35 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28393</guid>
	</item>
	<item>
		<title>How To Command Java Script With Url</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28391</link>
		<description><![CDATA[For a sample :<br />I have my website, which the URL is <u>http://www.mytestsite.com/</u> &lt; just example not my real Site URL<br />and in The file "index.php", which contain JavaScript command function such as "onHoverTest()" or "clickTest()"<br /><br />the function : <!--coloro:#2E8B57--><span style="color:#2E8B57"><!--/coloro-->onHoverTest()<!--colorc--></span><!--/colorc--> will run its process, when mouse pointer is hover on Web Object (picture, link, etc)<br />and function : <!--coloro:#2E8B57--><span style="color:#2E8B57"><!--/coloro-->clickTest()<!--colorc--></span><!--/colorc--> will run its process, when user click the Web Object (picture, link, etc)<br /><br />So, this is my questions:<br />1. If some times I want to run one of all functions process at the page start , Without processing condition.<br /> - Can I add some command to run script on the address bar after normal URL  <!--coloro:#006400--><span style="color:#006400"><!--/coloro-->(Eg. <u>http://www.mytestsite.com/ <i>"add command for runnig script here"</i></u> ) or anyway?<br /><!--colorc--></span><!--/colorc--><br />2. If I want to add some JavaScript command(that have not in the "index.php" file)<br /> - can I add it using addressbar after URL <!--coloro:#006400--><span style="color:#006400"><!--/coloro-->(Eg. <u>http://www.mytestsite.com/ <i>"add new JavaCript here"</i></u>) or anyway?<!--colorc--></span><!--/colorc--><br /><br />Thanks you all for answers<br />If you want more information about my questions Please Reply to ask for it <img src="http://w3schools.invisionzone.com/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /><br /><br /><br />PS.<br />I'm not good in using English Language.<br />if I use unproper word, Please forgive me]]></description>
		<pubDate>Sat, 31 Oct 2009 07:37:48 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28391</guid>
	</item>
	<item>
		<title>Javascript Esercise</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28390</link>
		<description><![CDATA[Hi, i am trying to solve this exercise:<br /><br />Write a script who asks numerical series. <br />When the user inserts the keywords "end", it stops.<br />If the user inserts an invalid value alert something.<br />Confirm before to calculate the arithmetic mean.<br />Print the result in a table.<br /><br />this is my code:<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var stop=&#34;end&#34;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;num=prompt&#40;&#34;Inserisci un numero&#34;,&#34;&#34;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;document.write&#40;num&#41;;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var numero=isNaN&#40;num&#41;;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;while&#40;num!=stop&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;num=prompt&#40;&#34;Inserisci un numero&#34;,&#34;&#34;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;document.write&#40;num+ &#34;&#60;br&#62;&#34;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if &#40;numero==true&#41; {&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;alert&#40;&#34;è possibile inserire solo interi&#34;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<!--c2--></div><!--ec2-->]]></description>
		<pubDate>Sat, 31 Oct 2009 06:05:57 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28390</guid>
	</item>
	<item>
		<title>Validating Generated Form Elements?</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28375</link>
		<description><![CDATA[Hi guys,<br /><br />I've been creating this upload page which generates hidden form elements to store data in order to be submitted and processed via php.<br />Before I got to that stage I used the gen validator script and that was all fine before because the design was different before I took over.<br /><br />However having reached this stage I realised that with so many elements that can potentially be on the page, I didn't want to define every possible field.<br />Like so far I've set the maximum file upload to 12, and if I write out all the possible generated fields in the script I'd end up with probably <br />+100 lines of code just for the sake of validating.<br /><br />So I was thinking of possibly sorting these form elements IDs into arrays and link them to the validation parts.<br />So my idea is something like<br /><br />var myTitles=new Array();<br />myTitles[0]="singletitle1";<br />myTitles[1]="singletitle2";<br />myTitles[2]="singletitle3";<br /><br />var myyear=new Array();<br />myTitles[0]="1998";<br /><br />etc...<br /><br />And then linking the validation parts with myTitles because all the IDs are stored in there.<br />I was just wondering if this was a good idea and if it's possible because the idea seems to make sense in my strange head.<br />Or if you have a better idea how I can validate these generated elements I'm open to suggestions! Many thanks in advance!<br />Or a smarter thing to do is possibly use loops?<br /><br />For your reference:<br /><br /><a href="http://cpulse.dmu.ac.uk/upload/Alternative%204/albupload.html" target="_blank">http://cpulse.dmu.ac.uk/upload/Alternative.../albupload.html</a>]]></description>
		<pubDate>Fri, 30 Oct 2009 07:08:52 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28375</guid>
	</item>
	<item>
		<title>Please Give Clarification Of Upload Ways</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28374</link>
		<description><![CDATA[Hello all!<br />Can you please help to find answers on my questions?<br />it is known that the Internet has some ways to submit a form without page reloading.<br />One of them is iframe creation inside a page and assign onload callback to react for response of a server script.<br /><br />Here is an example of iframe creation which I can find from the Internet:<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->function createIframe&#40;...&#41; {<br />...<br />var n = 'f' + Math.floor&#40;Math.random&#40;&#41; * 99999&#41;;<br />var d = document.createElement&#40;'DIV'&#41;;<br />d.innerHTML = '&#60;iframe style=&#34;display&#58;none&#34; src=&#34;about&#58;blank&#34; id=&#34;'+n+'&#34; name=&#34;'+n+'&#34; onload=&#34;onResponse&#40;this&#41;&#34;&#62;&#60;/iframe&#62;';<!--c2--></div><!--ec2--><br /><br />1. Above code is called on each submit. So why there is a need to create one iframe per one submit?<br />2. in case I need one iframe can I declare it using original html tag and do not use javascript? Why javascript is better in case is better?<br />like this<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;iframe id=&#34;response&#34; style=&#34;display&#58;none&#34; name=&#34;response&#34; src=&#34;about&#58;blank&#34; onload=&#34;onResponse&#40;this&#41;&#34;&#62;<br />&#60;/iframe&#62;<!--c2--></div><!--ec2--><br />May be latest question seems strange but I wounder why a lot of examples create iframes by javascript. I guess write html code simpler than javascript one.<br />]]></description>
		<pubDate>Fri, 30 Oct 2009 04:32:56 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28374</guid>
	</item>
	<item>
		<title>Making Ajax-website Compatibel</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28372</link>
		<description><![CDATA[Ok I was dealing with the following problem all day long:<br /><br />I succesfully made my adminpanel and it works in both non-javascript browsers and javascript-enabled browsers. I also use &lt;noscript&gt; to hide parts of text and javascript coding that are only useable to javascript-enabled users.<br /><br />Soon I started to realise that &lt;noscript&gt; wasn't enough to hide javascript functions so I started using a javascript function that switches between display:none; and display:block; using DOM:<br /><br />&lt;div id="javascriptEnabled"&gt;Een stuk tekst&lt;/div&gt;<br />&lt;div id="javascriptDisabled"&gt;Een stuk tekst&lt;/div&gt;<br /><br />It seem to work out for me when I stumbled on the next problem:<br />My Serversided php code makes everything in functions. When a function is just for processing, no output will be given, but when it is a function that returns output I have to include a header.php and a footer.php<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->function withoutput&#40;&#41;<br />{<br />&nbsp;&nbsp;include&#40;&#34;header.php&#34;&#41;;<br />&nbsp;&nbsp;<br />&nbsp;&nbsp;echo &#34;This is a testpage&#34;;<br /><br />&nbsp;&nbsp;include&#40;&#34;footer.php&#34;&#41;;<br /><br />}<!--c2--></div><!--ec2--><br /><br />I have made my entire website with this layout and it is similar to the phpnuke philosophy. I call every page with a switch:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->switch&#40;$task&#41; <br />{<br />&nbsp;&nbsp;case &#34;withoutput&#34;&#58;<br />&nbsp;&nbsp;&nbsp;&nbsp;withoutput&#40;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;break;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;default&#58;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;index&#40;&#41;;<br />}<!--c2--></div><!--ec2--><br /><br />No the problem:<br /><br />When I want to do the same using AJAX it still works. I just send the output of the function to a &lt;div="MainPage"&gt;&lt;/div&gt; using innerHTML. Now in this case include("header.php"); and include("footer.php"); are not needed since there will be multiple headers in that case.<br /><br />I tryed making an AJAX code that checks for enabled javascript sends back the results to a php script on a server witch places a cookie that says: javascript=1 (or javascript is enabled) but every time the page still has to be refreshed in order for the cookie to become active.<br /><br />Can anone please help me with this?]]></description>
		<pubDate>Thu, 29 Oct 2009 19:56:53 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28372</guid>
	</item>
	<item>
		<title>Javascript Getting Binary Blob Of Input File Data</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28359</link>
		<description><![CDATA[Is there anyway to do this in Chrome? I see in Firefox there are APIs available which work. I feel like I'm looking in the wrong place... What I would like is a file upload that javascript can read without having to post it to php and retrieve it back.<br /><br />getAsDataURL exists in FF and not in Chrome, and I'm looking for something that works for chrome.<br /><br />Thanx,]]></description>
		<pubDate>Wed, 28 Oct 2009 20:58:01 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28359</guid>
	</item>
	<item>
		<title><![CDATA[Error When Trying To View The 'preview' Tab In Ms Visual Studio]]></title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28350</link>
		<description><![CDATA[My computer was updated yesterday with the latest MS Vulnerability patch (Microsoft Vulnerability update /aka...MS09-054 Cumulative Security Update) So, today while working in Microsoft Visual Studio, I was able to view the 'Data' tab contents of the report and the 'Layout' tab of the report. However, when I clicked on the 'Preview' tab, I received an error message...<br /><div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>An error occurred during local report processing. The definition of the report '/Catalog ID Inventory Items' is invalid. An unexpected error occurred in Report Processing. Cannot execute a program. The command being executed was "c:&#092;WINDOWS&#092;Microsoft.NET&#092;Framework&#092;v2.0.50727&#092;vbc.exe" /noconfig @'C:&#092;Documents and Settings&#092;username&#092;Local Settings&#092;Temp&#092;uzuwffro.cmdline".</div><br /><br />I've spent hours searching for related items on the Internet to see if there was a solution to the problem or if anyone else has experienced this same type of issue, but unfortunately, no results found that I could find.<br /><br />If anyone has any insight as to how to resolve this issue, or any suggestions, please let me know as soon as possible so that I can move on with my work.<br /><br />Thanks!<br /><br />]]></description>
		<pubDate>Wed, 28 Oct 2009 14:31:12 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28350</guid>
	</item>
	<item>
		<title>Setattribute Preferred But What About Style Elements?</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28347</link>
		<description><![CDATA[Is there a more appropriate way to set just a single style attribute? I want to bold an element which has a previous style already set. Currently I use input.style.fontWeight. Feels like the only correct way to do this, but I am wondering whether this is the correct way?<br /><br />Perhaps a function like setSubAttribute?<br /><br />Could you also explain why fontWeight is font-weight sometimes? What's the rule for those naming conventions? The string for style contains font-weight, the setAttribute requires font-weight, and the input.style.fontWeight is correct.<br /><br />Thanx,<br />]]></description>
		<pubDate>Wed, 28 Oct 2009 10:30:27 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28347</guid>
	</item>
	<item>
		<title>Executing Code After Submitting A Form</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28338</link>
		<description><![CDATA[Just a quick question, when you submit an html form via document.form.submit() can you still execute code after that?  Or possibly, submit to a new window?  I know there's a target attribute for forms, but it's deprecated so is there another way?<br /><br />Thanks,<br />jkloth]]></description>
		<pubDate>Tue, 27 Oct 2009 17:27:46 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28338</guid>
	</item>
	<item>
		<title>Stack Overflow At Line: 0</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28336</link>
		<description><![CDATA[I am making an imageviewer that loads an image throug the window.location.search but when the image is loaded I get an alert that says:<br /><br />Stack overflow at line: 0<br /><br /><br />window.location.search is ?img=210&year=2007-2008&type=big<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->function getImage&#40;&#41;<br />{<br />var img=window.location.search.substr&#40;1&#41;.split&#40;&#34;&&#34;&#41;;<br />var img=image&#91;0&#93;.split&#40;&#34;=&#34;&#41;&#91;1&#93;;<br />var year=image&#91;1&#93;.split&#40;&#34;=&#34;&#41;&#91;1&#93;;<br />var type=image&#91;2&#93;.split&#40;&#34;=&#34;&#41;&#91;1&#93;;<br />var src=&#34;&#46;&#46;/&#34; + year + &#34;/&#34; + type + &#34;/&#34; + img + &#34;.bmp&#34;;<br /><br />return src;<br />}<!--c2--></div><!--ec2--><br /><br />the .bmp is because 1: its curently in my pc<br />and 2: jpg, gif, ... doesn't work]]></description>
		<pubDate>Tue, 27 Oct 2009 15:30:15 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28336</guid>
	</item>
	<item>
		<title>Jquery $(document).ready</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28334</link>
		<description><![CDATA[I'm working on a simple news ticker that is supposed to just swap an image and text blurb out.  I've got the onClick working for the story headers, but I can't get the auto-change working.<br />I ripped a bunch of this out of a different jQuery tutorial that didn't quite apply, so I've probably messed that up somehow.<br />Right now Safari gives me a "TypeError: Result of expression '$' [undefined] is not a function." error at that line in the js file (but allows other functions in the file to run just fine) while FF seems to just ignore the entire file.<br /><br />Safari is finding the error at the first line of this (the $(document) line), and if I delete everything within the function, it is still getting the error, so I'm not sure what is wrong.  jQuery is being included elsewhere.<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->$&#40;document&#41;.ready&#40;function&#40;&#41; {<br />&nbsp;&nbsp;&nbsp;&nbsp;var speed = 5000;<br />&nbsp;&nbsp;&nbsp;&nbsp;var run = setInterval&#40;'ticker&#40;0&#41;', speed&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;$&#40;'#news_content'&#41;.hover&#40;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function&#40;&#41; {&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;clearInterval&#40;run&#41;;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function&#40;&#41; {&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;run = setInterval&#40;'ticker&#40;0&#41;', speed&#41;;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;$&#40;'#links a'&#41;.click&#40;function &#40;&#41; {&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//stop the slide show&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;clearInterval&#40;run&#41;;&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//resume the slideshow&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;run = setInterval&#40;'ticker&#40;0&#41;', speed&#41;;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return false;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;}&#41;;<br />}&#41;;<!--c2--></div><!--ec2--><br /><br />I'd take another simpler solution to this (auto-change script) as well if you know of one.]]></description>
		<pubDate>Tue, 27 Oct 2009 11:57:28 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28334</guid>
	</item>
	<item>
		<title>Passing From On Ajax Div To Another</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28333</link>
		<description><![CDATA[I am having trouble trying to figure out how to update my sidebar using ajax.<br /><br />Right now I have an open button on my sidebar that loads up some php in another div. The SQL selected in this div is supposed to the propagate back to the div containing the sidebar.<br /><br />Any ideas?]]></description>
		<pubDate>Tue, 27 Oct 2009 11:38:30 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28333</guid>
	</item>
	<item>
		<title>Textarea Control</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28328</link>
		<description><![CDATA[Hey all,<br /><br />I have a script that limit characters and lines entered by users in a textarea..<br /><br />i want instead of throwing that alert message to jump to the next line and the user can continue writing, here is the script:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&lt;script type=&#34;text/javascript&#34;&#62;<br /><br />var alert_title='Input Restriction';<br /><br />function limitTextarea&#40;el,maxLines,maxChar&#41;{<br />&nbsp;&nbsp;&nbsp;&nbsp;if&#40;!el.x&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;el.x=uniqueInt&#40;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;el.onblur=function&#40;&#41;{clearInterval&#40;window&#91;'int'+el.x&#93;&#41;}<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;window&#91;'int'+el.x&#93;=setInterval&#40;function&#40;&#41;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var lines=el.value.replace&#40;/&#092;r/g,''&#41;.split&#40;'&#092;n'&#41;,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;i=lines.length,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lines_removed,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;char_removed;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&#40;maxLines&&i&#62;maxLines&#41;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;alert&#40;'You can not enter&#092;nmore than '+maxLines+' lines'&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lines=lines.slice&#40;0,maxLines&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lines_removed=1<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&#40;maxChar&#41;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;i=lines.length;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;while&#40;i--&gt;0&#41;if&#40;lines&#91;i&#93;.length&#62;maxChar&#41;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lines&#91;i&#93;=lines&#91;i&#93;.slice&#40;0,maxChar&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; char_removed=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;if&#40;char_removed&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;alert&#40;'You can not enter more&#092;nthan '+maxChar+' characters per line'&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&#40;char_removed||lines_removed&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;el.value=lines.join&#40;'&#092;n'&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},50&#41;;<br />}<br /><br />function uniqueInt&#40;&#41;{<br />&nbsp;&nbsp;&nbsp;&nbsp;var num,maxNum=100000;<br />&nbsp;&nbsp;&nbsp;&nbsp;if&#40;!uniqueInt.a||maxNum&#60;=uniqueInt.a.length&#41;uniqueInt.a=&#91;&#93;;<br />&nbsp;&nbsp;&nbsp;&nbsp;do num=Math.ceil&#40;Math.random&#40;&#41;*maxNum&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;while&#40;uniqueInt.a.hasMember&#40;num&#41;&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;uniqueInt.a&#91;uniqueInt.a.length&#93;=num;<br />&nbsp;&nbsp;&nbsp;&nbsp;return num<br />}<br /><br />Array.prototype.hasMember=function&#40;testItem&#41;{<br />var i=this.length;<br />while&#40;i--&gt;0&#41;if&#40;testItem==this&#91;i&#93;&#41;return 1;<br />return 0<br />};<br />&#60;/script&#62;<!--c2--></div><!--ec2--><br /><br /><br />The HTML<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;textarea onFocus=&#34;limitTextarea&#40;this,5,40&#41;&#34; wrap=&#34;soft&#34;&#62;&#60;/textarea&#62;<!--c2--></div><!--ec2--><br /><br />please help!]]></description>
		<pubDate>Tue, 27 Oct 2009 01:26:14 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28328</guid>
	</item>
	<item>
		<title>Write Something From Radio Button Choice</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28312</link>
		<description><![CDATA[I'm trying to get a reaction from a radio button choice: If a person chooses 'Single', nothing happens. If they choose 'Married', an input box appears to allow them to enter their spouse's name.<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;html&#62;<br />&#60;head&#62;<br />&lt;script type=&#34;text/javascript&#34;&#62;<br />&nbsp;&nbsp;{<br />&nbsp;&nbsp;document.getElementById&#40;&#34;answer&#34;&#41;;<br />&nbsp;&nbsp;}<br />&nbsp;&nbsp;<br />&nbsp;&nbsp;if &#40;value = married&#41;<br />&nbsp;&nbsp;{<br />&nbsp;&nbsp;document.write&#40;&#34;Spouse's Full Name&#58; &#60;input type=&#34;text&#34; size=&#34;20&#34;&#62;&#34;&#41;;<br />&nbsp;&nbsp;}<br />&#60;/script&#62;<br />&#60;/head&#62;<br />&#60;body&#62;<br />&#60;form&#62;<br />Your Marital Status&#58; <br />&#60;input type=&#34;radio&#34; name=&#34;answer&#34; onclick=&#34;check&#40;this.value&#41;&#34; value=&#34;single&#34;&#62;Single<br />&#60;input type=&#34;radio&#34; name=&#34;answer&#34; onclick=&#34;check&#40;this.value&#41;&#34; value=&#34;married&#34;&#62;Married&#60;br /&#62;<br />&#60;/form&#62;<br />&#60;/body&#62;<br />&#60;/html&#62;<!--c2--></div><!--ec2-->]]></description>
		<pubDate>Mon, 26 Oct 2009 10:52:20 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28312</guid>
	</item>
	<item>
		<title><![CDATA[Event Return False Contines To "bubble"]]></title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28306</link>
		<description><![CDATA[Greetings again!<br /><br />I'm having trouble cancelling an onclick event from executing in javascript when I try to pass parameters to the onclick function.  What I'm attempting to accomplish is to have an &lt;a&gt; perform some AJAX functions if the user has javascript enabled, otherwise process the &lt;a&gt; normally.  If I don't pass any parameters, this block works fine;<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&lt;script...&#62;<br />function changePage&#40;&#41;<br />{<br />&nbsp;&nbsp; alert&#40;&#34;Changing Page&#34;&#41;;<br />&nbsp;&nbsp; return false;<br />}<br /><br />document.getElementById&#40;'p1'&#41;.onclick = changePage;<br />&#60;/script&#62;<br /><br />&#60;html...&#62;<br />&#60;ul id=&#34;nav_menu&#34;&#62;<br />&#60;li id=&#34;menu1&#34;&#62;&#60;a id=&#34;p1&#34; href=&#34;index.php?p=p1&#34;&#62;&#60;/a&#62;&#60;/li&#62;<br />...<br />&#60;/html&#62;<!--c2--></div><!--ec2--><br /><br />However if I want to pass a parameter to my changePage function;<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&lt;script...&#62;<br />function changePage&#40;pageNum&#41;<br />{<br />&nbsp;&nbsp; alert&#40;pageNum&#41;;<br />&nbsp;&nbsp; return false;<br />}<br /><br />document.getElementById&#40;'p1'&#41;.onclick = function&#40;&#41;{changePage&#40;'p1'&#41;};<br />&#60;/script&#62;<br /><br />&#60;html...&#62;<br />&#60;ul id=&#34;nav_menu&#34;&#62;<br />&#60;li id=&#34;menu1&#34;&#62;&#60;a id=&#34;p1&#34; href=&#34;index.php?p=p1&#34;&#62;&#60;/a&#62;&#60;/li&#62;<br />...<br />&#60;/html&#62;<!--c2--></div><!--ec2--><br /><br />The alert window displays, but then continues to redirect the page to the link.  Can someone point out what I'm missing?<br /><br />Thanks]]></description>
		<pubDate>Sun, 25 Oct 2009 16:09:55 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28306</guid>
	</item>
	<item>
		<title>Passing Object B/w Javascript And Php</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28300</link>
		<description><![CDATA[I have been looking around and I can't seem to find any simple way of passing arrays of objects between js and php. I have already started encoding my object array into field=val&.... post arrays and I'm passing the information this way.<br /><br />Is there a better way? I've read about XML but I don't see any native support in both js and php for encoding and decoding. The same issue exists for JSON.<br /><br />What am I missing?<br /><br />What I'd most like is to have an object itemArray and pass it string encoded to myXHR.send() function. And on callback have some function to decode xhr.responseText back to an object. Does something standard exist?<br /><br />Thanx,]]></description>
		<pubDate>Sat, 24 Oct 2009 22:06:53 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28300</guid>
	</item>
	<item>
		<title>Changing Just The Table Background Color</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28295</link>
		<description><![CDATA[I have used JavaScript to change the document bgcolor of a web page and it works fine. BUT I now have my page formatted with a table about 800 pixels centered in the page. The problem is I do not wish to change the bgcolor of the whole page now but just the table. I am a novice at JavaScript, and have tried several things, including css and z-index to no avail. Here is the code I use now:<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;table border=&#34;1&#34; cellpadding=&#34;0&#34; cellspacing=&#34;1&#34; bordercolor=&#34;#000000&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;tr&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;td bgcolor=&#34;#000000&#34;&#62;&#60;a href=&#34;java script&#58;void&#40;0&#41;&#34; onmouseover=&#34;document.bgColor='#000000',document.fgColor='#ffffff'&#34;&#62;&#60;img src=&#34;&#46;&#46;/block.gif&#34; border=&#34;0&#34; width=&#34;25&#34; height=&#34;25&#34; /&#62;&#60;/a&#62;&#60;/td&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;td bgcolor=&#34;#000080&#34;&#62;&#60;a href=&#34;java script&#58;void&#40;0&#41;&#34; onmouseover=&#34;document.bgColor='#000080',document.fgColor='#ffffff'&#34;&#62;&#60;img src=&#34;&#46;&#46;/block.gif&#34; border=&#34;0&#34; width=&#34;25&#34; height=&#34;25&#34; /&#62;&#60;/a&#62;&#60;/td&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;td bgcolor=&#34;#0000FF&#34;&#62;&#60;a href=&#34;java script&#58;void&#40;0&#41;&#34; onmouseover=&#34;document.bgColor='#0000FF',document.fgColor='#ffffff'&#34;&#62;&#60;img src=&#34;&#46;&#46;/block.gif&#34; border=&#34;0&#34; width=&#34;25&#34; height=&#34;25&#34; /&#62;&#60;/a&#62;&#60;/td&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;td bgcolor=&#34;#4B0082&#34;&#62;&#60;a href=&#34;java script&#58;void&#40;0&#41;&#34; onmouseover=&#34;document.bgColor='#4B0082',document.fgColor='#ffffff'&#34;&#62;&#60;img src=&#34;&#46;&#46;/block.gif&#34; border=&#34;0&#34; width=&#34;25&#34; height=&#34;25&#34; /&#62;&#60;/a&#62;&#60;/td&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;td bgcolor=&#34;#800080&#34;&#62;&#60;a href=&#34;java script&#58;void&#40;0&#41;&#34; onmouseover=&#34;document.bgColor='#800080',document.fgColor='#ffffff'&#34;&#62;&#60;img src=&#34;&#46;&#46;/block.gif&#34; border=&#34;0&#34; width=&#34;25&#34; height=&#34;25&#34; /&#62;&#60;/a&#62;&#60;/td&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;td bgcolor=&#34;#FF00FF&#34;&#62;&#60;a href=&#34;java script&#58;void&#40;0&#41;&#34; onmouseover=&#34;document.bgColor='#FF00FF',document.fgColor='#000000'&#34;&#62;&#60;img src=&#34;&#46;&#46;/block.gif&#34; border=&#34;0&#34; width=&#34;25&#34; height=&#34;25&#34; /&#62;&#60;/a&#62;&#60;/td&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;td bgcolor=&#34;#00FFFF&#34;&#62;&#60;a href=&#34;java script&#58;void&#40;0&#41;&#34; onmouseover=&#34;document.bgColor='#00FFFF',document.fgColor='#000000'&#34;&#62;&#60;img src=&#34;&#46;&#46;/block.gif&#34; border=&#34;0&#34; width=&#34;25&#34; height=&#34;25&#34; /&#62;&#60;/a&#62;&#60;/td&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;td bgcolor=&#34;#008080&#34;&#62;&#60;a href=&#34;java script&#58;void&#40;0&#41;&#34; onmouseover=&#34;document.bgColor='#008080',document.fgColor='#ffffff'&#34;&#62;&#60;img src=&#34;&#46;&#46;/block.gif&#34; border=&#34;0&#34; width=&#34;25&#34; height=&#34;25&#34; /&#62;&#60;/a&#62;&#60;/td&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;td bgcolor=&#34;#008000&#34;&#62;&#60;a href=&#34;java script&#58;void&#40;0&#41;&#34; onmouseover=&#34;document.bgColor='#008000',document.fgColor='#ffffff'&#34;&#62;&#60;img src=&#34;&#46;&#46;/block.gif&#34; border=&#34;0&#34; width=&#34;25&#34; height=&#34;25&#34; /&#62;&#60;/a&#62;&#60;/td&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;td bgcolor=&#34;#00FF00&#34;&#62;&#60;a href=&#34;java script&#58;void&#40;0&#41;&#34; onmouseover=&#34;document.bgColor='#00FF00',document.fgColor='#000000'&#34;&#62;&#60;img src=&#34;&#46;&#46;/block.gif&#34; border=&#34;0&#34; width=&#34;25&#34; height=&#34;25&#34; /&#62;&#60;/a&#62;&#60;/td&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;td bgcolor=&#34;#FFFF00&#34;&#62;&#60;a href=&#34;java script&#58;void&#40;0&#41;&#34; onmouseover=&#34;document.bgColor='#FFFF00',document.fgColor='#000000'&#34;&#62;&#60;img src=&#34;&#46;&#46;/block.gif&#34; border=&#34;0&#34; width=&#34;25&#34; height=&#34;25&#34; /&#62;&#60;/a&#62;&#60;/td&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;td bgcolor=&#34;#FFA500&#34;&#62;&#60;a href=&#34;java script&#58;void&#40;0&#41;&#34; onmouseover=&#34;document.bgColor='#FFA500',document.fgColor='#000000'&#34;&#62;&#60;img src=&#34;&#46;&#46;/block.gif&#34; border=&#34;0&#34; width=&#34;25&#34; height=&#34;25&#34; /&#62;&#60;/a&#62;&#60;/td&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;td bgcolor=&#34;#FF0000&#34;&#62;&#60;a href=&#34;java script&#58;void&#40;0&#41;&#34; onmouseover=&#34;document.bgColor='#FF0000',document.fgColor='#000000'&#34;&#62;&#60;img src=&#34;&#46;&#46;/block.gif&#34; border=&#34;0&#34; width=&#34;25&#34; height=&#34;25&#34; /&#62;&#60;/a&#62;&#60;/td&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;/tr&#62;&#60;/table&#62;<!--c2--></div><!--ec2--><br />Is there a way to change "document" to "table" using JavaScript? Oh the block.gif is just a 2 pixel transparent gif]]></description>
		<pubDate>Sat, 24 Oct 2009 13:10:21 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28295</guid>
	</item>
	<item>
		<title>Regexp Problem.</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28293</link>
		<description><![CDATA[I don't know why isn't my code not working. <br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->var str=&#34;doamin.com/index.php?something=bah&#34;;<br />var patt=new RegExp&#40;&#34;?&#34;&#41;;<br />var pat=new RegExp&#40;&#34;&&#34;&#41;;<br /><br />document.write&#40;&#34;Test if we find &#34; + patt + &#34; in &#34; + str + &#34;&#58; &#34;&#41;<br /><br />if &#40;patt.test&#40;str&#41;==true&#41;<br />{<br />document.write&#40;&#34;Match found!&#34;&#41;;<br />}<br />else if&#40;pat.test&#40;str&#41;==true&#41;<br />{<br />document.write&#40;&#34;Match found!&#34;&#41;;<br />}<br />else<br />{<br />document.write&#40;&#34;Match not found&#34;&#41;;<br />}<!--c2--></div><!--ec2-->]]></description>
		<pubDate>Sat, 24 Oct 2009 12:32:17 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28293</guid>
	</item>
	<item>
		<title>How To Keep Certain Text Selected/focussed In Textarea</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28290</link>
		<description><![CDATA[i use the following function in my custom cms to highlight text and turn it into an anchor link<br /><br />it works, however once its done the cursor seems to go to the start of the line in the textarea - i want to still be highlighting the text or at least have the cursor near it, would save me loads of time thanks!!!!!<br /><br /><br /><div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>function CreateALink(xId) {<br />			// code for Mozilla  <br />		   var textarea = document.getElementById(xId);  <br />		   <br />			var len = textarea.value.length;  <br />			var start = textarea.selectionStart;  <br />			var end = textarea.selectionEnd;  <br />			var sel = textarea.value.substring(start, end);  <br />		   <br />			// This is the selected text and alert it  <br />			//alert(sel);  <br />		   <br />		   var replace = '&lt;a href=&#092;"&#092;" title=&#092;"' + sel + '&#092;"&gt;' + sel + '&lt;/a&gt;';  <br />		   <br />		   // Here we are replacing the selected text with this one  <br />		  textarea.value =  textarea.value.substring(0,start) + replace + textarea.value.substring(end,len);<br />						<br />		}</div>]]></description>
		<pubDate>Sat, 24 Oct 2009 07:37:47 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28290</guid>
	</item>
	<item>
		<title>Ajax Post And Get</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28277</link>
		<description><![CDATA[Hey people I am new on this forum and I signed in with the hope to know more about AJAX. My goal is to make a website that is completely controlled by AJAX. So I started experimenting with some tutorials. (all from w3schools) <br /><br /><b>The first function I successfully made was the GetXmlHttpObject(). Nothing difficult, just copy/paste. </b><br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&lt;script language='JavaScript'&#62;<br />&lt!--<br />function GetXmlHttpObject&#40;&#41;<br />{<br />&nbsp;&nbsp;var xmlhttp;<br />&nbsp;&nbsp;if &#40;window.XMLHttpRequest&#41;<br />&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;// code for IE7+, Firefox, Chrome, Opera, Safari<br />&nbsp;&nbsp;&nbsp;&nbsp;xmlhttp=new XMLHttpRequest&#40;&#41;;<br />&nbsp;&nbsp;}<br />&nbsp;&nbsp;else if &#40;window.ActiveXObject&#41;<br />&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;// code for IE6, IE5<br />&nbsp;&nbsp;&nbsp;&nbsp;xmlhttp=new ActiveXObject&#40;&#34;Microsoft.XMLHTTP&#34;&#41;;<br />&nbsp;&nbsp;}<br />&nbsp;&nbsp;else<br />&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;alert&#40;&#34;Your browser does not support XMLHTTP!&#34;&#41;;<br />&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;return xmlhttp;<br />}<br />--&gt;<br />&#60;/script&#62;<!--c2--></div><!--ec2--><br /><br /><br /><b>The second function was also not a very big deal: </b><br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&lt;script language='JavaScript'&#62;<br />&lt!--<br />//Send data to server, handle server-side scripts and send back data<br />function UpdateSSGET&#40;url, functionname&#41;<br />{<br />&nbsp;&nbsp;xmlhttp=GetXmlHttpObject&#40;&#41;;<br />&nbsp;&nbsp;xmlhttp.onreadystatechange= function&#40;&#41; <br />&nbsp;&nbsp;{ <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var test = functionname;<br />&nbsp;&nbsp;&nbsp;&nbsp;eval&#40;test + '&#40;url&#41;'&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;};<br />&nbsp;&nbsp;xmlhttp.open&#40;&#34;GET&#34;,url,true&#41;;<br />&nbsp;&nbsp;xmlhttp.send&#40;null&#41;;&nbsp;&nbsp;<br />}<br />//--&gt;<br />&#60;/script&#62;<!--c2--></div><!--ec2--><br /><br />The above code sends the given url to the server-sided script and returns a output to the given function-name:<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->UpdateSSGET&#40;'index.php?key1=value1&key2=value2', 'ClientSideFunction'&#41;;<!--c2--></div><!--ec2--><br /><b><br />for me the above codes works perfectly. Now I tried the same with the POST version:</b><br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&lt;script language='JavaScript'&#62;<br />&lt!--<br />function TestPost&#40;sendValues, url&#41;<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;alert&#40;&#34;Working alert function&#34;&#41;; //The function is called because it gives this warning. Also both function values are send in the correct way<br />&nbsp;&nbsp;xmlhttp=GetXmlHttpObject&#40;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;xmlhttp.onreadystatechange= function&#40;&#41; <br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;if&#40;xmlhttp.readyState == 4&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;alert&#40;&#34;tester&#34;&#41;; //This alert refuses to show up<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;};&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;xmlHttp.open&#40;&#34;POST&#34;, url, true&#41;;<br />&nbsp;&nbsp;xmlHttp.setRequestHeader&#40;&#34;Content-type&#34;, &#34;application/x-www-form-urlencoded&#34;&#41;;<br />&nbsp;&nbsp;xmlHttp.send&#40;Sendvalues&#41;;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;<br />}<br /><br />//--&gt;<br />&#60;/script&#62;<!--c2--></div><!--ec2--><br /><br />The above script is called and also the variables: URL and sendValues are given in the correct way. Also the server-sided page exists. I made a file called test.php. Inside was a script:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;?php echo &#34;test&#34;; ?&#62;<!--c2--></div><!--ec2--><br /><br />And I called the function: <br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->TestPost&#40;'test1=testvalue&test2=testvalue2', 'test.php'&#41;<!--c2--></div><!--ec2--><br /><br />No matter what I try, it looks like the function not even tried to connect to the server-sided 'test.php'. With a little help from searching trough this forum, I installed Firebug. When I look at the requests, all my $_GET requests (connected trough my UpdateSSGET function) are visible, to bad it does not show any form of requesting test.php.<br /><br />I tried to make this explanation as clear as possible so I hope that you people are able to help me.]]></description>
		<pubDate>Fri, 23 Oct 2009 13:59:24 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28277</guid>
	</item>
	<item>
		<title>Changing Text/labels For Checkboxes</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28253</link>
		<description><![CDATA[This relates directly to my previous topic <a href="http://w3schools.invisionzone.com/index.php?showtopic=28227" target="_blank">here</a>. I couldn't find another topic to answer this question.<br /><br />I'm resorting a list of checkboxes. I've done everything I need to do except change the text displayed with the checkbox. I thought it would be more straight forward. I think I know how to get it to work using some examples I found, but I'd like to know the <i>proper</i> way to do it.<br /><br />To start, I don't think I'm defining the checkbox and label properly. I'm using the common shortcut of just putting the text after the &lt;INPUT&gt; tag. I think I should use the &lt;LABEL&gt; tag. My checkboxes are all named the same thing. Does this mean that I can't use the "FOR" attribute on the &lt;LABEL&gt; tag? How do I find which label goes with the checkbox that I'm changing? Do I just assume that the label is the next element on the form? Or is there a better way to do this?<br /><br />Thank you in advance!]]></description>
		<pubDate>Thu, 22 Oct 2009 14:23:27 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28253</guid>
	</item>
	<item>
		<title>Problem Passing Variable In Function</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28251</link>
		<description><![CDATA[I am trying to write a function that alerts a user based on their input. The idea was to have several forms on 1 page with different id or name fields for each form but the same id or name for each input type within each form. I am trying to pass the number of tthe form to the function so it slelects the correct form but can't get the form to select properly<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;form name='modifydailyentry1' id='modifydailyentry1' method='post' action='modify.php' onsubmit='return exactdates&#40;1&#41;'&#62;<br />&#60;select id='setyear' name='setyear'&#62;<br />&#60;option value='0'&#62;-&#60;/option&#62;<br />&#60;option value='2008'&#62;2008&#60;/option&#62;<br />&#60;option value='2009'&#62;2009&#60;/option&#62;<br />&#60;/select&#62; <br />&#60;/form&#62;<!--c2--></div><!--ec2--><br /><br />Several copies of the above form are on the same page but the number after modifydailyentry increase by 1 for each form. The setyear name and id allways say setyear for each form<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->function exactdates&#40;passme&#41;<br />{<br />var currentdateyIndex = document.modifydailyentry+passme.setyear.selectedIndex;<br />var currentdatey = document.modifydailyentry+passme.setyear&#91;currentdateyIndex&#93;.value;<br />//other code runs here<!--c2--></div><!--ec2--><br /><br />Any ideas?]]></description>
		<pubDate>Thu, 22 Oct 2009 10:23:04 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28251</guid>
	</item>
	<item>
		<title>How To Read Screen Resolution Right With Ie8</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28247</link>
		<description><![CDATA[At <a href="http://www.w3schools.com/js/tryit.asp?filename=tryjs_browsermonitor" target="_blank">http://www.w3schools.com/js/tryit.asp?file..._browsermonitor</a> I receive wrong reading of my screen resolution values with IE8:<br />Screen resolution: 1024*640<br />Available view area: 1024*618<br />Color depth: 32<br />Buffer depth: 0<br />DeviceXDPI: 120<br />DeviceYDPI: 120<br />LogicalXDPI: 96<br />LogicalYDPI: 96<br />FontSmoothingEnabled: false<br />PixelDepth: undefined<br />UpdateInterval: 0<br /><br />My computer has non-standard DeviceXDPI and DeviceXDPI values, which are equal to 120 and not to 96. When I modify a part of the javascript code I receive right result:<br /><br />Screen resolution: 1280*800<br />Available view area: 1280*772.5<br /><br />Here is the snippet: <br /><br /><!--coloro:#FF0000--><span style="color:#FF0000"><!--/coloro-->document.write("Screen resolution: ");<!--colorc--></span><!--/colorc-->width = screen.width; <br />height = screen.height;<br />availwidth = screen.availWidth;<br />availheight = screen.availHeight;<br />if (typeof(screen.deviceXDPI) == 'number') {<br />width *= screen.deviceXDPI/screen.logicalXDPI;<br />height *= screen.deviceYDPI/screen.logicalYDPI;<br />availwidth *= screen.deviceXDPI/screen.logicalXDPI;<br />availheight *= screen.deviceYDPI/screen.logicalYDPI;<br />}<br />document.write(width + "*" + height);<br />document.write("&lt;br /&gt;");<br />document.write("Available view area: ");<br />document.write(availwidth + "*" + availheight);<br />document.write("&lt;br /&gt;");<br /><!--coloro:#FF0000--><span style="color:#FF0000"><!--/coloro-->document.write("Color depth: ");<!--colorc--></span><!--/colorc--><br /><br /> <img src="http://w3schools.invisionzone.com/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />  Best regards]]></description>
		<pubDate>Thu, 22 Oct 2009 08:15:19 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28247</guid>
	</item>
	<item>
		<title>Javascript Toggle Problem</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28241</link>
		<description><![CDATA[I have a pretty nifty JavaScript toggle that I found on some site, and customized for use on my ASP.NET (VB.NET) site. It works great, except for one thing: when a user causes a client-side postback because AutoPostBack is set to true on the ASP.NET page's web control, the current toggled state goes away, and that toggle pane is closed (DIPLAY:NONE;).<br /><br />I need for the toggled window to maintain whatever state it's in when a user causes a client-side postback on the form. Does anyone know how to do this? I'd appreciate any help. Here is my code:<br /><br /><b>JavaScript Code</b><br />//Source: <a href="http://blog.movalog.com/a/javascript-toggle-visibility/" target="_blank">http://blog.movalog.com/a/javascript-toggle-visibility/</a>, scroll down to Neeraj Maurya<br />function swaptabs (showthis,hidethis) {//begin function<br />    var style2 = document.getElementById(showthis).style;<br />    style2.display = "block";<br />    var style3 = document.getElementById(hidethis).style;<br />    style3.display = "none";<br />}//end function<br /><br /><b>ASP.NET Code: (only section referenced)</b><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;form id=&#34;formContactInfo&#34; name=&#34;formContactInfo&#34; enctype=&#34;multipart/form-data&#34; runat=&#34;server&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;table align=&#34;center&#34; id=&#34;ContactInfoToggle&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;tr&#62;<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;&#60;td colspan=&#34;2&#34; align=&#34;center&#34;&#62;Contact Info&#60;/td&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;/tr&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;tr&#62;<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;&#60;td colspan=&#34;2&#34; align=&#34;center&#34;&#62;<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;&#60;div id=&#34;Section-closed&#34; name=&#34;Section-closed&#34; style=&#34;DISPLAY&#58; block&#34;&#62;<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;&#60;a href=&#34;java script&#58;swaptabs&#40;'Section-open','Section-closed'&#41;;&#34;&#62;<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;&#91;+&#93;&#60;strong&#62; Add Section&#60;/strong&#62;<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;&#60;/a&#62;<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;&#60;/div&#62;<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;&#60;/td&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;/tr&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;/table&#62;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;div id=&#34;Section-open&#34; name=&#34;Section-open&#34; style=&#34;DISPLAY&#58; none&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;table align=&#34;center&#34; id=&#34;ContactInfo&#34;&#62;<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;&#60;tr&#62;<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;&#60;td colspan=&#34;2&#34; align=&#34;center&#34;&#62;<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;&#60;a href=&#34;java script&#58;swaptabs&#40;'Section-closed','Section-open'&#41;;&#34;&#62;<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;&#91;-&#93; Collapse Section<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;&#60;/a&#62;<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;&#60;/td&#62;<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;&#60;/tr&#62;<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;&#60;tr&#62;<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;&#60;td align=&#34;right&#34; width=&#34;20%&#34;&#62;<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;Full Name<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;&#60;/td&#62;<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;&#60;td width=&#34;80%&#34;&#62;<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;&#60;asp&#58;Textbox ID=&#34;txtFullName&#34; columns=&#34;20&#34; MaxLength=&#34;50&#34; runat=&#34;server&#34; /&#62;<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;&#60;/td&#62;<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;&#60;/tr&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;/table&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;/div&#62;<br />&#60;/form&#62;<!--c2--></div><!--ec2-->]]></description>
		<pubDate>Wed, 21 Oct 2009 17:14:13 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28241</guid>
	</item>
	<item>
		<title>Drop Menu Help</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28229</link>
		<description><![CDATA[Hey everyone i have been at this for weeks and now im turning to you guys for help.<br /><br />Im trying to make a vertical drop menu on my, but im kinda stuck.<br /><br /><img src="http://www.localcobalt.net/forum/members/xenss06-albums-site-images-picture1042-dropmenu.jpg" border="0" class="linked-image" /><br /><br />I have already sorted out the right image issue so please ignore that one.<br />I want to make the middle image look like the left image.<br /><br />Is there a way i can replace the class with an actual image?<br />I want to have the menu look like the original but operate like a drop menu.<br /><br /><div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>&lt;table width="240" border="0" cellpadding="0" cellspacing="0"&gt;<br />&lt;tr&gt;<br />&lt;td width="230" class="vbmenu_control" id="garage"&gt;&lt;a href="#"&gt;Garage - Time Slips - Dyno Sheets&lt;/a&gt;<br />&lt;script type="text/javascript"&gt;vbmenu_register("garage");&lt;/script&gt;<br />&lt;/td&gt;<br />&lt;tr&gt;<br />&lt;td id="classifieds" class="vbmenu_control"&gt;&lt;a href="#"&gt;Classifieds&lt;/a&gt;&lt;script type="text/javascript"&gt;vbmenu_register("classifieds");&lt;/script&gt;<br />&lt;/td&gt;<br />&lt;tr&gt;<br />&lt;td id="support" class="vbmenu_control"&gt;&lt;a href="#"&gt;Support the Community&lt;/a&gt;&lt;script type="text/javascript"&gt;vbmenu_register("support");&lt;/script&gt;<br />&lt;/td&gt;<br />&lt;tr&gt;<br />&lt;td id="supportingvendors" class="vbmenu_control"&gt;&lt;a href="#"&gt;Supporting Vendors&lt;/a&gt;&lt;script type="text/javascript"&gt;vbmenu_register("supportingvendors");&lt;/script&gt;<br />&lt;/td&gt;<br />&lt;tr&gt;<br />&lt;td class="vbmenu_control"&gt;&lt;a href="http://www.localcobalt.net/forum/faq.php"&gt;Frequently Asked Questions&lt;/a&gt;&lt;/tr&gt;<br />&lt;/table&gt;<br />&lt!-- NAVBAR POPUP MENUS --&gt;<br /><br />&lt;img src="http://www.localcobalt.net/forum/images/onlydev/misc/nav_bottom.gif" alt="" /&gt;&lt;/div&gt;<br /><br />&lt;div id="header"&gt;&lt;img src="http://www.localcobalt.net/forum/images/onlydev/misc/header_right.gif" class="fright" alt="" /&gt;&lt;a href="$vboptions[forumhome].php$session[sessionurl_q]"&gt;&lt;img src="http://www.localcobalt.net/forum/images/onlydev/misc/logo.gif" alt="$vboptions[bbtitle]" /&gt;&lt;/a&gt;&lt;/div&gt;<br />&lt;br /&gt;<br />$cyb_flashimagebanners<br />&lt;br /&gt;<br />&lt!-- GARAGE TOOLBAR --&gt;<br />&lt;div class="vbmenu_popup" id="garage_menu" style="display:none"&gt;<br />&lt;table cellpadding="4" cellspacing="1" border="0"&gt;<br />&lt;tr&gt;<br />&lt;td class="thead"&gt;Garage - Time Slips - Dyno Sheets&lt;/td&gt;<br />&lt;/tr&gt; <br />&lt;tr&gt;<br />&lt;td class="vbmenu_option"&gt;&lt;a href="http://www.localcobalt.net/forum/ICFgarage.html"&gt;Main Garage Stats&lt;/a&gt;&lt;/td&gt;<br />&lt;/tr&gt;<br />&lt;tr&gt;<br />&lt;td class="vbmenu_option"&gt;&lt;a href="http://www.localcobalt.net/forum/ICFgar...e.html"&gt;Browse Garage&lt;/a&gt;&lt;/td&gt;<br />&lt;/tr&gt;<br />&lt;tr&gt;<br />&lt;td class="vbmenu_option"&gt;&lt;a href="http://www.localcobalt.net/forum/ICFgar...ips.html"&gt;Time Slips&lt;/a&gt;&lt;/td&gt;<br />&lt;/tr&gt;<br />&lt;tr&gt;<br />&lt;td class="vbmenu_option"&gt;&lt;a href="http://www.localcobalt.net/forum/ICFgarage-dyno.html"&gt;Dyno Sheets&lt;/a&gt;&lt;/td&gt;<br />&lt;/tr&gt;<br />&lt;tr&gt;<br />&lt;td class="vbmenu_option"&gt;&lt;a href="http://www.localcobalt.net/forum/ICFgar...time.html"&gt;Lap Times&lt;/a&gt;&lt;/td&gt;<br />&lt;/tr&gt;<br />&lt;tr&gt;<br />&lt;td class="vbmenu_option"&gt;&lt;a href="http://www.localcobalt.net/forum/ICFgar....html"&gt;Vehicle Search&lt;/a&gt;&lt;/td&gt;<br />&lt;tr&gt;<br />&lt;td class="thead"&gt;Reviews&lt;/td&gt;<br />&lt;/tr&gt;<br />&lt;tr&gt;<br />&lt;td class="vbmenu_option"&gt;&lt;a href="http://www.localcobalt.net/forum/ICFgar...ps.html"&gt;Store Reviews&lt;/a&gt;&lt;/td&gt;<br />&lt;/tr&gt;<br />&lt;tr&gt;<br />&lt;td class="vbmenu_option"&gt;&lt;a href="http://www.localcobalt.net/forum/ICFgar..."&gt;Installation Reviews&lt;/a&gt;&lt;/td&gt;<br />&lt;tr&gt;<br />&lt;td class="thead"&gt;Garage Vendors List&lt;/td&gt;<br />&lt;/tr&gt; <br />&lt;tr&gt;<br />&lt;td class="vbmenu_option"&gt;&lt;a href="http://www.localcobalt.net/forum/garage...iness"&gt;Vendors Lists&lt;/a&gt;&lt;/td&gt;<br />&lt;/td&gt;<br />&lt;/tr&gt;<br />&lt;/table&gt;<br />&lt;/div&gt;<br />&lt!-- CLASSIFIEDS TOOLBAR --&gt;<br />&lt;div class="vbmenu_popup" id="classifieds_menu" style="display:none"&gt;<br />&lt;table cellpadding="4" cellspacing="1" border="0"&gt;<br />&lt;tr&gt;<br />&lt;td class="thead"&gt;Classifieds&lt;/td&gt;<br />&lt;/tr&gt;<br />&lt;tr&gt;<br />&lt;td class="vbmenu_option"&gt;&lt;a href="http://www.localcobalt.net/classifieds/...p/cat/1"&gt;Parts for Sale&lt;/a&gt;&lt;/td&gt;<br />&lt;/tr&gt; <br />&lt;tr&gt;<br />&lt;td class="vbmenu_option"&gt;&lt;a href="http://www.localcobalt.net/classifieds/...hp/cat/3"&gt;Cars for Sale&lt;/a&gt;&lt;/td&gt;<br />&lt;/tr&gt; <br />&lt;tr&gt;<br />&lt;td class="vbmenu_option"&gt;&lt;a href="http://www.localcobalt.net/classifieds/...p/cat/20"&gt;Want to Trade&lt;/a&gt;&lt;/td&gt;<br />&lt;/tr&gt; <br />&lt;tr&gt;<br />&lt;td class="vbmenu_option"&gt;&lt;a href="http://www.localcobalt.net/classifieds/...p/cat/22"&gt;Misc. for Sale&lt;/a&gt;&lt;/td&gt;<br />&lt;/tr&gt;<br />&lt;/table&gt;<br />&lt;/div&gt;<br />&lt!-- SUPPORT TOOLBAR --&gt;<br />&lt;div class="vbmenu_popup" id="support_menu" style="display:none"&gt;<br />&lt;table cellpadding="4" cellspacing="1" border="0"&gt;<br />&lt;tr&gt;<br />&lt;td class="thead"&gt;Support the Community&lt;/td&gt;<br />&lt;/tr&gt;<br />&lt;tr&gt;<br />&lt;td class="vbmenu_option"&gt;&lt;a href="http://www.localcobalt.net/forum/index.php"&gt;Link1&lt;/td&gt;<br />&lt;/tr&gt;<br />&lt;td class="vbmenu_option"&gt;&lt;a href="http://www.localcobalt.net/forum/index.php"&gt;Link2&lt;/td&gt;<br />&lt;/tr&gt;<br />&lt;tr&gt;<br />&lt;td class="vbmenu_option"&gt;&lt;a href="http://www.localcobalt.net/forum/index.php"&gt;Link3&lt;/td&gt;<br />&lt;/tr&gt;<br />&lt;/table&gt;<br />&lt;/div&gt;<br />&lt!-- SUPPORTVENDOR TOOLBAR --&gt;<br />&lt;div class="vbmenu_popup" id="supportingvendors_menu" style="display:none"&gt;<br />&lt;table cellpadding="4" cellspacing="1" border="0"&gt;<br />&lt;tr&gt;<br />&lt;td class="thead"&gt;Support the Community&lt;/td&gt;<br />&lt;/tr&gt;<br />&lt;tr&gt;<br />&lt;td class="vbmenu_option"&gt;&lt;a href="http://www.localcobalt.net/forum/index.php"&gt;Supporting Vendor Info&lt;/td&gt;<br />&lt;/tr&gt; <br />&lt;tr&gt;<br />&lt;td class="vbmenu_option"&gt;&lt;a href="http://www.localcobalt.net/forum/index.php"&gt;Supporting Vendors List&lt;/td&gt;<br />&lt;/tr&gt; <br />&lt;tr&gt;<br />&lt;td class="vbmenu_option"&gt;&lt;a href="http://www.localcobalt.net/forum/index.php"&gt;Become a Supporting Vendor&lt;/td&gt;<br />&lt;/tr&gt;<br />&lt;/table&gt;<br />&lt;/div&gt; </div><br /><br />Thank you in advance.]]></description>
		<pubDate>Wed, 21 Oct 2009 02:42:20 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28229</guid>
	</item>
	<item>
		<title>Need Design Advice - Javascript Vs. Ajax, Etc.</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28227</link>
		<description><![CDATA[I could use some advice about a design decision I need to make. First, let me explain the issue. I have a web report that requires the user to pick one or more items on which to report. There are nearly 600 items. The items are currently displayed by name and identification number. The list is not as bad as it sounds because the users know exactly what items they want and can search for them. The problem is that the items are sorted by name. Some users would like to be able to sort the items by ID number. I can think of several way to do this, but I'm not sure which is best. If the user changes the sort order, I'd like to keep track of the items they've already selected so that they don't have to select them again.<br /><br />The first way is to just create another page. This seems like it would be slower and less efficient. I'd have to post the form to track if any items were already selected before sending back the resorted list.<br /><br />The second way would be to use Javascript and DHTML. I haven't done anything like this before, but I think I know what to do. I could either have two lists, with one or the other hidden, or I could use Javascript to rebuild the list if the user changes the sort order. The downside to this might be that the code for the page could be really huge.<br /><br />The third way is to use AJAX. I could retrieve the sorted list from the server instead of having all of that Javascript code to store the list. I cache much of the data on the server, so the retrieval would be quick. I have to confess that I'm sort of excited about this option because I haven't had a chance to use AJAX yet. I'm not sure if this is the right solution.<br /><br />I guess what I'm looking for is some sort of input on what is the most efficient way to do this and what is the best practice. Any input would be appreciated. Sorry for the long post.<br /><br />Thanks in advance.]]></description>
		<pubDate>Tue, 20 Oct 2009 22:00:44 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28227</guid>
	</item>
	<item>
		<title>Help With Jquery $.each() And Json</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28225</link>
		<description><![CDATA[I am a little uncertain about the appropriate syntax for using $.each() in jQuery to interrogate JSON.  Here is my script as it stands:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&nbsp;&nbsp;&nbsp;&nbsp; $.ajax&#40;{<br />&nbsp;&nbsp;&nbsp;&nbsp; url&#58; 'do_chat.php5',<br />&nbsp;&nbsp;&nbsp;&nbsp; type&#58; 'post',<br />&nbsp;&nbsp;&nbsp;&nbsp; data&#58; &#40;{'message'&#58;text,'poster'&#58;poster,'logged_in'&#58;logged_in}&#41;,<br />&nbsp;&nbsp;&nbsp;&nbsp; dataType&#58; 'json',<br />&nbsp;&nbsp;&nbsp;&nbsp; success&#58; function&#40;data&#41; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $.each&#40;data, function&#40;entryIndex, entry&#41; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if&#40;entry&#91;'time'&#93; &#62; '10000000000000000'&#41; {<br />&nbsp;&nbsp;&nbsp;&nbsp; $&#40;'#chatWindow'&#41;.append&#40;data&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }&#41;;<!--c2--></div><!--ec2--><br /><br />This function sends the relevant data to 'do_chat.php5' and returns JSON, which looks like the following:<br /><br />{"poster":"","message":"No messages!","date":1256081631}<br /><br />I am not sure if that's what it's meant to look like, but my attempts to access the date have been unsuccessful, as is obvious from the fact that it constantly passes my greater-than-that-ludicrously-large-number test and stubbornly appends itself to my #chatWindow.  I am not sure about the syntax for $.each, and if that is how it is used.  I copied it from a book, but perhaps since I am only receiving one string I don't need it?  I tried just data['time'] but that didn't work either...  I'm kind of at sea on this one, and help would be great.]]></description>
		<pubDate>Tue, 20 Oct 2009 19:38:03 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28225</guid>
	</item>
	<item>
		<title>Using .js File With Webpage</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28221</link>
		<description><![CDATA[Can I control attributes with a .js file for a webpage<br />I would like to have background-repeat: repeat-x; background-attachment: fixed<br />This displays my image but cant figure out how to get the attributes to work<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->{<br />function menubar&#40;&#41;<br />&nbsp;&nbsp;retVal = &#34;&#60;img src=images/blk_pipe.gif&#62;&#34;;<br /><br />&nbsp;&nbsp;return retVal;<br />}<!--c2--></div><!--ec2-->]]></description>
		<pubDate>Tue, 20 Oct 2009 17:38:10 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28221</guid>
	</item>
	<item>
		<title>Can I Interrogate Ajax Return Data?</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28220</link>
		<description><![CDATA[As many of you may know, I am making a little chat app.  I have thus far been fetching the most recent 10 items from the chat buffer table in my database and echoing those as the data for my ajax callback function.  That's fine, but it gives a very short conversation history and I would like to change it.  I have adapted the query to only fetch the latest one record and append it to the chat window.  Obviously that will recursively spit out the last record - not what I want.  So I altered the query to fetch the last record if it's newer than 2 seconds old, because that's how often the javascript checks for new records.  That resulted in duplicate entries because its hard to hit return in exactly the right rhythm.  So, I changed it to one second and it worked for me testing it on my own, but someone else came in and we couldn't see each other's messages.  So, I figured I would include a hidden field holding a timestamp of each message and check the date of the ajax return data against the date of the last message in the chat window.  But is it possible to interrogate the ajax return data like this?  It would look something like this:<br /><br />&lt;div class="poster"&gt;username&lt;/div&gt;&lt;div class="message" value="2009:10:20 10:32:45"&gt;message text&lt;/div&gt;<br /><br />This is also, of course, the format the last message in the chat window would take.  So, is it possible to do, say:<br /><br />if ( $('#chatWindow :last-child .message').val() !&gt; $(data') .filter('.message').val() ) {<br />$('#chatWindow').append(data);<br />}<br /><br />??]]></description>
		<pubDate>Tue, 20 Oct 2009 17:37:26 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28220</guid>
	</item>
	<item>
		<title>Prompt Box In Safari</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28218</link>
		<description><![CDATA[Why does the JS for the Prompt box on W3Schools not work in Safari?<br /><br /><a href="http://www.w3schools.com/JS/js_popup.asp" target="_blank">http://www.w3schools.com/JS/js_popup.asp</a><br /><br />After clicking on the button in the Prompt, the page is blank.<br /><br /><div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>&lt;html&gt;<br />&lt;head&gt;<br />&lt;script type="text/javascript"&gt;<br />function show_prompt()<br />{<br />var name=prompt("Please enter your name","Harry Potter");<br />if (name!=null && name!="")<br />  {<br />  document.write("Hello " + name + "! How are you today?");<br />  }<br />}<br />&lt;/script&gt;<br />&lt;/head&gt;<br />&lt;body&gt;<br /><br />&lt;input type="button" onclick="show_prompt()" value="Show prompt box" /&gt;<br /><br />&lt;/body&gt;<br />&lt;/html&gt;</div><br /><br />Linda]]></description>
		<pubDate>Tue, 20 Oct 2009 17:24:22 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28218</guid>
	</item>
	<item>
		<title>Issue With Onload Function On Images</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28213</link>
		<description><![CDATA[Hi;<br /><br />I'm new here but have been writing HTML & CSS for a few years, but recently decided to try and get into JS.<br /><br />I've hit upon a problem that's bugging me a lot, so am wondering if anyone can help.<br /><br />All I'm trying to do is fade an image out, swap it to another image, then fade the new one in.<br /><br />This is pretty simple and I got that working fine locally.<br /><br />The issue comes when I try to ensure that the new image has loaded before fading up.  I don't want to preload every image due to the nature of the way I'm laying out my site - it'd create a pretty big bottleneck when switching to the image gallery.  It makes much more sense (to me) to only load on demand.<br /><br />The site is work in progress, but can be seen here: <a href="http://www.alexanderjamesmoore.co.uk/chocolate" target="_blank">www.alexanderjamesmoore.co.uk/chocolate</a> <br /><br />The page in question is "photography".  All I've done thus far is the "architecture" link inside that as I'm trying to get all the code working properly before worrying about content & layout too much.<br /><br />The bit of code that's causing issue is this:<br /><br /><div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>		<br />   if (objOpacity == 0)<br />	{<br />		// as we're now faded out we can swap the images over<br />    		document.getElementById('imageviewer').src=archImages[i];<br />    		// wait until the picture is loaded before fading back up;<br />    		document.getElementById('imageviewer').onLoad = loadFinished();<br />	}<br /></div><br /><br />This is inside my fade function which recurses itself down through the opacity & gets called at the right time.<br /><br />The problem is that the onLoad fires <b>before</b> the new image has actually loaded in, which makes the object fade up & then snap to the new image.<br /><br />I've tried sticking the onLoad all over the place, using a dummy object instead, and a few other things that I've now lost track of, none with any luck.<br /><br />If someone can help that'd be great!<br /><br />Cheers<br /><br />]]></description>
		<pubDate>Tue, 20 Oct 2009 15:19:50 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28213</guid>
	</item>
	<item>
		<title>Insert Linebreaks In A Textarea</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28210</link>
		<description>is there a way to insert linebreaks in a textarea with just HTML and javascript?</description>
		<pubDate>Tue, 20 Oct 2009 13:39:21 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28210</guid>
	</item>
	<item>
		<title>Recursive Loop In My Chat App</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28205</link>
		<description><![CDATA[I thought I had figured out every aspect of this little chat app I was working on yesterday, but I am having a problem.  The app starts by checking the value of the variable &#96;check&#96;.  This holds the echoed value of $_SESSION["poster"].  If this isn't set, then the user is prompted for a username.  The return value is sent to a script which again checks for $_SESSION["poster"].  If it isn't set, then it sets it with the prompted value.  The function then reloads the page.  This time, $_SESSION["poster"] should be set (I discovered that using AJAX has that one downside that setting things to session).  Anyway, when you open the page in Firefox, it continually prompts for username and only breaks if you cancel the prompt.  Well, it did, now it doesn't even break if you do that!  I tried instead setting a cookie which seems to work again only with a page refresh, which if done as below, causes problems.<br /><br />Here is the javascript (jQuery) code:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->$&#40;document&#41;.ready&#40;function&#40;&#41; {<br />var logged_in = '&#60;?php $logged_in = date&#40;&#34;Y-m-d G&#58;i&#58;s&#34;, time&#40;&#41;&#41;; echo $logged_in; ?&#62;';<br />var check = '&#60;?php echo $_COOKIE&#91;&#34;poster&#34;&#93;;?&#62;';<br />if&#40;check == ''&#41; {<br />var poster = prompt&#40;&#34;Please enter a username&#34;&#41;;<br />$.post&#40;&#34;do_chat.php5&#34;, {'poster'&#58;poster}, function&#40;data&#41;{}&#41;;<br />window.location.href = window.location.href;<br />}<br /><br />setTimeout&#40;reload, 400&#41;;<br /><br />$&#40;'#send'&#41;.click&#40;function&#40;&#41; {<br />fetch_messages&#40;&#41;;<br />}&#41;;<br /><br />$&#40;'#message'&#41;.bind&#40;&#34;keypress&#34;, function&#40;e&#41; {<br />&nbsp;&nbsp;if&#40;e.which == 13 || e.keycode == 13&#41; {<br />fetch_messages&#40;&#41;;<br />&nbsp;&nbsp;}<br />}&#41;;<br /> $&#40;'#message'&#41;.focus&#40;&#41;;<br />}&#41;;<br /><br />function reload&#40;&#41; {<br />logged_in = '&#60;?php echo $logged_in; ?&#62;';<br />&nbsp;&nbsp; var poster = '&#60;?php echo $_COOKIE&#91;&#34;poster&#34;&#93;;?&#62;';<br />$.post&#40;'do_chat.php5', {'message'&#58;'','logged_in'&#58;logged_in,'poster'&#58;poster}, function&#40;data&#41; {<br />&nbsp;&nbsp;&nbsp;&nbsp;$&#40;'#chatWindow'&#41;.html&#40;data&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;}&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;$.post&#40;'users.php5', {}, function&#40;data&#41; {<br /> $&#40;'#users'&#41;.html&#40;data&#41;;<br />}&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;setTimeout&#40;reload, 2000&#41;;<br />}<br /><br />function fetch_messages&#40;&#41; {<br /> if&#40;$&#40;'#message'&#41;.val&#40;&#41;!=''&#41; {<br />&nbsp;&nbsp;var text = $&#40;'#message'&#41;.val&#40;&#41;;<br />&nbsp;&nbsp;var poster = '&#60;?php echo $_COOKIE&#91;&#34;poster&#34;&#93;;?&#62;';<br /> $.post&#40;'do_chat.php5', {'message'&#58;text,'poster'&#58;poster,'logged_in'&#58;logged_in}, function&#40;data&#41; {<br /> $&#40;'#chatWindow'&#41;.html&#40;data&#41;;<br /> }&#41;;<br />}<br />$&#40;'#message'&#41;.val&#40;''&#41;;<br />$.post&#40;'users.php5', {}, function&#40;data&#41; {<br /> $&#40;'#users'&#41;.html&#40;data&#41;;<br />}&#41;;<br />}<!--c2--></div><!--ec2-->]]></description>
		<pubDate>Tue, 20 Oct 2009 09:56:17 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28205</guid>
	</item>
	<item>
		<title>Javascript Image Switch - Very Slow</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28202</link>
		<description><![CDATA[Ok, let me explain what's going on.<br /><br />I'm using JavaScript to switch the src of an image for onmouseover, onmouseout, onmousedown, and onmouseup. Easy enough. Works fine the way I have it. Here's my problem.<br /><br />The page itself already takes a bit to load (because of all the images I use). But when the effects are used for the first time that visit, JavaScript has to download the image right then. That makes it so the effect the image switch is supposed to give does not really work out unless they hover over it for a while. After the initial download, it works fine.<br /><br />I have two questions, one concerning that and one concerning design in general.<br /><br />Firstly, is there any way to have the images all downloaded on the original request? That way the image switcher already has the images downloaded. I've thought of different ways, but they all seem like really bad hacks that should be avoided.<br /><br />And secondly, what's better to use when making image driven layouts (banners, navigations bars, etc.): image tags or elements with background images? I would assume image tags, but I've seen the use of background images before as well.]]></description>
		<pubDate>Mon, 19 Oct 2009 23:21:43 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28202</guid>
	</item>
	<item>
		<title>Scripts In This Table</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28200</link>
		<description><![CDATA[I found this table on <a href="http://adwords.google.com/" target="_blank">Google Adwords</a> under the "Learn about AdWords" section. You can click on it and it show different stuff on the right. I looked into the source code and found that you can duplicate this but what are the necessary codes required? I want to make a similar one on another page with minimal amount of codes.]]></description>
		<pubDate>Mon, 19 Oct 2009 18:14:33 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28200</guid>
	</item>
	<item>
		<title>Ajax Chat Room App</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28192</link>
		<description>I made a very simple AJAX chat app, just for fun, and it relies on recursive setTimeouts to call the reload function.  Obviously this is inefficient and is liable to have my hosting company ban me, so I was wondering if there is a more efficient way of detecting new messages and pushing them without having to just keep checking and make ajax calls or otherwise checking the database?</description>
		<pubDate>Mon, 19 Oct 2009 11:24:16 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28192</guid>
	</item>
	<item>
		<title>Form Element Delete Button</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28187</link>
		<description><![CDATA[I have an input to change quantities of items in shopping cart and to delete an item (PHP-generated code) as:<br />&lt;input type="text" style="width: 2em" name="qty[56]" value="5" /&gt; &lt;a href='#'&gt;&lt;img src='assets/delete.gif' width='15' height='15' alt='Click to remove item' onclick="document.forms['cart'].elements['qty[56]'].value='0';  document.forms['cart'].submit()"&gt;&lt;/a&gt;<br /><br />Clicking onto delete.gif does set the quantity to '0', but it does not remove the item (which would happen when you enter '0' into input name="qty[56]" and pressed the submit button.<br /><br />The submit button is as:<br />&lt;input type=&#092;"submit&#092;" value=&#092;"Update Total&#092;" id=&#092;"submit&#092;" name=&#092;"submit&#092;" /&gt;<br /><br />There is also a hidden value as:<br />&lt;input type=&#092;"hidden&#092;" name=&#092;"do&#092;" value=&#092;"update&#092;" /&gt;<br /><br />Therefore I tried:<br />&lt;input type="text" style="width: 2em" name="qty[56]" value="5" /&gt; &lt;a href='#'&gt;&lt;img src='assets/delete.gif' width='15' height='15' alt='Click to remove item' onclick="document.forms['cart'].elements['qty[56]'].value='0';  onclick="document.forms['cart'].elements['do'].value='update'; document.forms['cart'].submit()"&gt;&lt;/a&gt;<br /><br />How can I correctly incorporate the hidden input?<br /><br />Son]]></description>
		<pubDate>Mon, 19 Oct 2009 09:57:31 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28187</guid>
	</item>
	<item>
		<title>Cookies Why So Difficult</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28173</link>
		<description><![CDATA[I tried to use the js cookie tutorial and edited it and I can not get it to work.<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&lt;script type=&#34;text/javascript&#34; src=&#34;elements/rate_system.js&#34;&#62;&#60;/script&#62;<!--c2--></div><!--ec2--><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->function setSong&#40;value&#41;<br />{<br />document.cookie=&#34;song=&#34; + escape&#40;value&#41;;<br />}<br /><br />function getSong&#40;&#41;<br />{<br />&nbsp;&nbsp;c_start=document.cookie.indexOf&#40;&#34;song=&#34;&#41;;<br />&nbsp;&nbsp;if &#40;c_start!=-1&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;c_start=c_start + c_name.length+1;<br />&nbsp;&nbsp;&nbsp;&nbsp;c_end=document.cookie.indexOf&#40;&#34;;&#34;,c_start&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;if &#40;c_end==-1&#41; c_end=document.cookie.length;<br />&nbsp;&nbsp;&nbsp;&nbsp;return unescape&#40;document.cookie.substring&#40;c_start,c_end&#41;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />return &#34;&#34;;<br />}<br /><br />function checkSong&#40;&#41; {<br />&nbsp;&nbsp;&nbsp;&nbsp;song=getSong&#40;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;if &#40;song!=null && song!=&#34;&#34;&#41; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return song;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} else {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;alert&#40;'No song set!'&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />}<!--c2--></div><!--ec2--><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->onclick=&#34;setSong&#40;'&#60;?php echo $song&#91;1&#93;; ?&#62;'&#41;;&#34;<!--c2--></div><!--ec2-->^ this portion of the code is ok it does print the correct song name if you look at the source.<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&lt;script type=&#34;text/javascript&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp; document.write&#40;checkSong&#40;&#41;&#41;;<br />&#60;/script&#62;<!--c2--></div><!--ec2--><br /><br />Anyone know what i did wrong.<br /><br />Basically I need to set a cookie with the songs name so I can call the cookie to play that song in a mp3 player and rate the song.]]></description>
		<pubDate>Sun, 18 Oct 2009 05:05:33 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28173</guid>
	</item>
	<item>
		<title>5 Star Rating System?</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28172</link>
		<description><![CDATA[The only way I can think of making a rate system like this is with JS. And I have no clue where to start with it.<br />Basically a song will be playing on a mp3 object and below it i want to show 5 stars.<br />I'm guessing a onmousover event would be needed to change the stars colors depending on what star is mouseover.<br /><br />e.g.<br />* = mouseover<br /><br />[*] [ ] [ ] [ ] [ ] Rate  - Only the first star would be "highlighted" I will probably work off two images of stars. One regular other high lighted<br /><br />[ ] [ ] [*] [ ] [ ] Rate - The first 3 stars would be "highlighted"<br /><br /><br />Then I'm guessing an onclick to "select" the star and the stars would stay highlighted. Then I would click a rate button to submit.<br /><br /><br />I know its a lot to ask for but me knowing only the basics of JS I need all the help I can get.<br /><br />Thanks.]]></description>
		<pubDate>Sun, 18 Oct 2009 04:36:01 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28172</guid>
	</item>
	<item>
		<title>Java Script Form Editor</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28170</link>
		<description><![CDATA[Is there any Java script drag and drop editor in which we can make form validatins,  and code make itself.<br /><br />I have found one editor I dont know either it is good or bad. Plz visit:<br /><a href="http://www.simfatic.com/index.php" target="_blank">http://www.simfatic.com/index.php</a><br /><br />Im a bigner in the field of web development.<br /><br />Thanks]]></description>
		<pubDate>Sun, 18 Oct 2009 00:51:19 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28170</guid>
	</item>
	<item>
		<title>Object Required In Ie After Xmlhttprequest</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28169</link>
		<description><![CDATA[i have an html page, javascript page and a PHP page<br />everything works fine on Firefox, Chrome and Safari however in IE i get<br />an error "object required"  on line 35 in the javascript page<br /><br />line 35 is       alert(xmlDoc.getElementsByTagName("hometown")[0].childNodes[0].nodeValue);<br /><br />i.e. the first reference to the xmlDoc object!!<br /><br />i am using IE 8,  and PHP 5.3  on Windows 7 Ultimate<br /><br /><br /><br />the pages are :   HTML page    HTMLPage.html<br /><br />&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;<br />&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;<br /><br />&lt;head&gt;<br />&lt;meta content="text/html; charset=utf-8" http-equiv="Content-Type" /&gt;<br />&lt;script type="text/javascript" src="responsexml.js"&gt;&lt;/script&gt;<br /><br />&lt;title&gt;Untitled 1&lt;/title&gt;<br />&lt;/head&gt;<br /><br />&lt;body&gt;<br /><br />&lt;form&gt;<br />Select a User:<br />&lt;select name="users" onchange="showUser(this.value)"&gt;<br />&lt;option value="1"&gt;Peter Griffin&lt;/option&gt;<br />&lt;option value="2"&gt;Lois Griffin&lt;/option&gt;<br />&lt;option value="3"&gt;Glenn Quagmire&lt;/option&gt;<br />&lt;option value="4"&gt;Joseph Swanson&lt;/option&gt;<br />&lt;/select&gt;<br />&lt;/form&gt;<br /><br />&lt;h2&gt;&lt;span name="firstname" id="firstname"&gt;&lt;/span&gt;&nbsp;&lt;span name="lastname" id="lastname"&gt;&lt;/span&gt;&lt;/h2&gt;<br />&lt;span name="job" id="job"&gt;&lt;/span&gt;<br />&lt;div style="text-align: left"&gt;<br />  &lt;span id="age_text"&gt;&lt;/span&gt;<br />  &lt;span name="age" id="age"&gt;&lt;/span&gt;<br />  &lt;span id="hometown_text" &gt;&lt;/span&gt;<br />  &lt;span name="hometown" id="hometown"&gt;&lt;/span&gt;<br />&lt;/div&gt;<br /> <br /><br />&lt;/body&gt;<br /><br /><br /><br /><br />the JAVASCRIPT page      responsexml.js<br /><br /><br /><br />var xmlhttp;<br />var xmlDoc<br /><br />function showUser(str)<br />{<br />xmlhttp=GetXmlHttpObject();<br /><br />if (xmlhttp==null)<br />  {<br />  alert ("Browser does not support HTTP Request");<br />  return;<br />  }<br />var url="responsexml.php";<br />url=url+"?q="+str;<br />url=url+"&sid="+Math.random();<br />xmlhttp.onreadystatechange=stateChanged;<br />xmlhttp.open("GET",url,true);<br /><br />//xmlhttp.open("POST",url,true);<br />//xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");<br /><br />xmlhttp.send(null);<br />}<br /><br />function stateChanged()<br />{<br />if (xmlhttp.readyState==4)<br />  {<br />    if (xmlhttp.status==200)<br />	{<br />		  <br />		  xmlDoc=xmlhttp.responseXML;<br />		  <br />		  alert(document.getElementById("firstname").innerHTML);<br />		  alert(xmlDoc.getElementsByTagName("hometown")[0].childNodes[0].nodeValue);<br />		  <br />		  document.getElementById("firstname").innerHTML=<br />		  xmlDoc.getElementsByTagName("firstname")[0].childNodes[0].nodeValue;<br />		  document.getElementById("lastname").innerHTML=<br />		  xmlDoc.getElementsByTagName("lastname")[0].childNodes[0].nodeValue;<br />		  document.getElementById("job").innerHTML=<br />		  xmlDoc.getElementsByTagName("job")[0].childNodes[0].nodeValue;<br />		  document.getElementById("age_text").innerHTML="Age Is      --====--       : ";<br />		  document.getElementById("age").innerHTML=<br />		  xmlDoc.getElementsByTagName("age")[0].childNodes[0].nodeValue;<br />		  document.getElementById("hometown_text").innerHTML="&lt;br/&gt;From Address   --====--     : ";<br />		  document.getElementById("hometown").innerHTML=<br />		  xmlDoc.getElementsByTagName("hometown")[0].childNodes[0].nodeValue;<br />      }<br />  }<br />}<br /><br />function GetXmlHttpObject()<br />{<br />if (window.XMLHttpRequest)<br />  {<br />  // code for IE7+, Firefox, Chrome, Opera, Safari<br />  return new XMLHttpRequest();<br />  }<br />if (window.ActiveXObject)<br />  {<br />  // code for IE6, IE5<br />  return new ActiveXObject("Microsoft.XMLHTTP");<br />  }<br />return null;<br />}<br /><br /><br /><br />the PHP page         responsexml.php<br /><br /><br />&lt;?php<br />$q=$_GET["q"];<br /><br />$serverName = "(local)";<br />$connectionOptions = array("Database"=&gt;"TestPHP");<br /><br />$conn = sqlsrv_connect( $serverName, $connectionOptions);<br />if( $conn === false )<br />        { <br />        die( print_r( sqlsrv_errors(), true));<br /><br />        //die('Could not connect: ' . sqlsrv_errors());<br />        }<br /><br />$sql="SELECT FirstName, LastName, Age, Hometown, Job FROM [user]  WHERE id = $q " ;<br />$result = sqlsrv_query($conn, $sql, array( $q ) );<br /><br /><br />header("Content-type:text/xml");<br />header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");<br />header("Cache-Control: no-cache");<br />header("Pragma: no-cache");<br /><br />$response='&lt;?xml version="1.0" encoding="ISO-8859-1"' . chr(63) . chr(62) . " &lt;person&gt;";<br /><br />while($row = sqlsrv_fetch_array($result))<br />  {<br />  $response = $response . "&lt;firstname&gt;" . $row['FirstName'] . "&lt;/firstname&gt;";<br />  $response = $response . "&lt;lastname&gt;" . $row['LastName'] . "&lt;/lastname&gt;";<br />  $response = $response . "&lt;age&gt;" . $row['Age'] . "&lt;/age&gt;";<br />  $response = $response . "&lt;hometown&gt;" . $row['Hometown'] . "&lt;/hometown&gt;";<br />  $response = $response . "&lt;job&gt;" . $row['Job'] . "&lt;/job&gt;";<br />  }<br />$response = $response . "&lt;/person&gt;";<br /><br />echo $response;<br /><br />sqlsrv_close($conn );<br /><br />?&gt; <br /><br /><br />any ideas ??<br /><br />--------------------------------------------------------------]]></description>
		<pubDate>Sat, 17 Oct 2009 21:55:22 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28169</guid>
	</item>
	<item>
		<title>Script To Log Off Account</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28165</link>
		<description>i am looking for some sort of pop up that can be started as a person logs on to there acount on my computer. and will give them no choice but to log off after a timed limit.</description>
		<pubDate>Sat, 17 Oct 2009 17:30:04 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28165</guid>
	</item>
	<item>
		<title>Preloading Images</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28164</link>
		<description><![CDATA[I understand you can preload images with the traditional method;<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->image1 = new Image&#40;&#41;;<br />image1.src = &#34;image1.jpg&#34;;<!--c2--></div><!--ec2--><br /><br />but I was wondering if you can preload images in this fashon in an external javascript file such as;<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->window.onload = Initialize;<br /><br />function Initialize&#40;&#41;<br />{<br />&nbsp;&nbsp; document.getElementById&#40;'b1'&#41;.onmouseover = function&#40;&#41;{swapImage&#40;'b1', '&#46;&#46;/images/objsel.jpg', 1&#41;};<br />&nbsp;&nbsp; document.getElementById&#40;'b1'&#41;.onmouseout&nbsp;&nbsp;= function&#40;&#41;{swapImage&#40;'b1', '&#46;&#46;/images/obj.jpg', 0&#41;};<br />&nbsp;&nbsp; document.getElementById&#40;'b1'&#41;.onclick = function&#40;&#41;{changePage&#40;'para', 'b1', '&#46;&#46;/images/objover.jpg', 'b1'&#41;};<br />&nbsp;&nbsp; ...<br />}<br /><br />function swapImage&#40;id, name, cursor_type&#41;<br />{<br />&nbsp;&nbsp; if &#40;activeBtn == id&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;<br />&nbsp;&nbsp; var x = document.getElementById&#40;id&#41;;<br />&nbsp;&nbsp; x.src = name;<br />&nbsp;&nbsp; if &#40;cursor_type == '0'&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;x.style.cursor = &#34;default&#34;;<br />&nbsp;&nbsp; else&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;x.style.cursor = &#34;pointer&#34;;&nbsp;&nbsp;&nbsp;&nbsp;<br />}<!--c2--></div><!--ec2--><br /><br />and the HTML snippet;<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;img class=&#34;marginleft&#34; id=&#34;b1&#34; src=&#34;&#46;&#46;/images/obj.jpg&#34; alt=&#34;Objective&#34; /&#62;<!--c2--></div><!--ec2-->.<br /><br />My understanding is the images are loaded automatically when the page loads e.g. the &lt;img&gt; would load the obj.jpg in the body of the document, but as I'm assigning events in the head, would these load the images, or is it just passing it as a string to the function?<br /><br />Thanks!<br /><br />]]></description>
		<pubDate>Sat, 17 Oct 2009 16:24:59 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28164</guid>
	</item>
	<item>
		<title>Custom Print Drivers</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28160</link>
		<description><![CDATA[Ok, I know this isn't really the place for it, but I thought perhaps (at least from what I know) that being VB is related to C/C++, someone here might know. I am looking to write a custom printer driver. For basics, I would say, like to control the part that holds the ink using the arrow keys on my keyboard. Is that even possible? Any information on how to go about creating a driver at all would be of great interest, and much appreciated.<br /><br />Thanks in advance.]]></description>
		<pubDate>Sat, 17 Oct 2009 10:21:05 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28160</guid>
	</item>
	<item>
		<title>Javascript To Log Off A Computer</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28157</link>
		<description>i am looking for some sort of pop up that can be started as a person logs on to there acount on my computer. and will give them no choice but to  log off after a timed limit.</description>
		<pubDate>Fri, 16 Oct 2009 20:10:10 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28157</guid>
	</item>
	<item>
		<title>Looking For Specific Words.</title>
		<link>http://w3schools.invisionzone.com/index.php?showtopic=28155</link>
		<description><![CDATA[If I have a text and I want to know how many times what word has been writen in what text how do I do what?<br /><br />BTW. The word/letters can be a part of a word.]]></description>
		<pubDate>Fri, 16 Oct 2009 15:35:52 -0400</pubDate>
		<guid>http://w3schools.invisionzone.com/index.php?showtopic=28155</guid>
	</item>
</channel>
</rss>