﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Programming Help Forums / HTML / Javascript / CSS / Javascript Help </title><generator>InstantForum.NET v4.1.4</generator><description>Programming Help Forums</description><link>http://www.programminghelp.com/forums/</link><webMaster>forums@programminghelp.com</webMaster><lastBuildDate>Fri, 18 May 2012 08:52:47 GMT</lastBuildDate><ttl>20</ttl><item><title>this error is killing me....</title><link>http://www.programminghelp.com/forums/Topic8023-20-1.aspx</link><description>for(var s = 0; s&lt;=this.seqnum; s+=1) {&lt;br&gt;            setTimeout("this.spinIt(this.sequence[s])",s*this.interval);&lt;br&gt;	}&lt;br&gt;&lt;br&gt;using firefox, firebug. firebug gives me the error:&lt;br&gt;&lt;br&gt;'s is not defined'&lt;br&gt;&lt;br&gt;now to my understanding 's' is defined locally in the for() loop, but i don't understand why it is telling me it is not defined.&lt;br&gt;&lt;br&gt;any help you guys can offer would be great!&lt;br&gt;&lt;br&gt;oh, and first time poster, lol, if i made any mistakes.&lt;br&gt;&lt;br&gt;thanks!</description><pubDate>Wed, 28 Sep 2011 21:37:43 GMT</pubDate><dc:creator>dahl1013</dc:creator></item><item><title>Array calculation</title><link>http://www.programminghelp.com/forums/Topic7721-20-1.aspx</link><description>Hi&lt;br&gt;&lt;br&gt;I am trying to keep a running total of how often 2 functions return integers between 0 and 9. The test runs 100000 times and should result in 2 alert windows showing the frequency of each integer in the test. &lt;br&gt;&lt;br&gt;I am trying to set up an array to hold the information - a 2 dimensional array as there are 2 functions being tested. I can't seem to get my head round performing the calculation of adding 1 to each running total for each integer. &lt;br&gt;&lt;br&gt;Can anyone help??!</description><pubDate>Sun, 11 Sep 2011 11:53:20 GMT</pubDate><dc:creator>Christ0</dc:creator></item><item><title>Timing Events</title><link>http://www.programminghelp.com/forums/Topic7635-20-1.aspx</link><description>I would like to create an online six-question behavioral assessment in which participants have three minutes to respond per question.  At the moment, I have six stand-alone .html files for each of the questions, and I would like to create a javascript to loop through all six files with three minute time-intervals between each question.  For example, participants should link to question one, and a timer should set for three minutes the second they start inputting their text response.  When three minutes have expired, the screen should jump to question two, and the timer should re-set for three minutes the second they start inputting their text response.  &lt;br&gt;&lt;br&gt;Any help figuring out how to do this would be much appreciated.&lt;br&gt;&lt;br&gt;Thanks in advance,&lt;br&gt;Anna</description><pubDate>Fri, 02 Sep 2011 16:28:15 GMT</pubDate><dc:creator>kazamm</dc:creator></item><item><title>Alternative to '&amp;#100;ocument.write'</title><link>http://www.programminghelp.com/forums/Topic7628-20-1.aspx</link><description>I am very new to JavaScript, however I already seem semi-stumped.&lt;br&gt;&lt;br&gt;The tutorial I am using, mentions that for tutorial example purposes they use '&amp;#100;ocument.write()' however it suggests that I avoid using this as it will overwrite the whole HTML page.&lt;br&gt;&lt;br&gt;I know that I can use '&amp;#100;ocument.getElementById()' for some things... however this begs my question:&lt;br&gt;&lt;br&gt;When do you use '&amp;#100;ocument.write()', when do you use '&amp;#100;ocument.getElementById()' and is there also another method you use to change/write to the HTML Document using JavaScript?&lt;br&gt;&lt;br&gt;Cheers,&lt;br&gt;Asher</description><pubDate>Sat, 27 Aug 2011 02:48:59 GMT</pubDate><dc:creator>Asher</dc:creator></item><item><title>open Iframe from second page</title><link>http://www.programminghelp.com/forums/Topic6487-20-1.aspx</link><description>&lt;DIV id=post_message_1070305&gt;Good day all I have a contact form that opens up in a iframe on my home page. I have a second page with a link for contact and I would like to know If their is a javascript that when I press the contact link on the second page that it can go to the home page and open the iframe for the cntact form.&lt;BR&gt;&lt;BR&gt;Please note I do not know javascript I am trying to learn it.&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;Thank you&lt;BR&gt;Shoutout &lt;/DIV&gt;</description><pubDate>Sat, 26 Mar 2011 16:09:33 GMT</pubDate><dc:creator>shoutout</dc:creator></item><item><title>How to show a number greater than earlier?</title><link>http://www.programminghelp.com/forums/Topic7575-20-1.aspx</link><description>Hi Everyone!&lt;br&gt;Being a newbie in javascripting ,I'm having trouble in creating a quite simple script.&lt;br&gt;I have to create a page where the value of a variable, described earlier , should be greater than 1.&lt;br&gt;Let me show you what i want..&lt;br&gt;[code]&lt;br&gt;var count=20&lt;br&gt;var countnow=count+1&lt;br&gt;[b][i]What to use here to show 21[/i]?[/b]&lt;br&gt;[/code]&lt;br&gt;Please tell the solution.Or a better way to do what I'm willing to do.&lt;br&gt;As I said I'm a newbie so please correct me where I'm wrong in the above code.:)</description><pubDate>Mon, 18 Jul 2011 12:13:55 GMT</pubDate><dc:creator>moinism</dc:creator></item><item><title>I want to limit a textbox for values upto 240 (239.99 can also be entered). It has to be formatted by inserting "," or "." in appropriate positions, It should not allow user to enter values more than 2 places of decimal and the cursor should come back for editing the value</title><link>http://www.programminghelp.com/forums/Topic7574-20-1.aspx</link><description>&lt;DIV id=post_message_1113428&gt;Hi,&lt;BR&gt;&lt;BR&gt;I want to have a textbox in which only numeric values will be allowed whose maximum limit is 240( 230.99 should be allowed). I am unable to do that. I am able to format the value entered by placing . in proper places and also I have limited upto two decimal places. But the problem is the cursor is not moving left when I have entered a value and I am unable to limit the value upto 240. It is taking any huge number also. Please help. &lt;IMG class=inlineimg title=confused border=0 alt="" src="http://www.codingforums.com/images/smilies/confused.gif"&gt; My code is as below :-&lt;BR&gt;&lt;BR&gt;&amp;lt;html&amp;gt;&lt;BR&gt;&lt;BR&gt;&amp;lt;head&amp;gt;&lt;BR&gt;&lt;BR&gt;&amp;lt;script&amp;gt;&lt;BR&gt;function isNumberKey(evt)&lt;BR&gt;&lt;BR&gt;{&lt;BR&gt;&lt;BR&gt;var charCode = (evt.which) ? evt.which : event.keyCode&lt;BR&gt;&lt;BR&gt;if (charCode != 46 &amp;amp;&amp;amp; charCode &amp;gt; 31 &amp;amp;&amp;amp; (charCode &amp;lt; 48 || charCode &amp;gt; 57))&lt;BR&gt;&lt;BR&gt;return false;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;return true;&lt;BR&gt;&lt;BR&gt;}&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;function format(input){&lt;BR&gt;&lt;BR&gt;var num = input.value.replace(/\,/g,'');&lt;BR&gt;&lt;BR&gt;if(!isNaN(num)){&lt;BR&gt;&lt;BR&gt;if(num.indexOf('.') &amp;gt; -1){&lt;BR&gt;&lt;BR&gt;num = num.split('.');&lt;BR&gt;&lt;BR&gt;if(num[1].length &amp;gt; 2){&lt;BR&gt;&lt;BR&gt;num[1] = num[1].substring(0,num[1].length-1);&lt;BR&gt;&lt;BR&gt;} input.value = num[0]+'.'+num[1];&lt;BR&gt;&lt;BR&gt;} else {&lt;BR&gt;&lt;BR&gt;input.value = num.toString().split('').reverse().join('').replace(/(?=\d*\.?)(\d{3})/g,'$1,').split('').reverse().join('').replace(/^[\,]/,'') };&lt;BR&gt;&lt;BR&gt;} else {&lt;BR&gt;&lt;BR&gt;input.value = "";&lt;BR&gt;&lt;BR&gt;}&lt;BR&gt;&lt;BR&gt;}&lt;BR&gt;&amp;lt;/script&amp;gt;&lt;BR&gt;&amp;lt;/head&amp;gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&amp;lt;body&amp;gt;&lt;BR&gt;&amp;lt;label for="time"&amp;gt;Files staged in the last -&amp;lt;/label&amp;gt;&lt;BR&gt;&lt;BR&gt;&amp;lt;input name="time" id="time" type = "text" value="24" &amp;#111;nkeypress="return isNumberKey(event)" &amp;#111;nkeyup="format(this);"/&amp;gt; &amp;lt;span&amp;gt;hours&amp;lt;/span&amp;gt;&lt;BR&gt;&amp;lt;/body&amp;gt;&lt;BR&gt;&lt;BR&gt;&amp;lt;/html&amp;gt; &lt;/DIV&gt;&lt;!-- / message --&gt;</description><pubDate>Mon, 18 Jul 2011 07:16:33 GMT</pubDate><dc:creator>magiciansubhajit</dc:creator></item><item><title>Picking values from an array of objects</title><link>http://www.programminghelp.com/forums/Topic7538-20-1.aspx</link><description>H,&lt;br&gt;&lt;br&gt;I have an array of objects in javascript .This is what I have so far:&lt;br&gt;&lt;br&gt;[code]&lt;br&gt;&lt;script type="text/javascript"&gt;&lt;br&gt;            var prods = [&lt;br&gt;                {name: 'Wooly Jumper', color: 'Black', price: '50.00'},&lt;br&gt;                {name: 'Silk Scarf', color: 'Pink', price: '60.00'},&lt;br&gt;                {name: 'Denim Jeans', color: 'Blue', price: '80.00'}&lt;br&gt;            ];&lt;br&gt;            for(i=0; i &lt; prods.length; i++){&lt;br&gt;                alert(prods[i]['name']);  //displays the name value for each object&lt;br&gt;            }&lt;br&gt;&lt;/script&gt;&lt;br&gt;[/code]&lt;br&gt;&lt;br&gt;I'm trying to figure out how to write a function that takes the name as an input and property name as output and when the name is found using something like the above code, return the associated property name's value for that name. &lt;br&gt;&lt;br&gt;eg to use it like this: &lt;br&gt;&amp;#100;ocument.write getThePrice('Wooly Jumper');&lt;br&gt;&amp;#100;ocument.write getTheColor('Denim Jeans');&lt;br&gt;&lt;br&gt;&lt;br&gt;Any ideas?&lt;br&gt;&lt;br&gt;Many thanks in advance</description><pubDate>Thu, 30 Jun 2011 06:24:26 GMT</pubDate><dc:creator>tronman</dc:creator></item><item><title>JavaScript to Excel Pivot Table</title><link>http://www.programminghelp.com/forums/Topic7536-20-1.aspx</link><description>&lt;DIV id=post_message_1106085&gt;Greetings!&lt;BR&gt;Im new to this forum, looked around a bit and didnt find anything on this.&lt;BR&gt;I im creating a web page, in witch i have to export data from a data base to excel files..&lt;BR&gt;I already have a javascript using activeXobject, that exports the data to an excel table, what i also need to do is to create and pivot table in other excel sheet. &lt;BR&gt;Ive been tottaly stuck on this for a couple of days, does anyone have an example of how to create an excel pivot table using JavaScript?&lt;BR&gt;I would appreciate it so much =)&lt;BR&gt;&lt;BR&gt;Thanks in advance! &lt;/DIV&gt;</description><pubDate>Mon, 27 Jun 2011 12:02:02 GMT</pubDate><dc:creator>Cidzor</dc:creator></item><item><title>dynamic buttons depented on some field in mysql help</title><link>http://www.programminghelp.com/forums/Topic6851-20-1.aspx</link><description>hello!i will try to explain my problem here!forgive me from mu english :P&lt;br&gt;i want to create buttons depented on some field in mysql.i managed to pass the variable value (how many buttons to make) with php and javascript.Now i want for each button to make show some data from mysql! my problem is how to make each button act deferently?i try this&lt;br&gt;function addsubmit (fid)&lt;br&gt;{ for (i=0;i&lt;num;i++){                    //num is how many buttons to create&lt;br&gt;     &lt;br&gt;  var newsubmit = &amp;#100;ocument.createElement("input");&lt;br&gt;  newsubmit.type = "submit";&lt;br&gt;  newsubmit.id = "mysubmit"&amp;+submitCount;&lt;br&gt;  newsubmit.name = "mysubmit";&lt;br&gt;  newsubmit.value =i;&lt;br&gt;  fid.appendChild(newsubmit);&lt;br&gt;}&lt;br&gt;}&lt;br&gt;and i call in body &lt;body &amp;#111;nload="return addsubmit(myform1)";&gt; &lt;br&gt;how can i make each button to call a function with maybe some parameter to show my results ? tnx in advance!!&lt;br&gt;</description><pubDate>Fri, 20 May 2011 14:08:29 GMT</pubDate><dc:creator>evas</dc:creator></item><item><title>javascript help needed</title><link>http://www.programminghelp.com/forums/Topic6548-20-1.aspx</link><description>Hi All,&lt;br&gt;I have started learning how to write javascript at a local college but i'm having trouble learning how to use radio buttons and return the info.&lt;br&gt;My question is this.&lt;br&gt;Below i have the code i have had to write.&lt;br&gt;Essentially i have to have a text field that has entered into it a temperature.&lt;br&gt;Then a radio button is selected.&lt;br&gt;If the button selected is celsius it converts to fahrenheit and vice a versa.&lt;br&gt;I am having a lot of trouble working this out from text book.&lt;br&gt;&lt;br&gt;Hoping dearly someone can help me.&lt;br&gt;[CODE]&lt;br&gt;&lt;br&gt;&lt;html&gt;&lt;br&gt;&lt;head&gt;&lt;br&gt;&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;&lt;br&gt;&lt;title&gt;Untitled Document&lt;/title&gt;&lt;br&gt;&lt;script type="text/javascript"&gt;&lt;br&gt;&lt;br&gt;function submitIt()&lt;br&gt;{&lt;br&gt;var temperature = &amp;#100;ocument.getElementById("tempin");&lt;br&gt;var answer;&lt;br&gt;var len = f.temp.length&lt;br&gt;var type&lt;br&gt;for (i = 0; i &lt;len; i++) &lt;br /&gt;&lt;br&gt;{&lt;br&gt;	if (f.temp[i].checked) &lt;br /&gt;&lt;br&gt;	{&lt;br&gt;	type = f.temp[i].value;&lt;br&gt;	}&lt;br&gt;} &lt;br&gt;if (type == Cel)&lt;br&gt;{ &lt;br&gt;answer = 5/9 * (temperature - 32 );&lt;br&gt;} &lt;br&gt;&lt;br&gt;else if (type == Fah) &lt;br&gt;{ &lt;br&gt;answer = 9* temperature/5 + 32 ;&lt;br&gt;} &lt;br&gt;else &lt;br&gt;{&lt;br&gt;alert ("Try again"); &lt;br&gt;}&lt;br&gt;&amp;#100;ocument.getElementById("result").innerHTML = answer;&lt;br&gt;}&lt;br&gt;&lt;/script&gt;&lt;br&gt;&lt;/head&gt;&lt;br&gt;&lt;body&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;table width="29%" border="0" align="center" cellpadding="3"&gt;&lt;br&gt;&lt;br&gt;  &lt;tr&gt;&lt;br&gt;    &lt;td width="40%"&gt;&lt;h4&gt;&lt;strong&gt;Conversion of one temp to another.&lt;/strong&gt;&lt;br /&gt;&lt;br&gt;      1. Input a temperature &lt;br /&gt;&lt;br&gt;      2. Select celsius to convert to fahrenheit&lt;br /&gt;&lt;br&gt;      3. Select&lt;br&gt;      fahrenheit to convert to celsius&lt;/h4&gt;&lt;/td&gt;&lt;br&gt;    &lt;td width="40%"&gt;&lt;h2&gt; &lt;/h2&gt;&lt;/td&gt;&lt;br&gt;    &lt;/tr&gt;&lt;br&gt;  &lt;br&gt;  &lt;tr&gt;&lt;br&gt;    &lt;td&gt;&lt;label for="tempin"&gt;Temperature Input&lt;/label&gt;&lt;br&gt;      &lt;input type="text" name="tempin" id="tempin" value="" /&gt;&lt;/td&gt;&lt;br&gt;    &lt;td&gt;&lt;div id="result"&gt;&lt;br&gt;			&lt;/div&gt;&lt;/td&gt;&lt;br&gt;  &lt;/tr&gt;&lt;br&gt;  &lt;tr&gt;&lt;br&gt;    &lt;td colspan="3"&gt; &lt;label for="celSelect"&gt;Celsius&lt;/label&gt;&lt;br&gt;      &lt;input type="radio" name="temptype" id ="celsius" value="Cel" /&gt;&lt;br&gt;      &lt;br&gt;      &lt;label for="farhrenheit"&gt;Fahrenheit&lt;/label&gt;&lt;br&gt;      &lt;input type="radio" name="temptype" id="fahrenheit" value="Fah" /&gt;&lt;br&gt;      &lt;/td&gt;&lt;br&gt;  &lt;/tr&gt;&lt;br&gt; &lt;tr&gt;&lt;br&gt;    &lt;td colspan="4" align="right"&gt;&lt;br&gt;    &lt;input type="submit" name="Submit" value="Submit"&gt;      &lt;/td&gt;&lt;/td&gt;&lt;br&gt;    &lt;/tr&gt;&lt;br&gt;&lt;/table&gt;&lt;br&gt;&lt;br&gt; &lt;/form&gt;&lt;br&gt;&lt;br&gt;&lt;/body&gt;&lt;br&gt;&lt;/html&gt;&lt;br&gt;&lt;br&gt;             &lt;br&gt;&lt;br&gt;&lt;br&gt;[CODE]  &lt;br&gt;&lt;br&gt;&lt;br&gt;Thank you.&lt;br&gt;Neil&lt;br&gt;</description><pubDate>Sat, 02 Apr 2011 10:17:34 GMT</pubDate><dc:creator>neil275</dc:creator></item><item><title>which page is loaded? and its comparison</title><link>http://www.programminghelp.com/forums/Topic6493-20-1.aspx</link><description>:)i have an iframe on my webpage and i am loading appropriate page in it by clicking&lt;BR&gt;appropriate button but when user logs out and at that time some page is opened &lt;BR&gt;in iframe corresponding to the login pages(like "edit profile") of user then at &lt;BR&gt;that moment i want to know that what page is loaded in iframe so that i close it&lt;BR&gt;(if it corresponds to pages of login like "edit profile") as user logs out and if &lt;BR&gt;it does not correspond to login pages then it remains as it is.For doing that i&lt;BR&gt; must know that what page is loaded in iframe and compare it in " if(condition)&lt;BR&gt;{statement} in logout function" with the logion pages so that i know that if any &lt;BR&gt;of them is loaded in iframe and if loaded then close it.Can you help me with that&lt;BR&gt; by giving exact code example.</description><pubDate>Tue, 29 Mar 2011 02:23:45 GMT</pubDate><dc:creator>green_shores</dc:creator></item><item><title>store javascript object in cokie for close child window</title><link>http://www.programminghelp.com/forums/Topic5642-20-1.aspx</link><description>how to store javascript object in cokie for close child window form anywhere on site.&lt;br&gt;&lt;br&gt;My requirement is i have session out button and i am opening multiple child window from home &lt;br&gt;&lt;br&gt;page and at same time i am navigating some other page after navigating the pages (my child &lt;br&gt;&lt;br&gt;window still open that i open from home page) at end of the i am clicking on session out &lt;br&gt;&lt;br&gt;button at that time my child window should close.</description><pubDate>Wed, 01 Dec 2010 01:20:51 GMT</pubDate><dc:creator>mohdanis2010</dc:creator></item><item><title>Make menu script relative rather than absolute</title><link>http://www.programminghelp.com/forums/Topic6006-20-1.aspx</link><description>I inherited this script for menus.  It's great, except the menu positions are absolute so when I center the page they appear at the wrong place.  I can't find a way to change that and I'm hoping someone here can figure it out.  There is a position: absolute line in the code but changing that to relative just screws up the script.&lt;br&gt;&lt;br&gt;See below.&lt;br&gt;&lt;br&gt;&lt;code&gt;&lt;br&gt;function SwitchMenu(obj){&lt;br&gt;if(&amp;#100;ocument.getElementById){&lt;br&gt;var el = &amp;#100;ocument.getElementById(obj);&lt;br&gt;el.className = 'navblueon';&lt;br&gt;}&lt;br&gt;}&lt;br&gt;function SwitchMenu2(obj){&lt;br&gt;if(&amp;#100;ocument.getElementById){&lt;br&gt;var el = &amp;#100;ocument.getElementById(obj);&lt;br&gt;el.className = 'navblue';&lt;br&gt;}&lt;br&gt;}&lt;br&gt;function showSubNav(obj){&lt;br&gt;var subnav;&lt;br&gt;var thisobj;&lt;br&gt;if(&amp;#100;ocument.getElementById){&lt;br&gt;thisobj = "&amp;#100;ocument.getElementById('" + obj + "Menu')";&lt;br&gt;}&lt;br&gt;else if(&amp;#100;ocument.all){&lt;br&gt;thisobj = "&amp;#100;ocument.all['" + obj + "Menu']";&lt;br&gt;}&lt;br&gt;subnav = eval(thisobj);&lt;br&gt;if (subnav){&lt;br&gt;subnav.style.visibility = 'visible';	&lt;br&gt;}&lt;br&gt;}&lt;br&gt;function hideSubNav(obj){&lt;br&gt;var subnav;&lt;br&gt;var thisobj;&lt;br&gt;if(&amp;#100;ocument.getElementById){&lt;br&gt;thisobj = "&amp;#100;ocument.getElementById('" + obj + "Menu')";&lt;br&gt;}&lt;br&gt;else if(&amp;#100;ocument.all){&lt;br&gt;thisobj = "&amp;#100;ocument.all['" + obj + "Menu']";&lt;br&gt;}&lt;br&gt;subnav = eval(thisobj);&lt;br&gt;if (subnav){&lt;br&gt;subnav.style.visibility = 'hidden';	&lt;br&gt;}&lt;br&gt;}&lt;br&gt;var arSubNav = new Array();&lt;br&gt;arSubNav[0] = new Array("td1",10,111," ","/"," ","/");&lt;br&gt;arSubNav[1] = new Array("td2",177,202,"Test","/test.html","Test2","/test2.html","Test3","/test3.html");&lt;br&gt;arSubNav[2] = new Array("td3",378,202,"Test4","/test4.html","Test5","/test5.html","Test6","/test6.html");&lt;br&gt;arSubNav[3] = new Array("td4",580,130," "," ");&lt;br&gt;arSubNav[4] = new Array("td5",670,110,"Just go","/");&lt;br&gt;function writeSubNav(bgc, rbgc, textcolor, rtextcolor, linecolor, bordercolor){&lt;br&gt;if ((&amp;#100;ocument.all) || (&amp;#100;ocument.getElementById)){&lt;br&gt;var j = 0;&lt;br&gt;var subnav = "";&lt;br&gt;for (j = 0; j &lt; arSubNav.length; j++){&lt;br&gt;subnav += "&lt;div id=\"" + arSubNav[j][0] + "Menu\" style=\"z-index:999;position: absolute; filter: Alpha(Opacity=100); cursor: hand; left: " + arSubNav[j][1] + "; width: " + arSubNav[j][2] + ";  visibility: hidden\" &amp;#111;nmouseover=\"showSubNav('" + arSubNav[j][0] + "'); SwitchMenu('" + arSubNav[j][0] + "');\" &amp;#111;nmouseout=\"hideSubNav('" + arSubNav[j][0] + "'); SwitchMenu2('" + arSubNav[j][0] + "')\"&gt;";&lt;br&gt;subnav += "&lt;table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"" + arSubNav[j][2] + "\"&gt;";&lt;br&gt;subnav += "&lt;tr&gt;";&lt;br&gt;subnav += "&lt;td width=\"1\" bgcolor=\"" + bordercolor + "\"&gt;&lt;img src=\"/images/indent.gif\" width=\"1\" height=\"1\"&gt;&lt;/td&gt;";&lt;br&gt;subnav += "&lt;td colspan=\"1\" bgcolor=\"114b93\" height=\"1\"&gt;&lt;img src=\"/images/indent.gif\" width=\"1\" height=\"1\"&gt;&lt;/td&gt;";&lt;br&gt;subnav += "&lt;td width=\"1\" bgcolor=\"" + bordercolor + "\"&gt;&lt;img src=\"/images/indent.gif\" width=\"1\" height=\"1\"&gt;&lt;/td&gt;";&lt;br&gt;subnav += "&lt;/tr&gt;";&lt;br&gt;subnav += "&lt;tr&gt;";&lt;br&gt;subnav += "&lt;td width=\"1\" bgcolor=\"" + bordercolor + "\"&gt;&lt;img src=\"/images/indent.gif\" width=\"1\" height=\"1\"&gt;&lt;/td&gt;";&lt;br&gt;subnav += "&lt;td colspan=\"1\" bgcolor=\"cccccc\" height=\"1\"&gt;&lt;img src=\"/images/indent.gif\" width=\"1\" height=\"1\"&gt;&lt;/td&gt;";&lt;br&gt;subnav += "&lt;td width=\"1\" bgcolor=\"" + bordercolor + "\"&gt;&lt;img src=\"/images/indent.gif\" width=\"1\" height=\"1\"&gt;&lt;/td&gt;";&lt;br&gt;subnav += "&lt;/tr&gt;";&lt;br&gt;subnav += "&lt;tr&gt;";&lt;br&gt;subnav += "&lt;td width=\"1\" bgcolor=\"" + bordercolor + "\"&gt;&lt;img src=\"/images/indent.gif\" width=\"1\" height=\"1\"&gt;&lt;/td&gt;";&lt;br&gt;subnav += "&lt;td colspan=\"1\" bgcolor=\"ebebeb\" height=\"1\"&gt;&lt;img src=\"/images/indent.gif\" width=\"1\" height=\"1\"&gt;&lt;/td&gt;";&lt;br&gt;subnav += "&lt;td width=\"1\" bgcolor=\"" + bordercolor + "\"&gt;&lt;img src=\"/images/indent.gif\" width=\"1\" height=\"1\"&gt;&lt;/td&gt;";&lt;br&gt;subnav += "&lt;/tr&gt;";&lt;br&gt;subnav += "&lt;tr&gt;";&lt;br&gt;subnav += "&lt;td width=\"1\" bgcolor=\"" + bordercolor + "\"&gt;&lt;img src=\"/images/indent.gif\" width=\"1\" height=\"1\"&gt;&lt;/td&gt;";&lt;br&gt;subnav += "&lt;td colspan=\"1\" bgcolor=\"f7f7f7\" height=\"1\"&gt;&lt;img src=\"/images/indent.gif\" width=\"1\" height=\"1\"&gt;&lt;/td&gt;";&lt;br&gt;subnav += "&lt;td width=\"1\" bgcolor=\"" + bordercolor + "\"&gt;&lt;img src=\"/images/indent.gif\" width=\"1\" height=\"1\"&gt;&lt;/td&gt;";&lt;br&gt;subnav += "&lt;/tr&gt;";&lt;br&gt;for (i=3; i &lt; arSubNav[j].length-1; i=i+2){&lt;br&gt;subnav += "&lt;tr&gt;";&lt;br&gt;subnav += "&lt;td width=\"1\" bgcolor=\"" + bordercolor + "\"&gt;&lt;img src=\"/images/indent.gif\" width=\"1\" height=\"22\"&gt;&lt;/td&gt;";&lt;br&gt;subnav += "&lt;td width=\"100%\" align=\"left\" bgcolor=\"" + bgc + "\" class=\"\" &amp;#111;nclick=\"&amp;#100;ocument.location.href='" + arSubNav[j][i+1] + "'\" &amp;#111;nmouseover=\"this.bgColor='" + rbgc + "';this.style.color='" + rtextcolor+ "';\" &amp;#111;nmouseout=\"this.bgColor='" + bgc + "';this.style.color='" + textcolor + "'\" style=\"color: " + textcolor + "\" nowrap&gt;&lt;div style=\"padding-left:0px;\"&gt;&lt;img src=\"/images/indent.gif\" width=\"10\" height=\"1\"&gt;&lt;img src=\"/images/triangle.gif\"&gt;" + arSubNav[j][i] + "&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;";&lt;br&gt;subnav += "&lt;td width=\"1\" bgcolor=\"" + bordercolor + "\"&gt;&lt;img src=\"/images/indent.gif\" width=\"1\" height=\"22\"&gt;&lt;/td&gt;";&lt;br&gt;subnav += "&lt;/tr&gt;";&lt;br&gt;}&lt;br&gt;subnav += "&lt;tr&gt;";&lt;br&gt;subnav += "&lt;td align=\"left\" colspan=\"3\" height=\"6\"&gt;&lt;table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\"&gt;&lt;tr&gt;&lt;td rowspan=\"6\"&gt;&lt;img src=\"/images/btleft.gif\" width=\"6\" height=\"6\"&gt;&lt;/td&gt;&lt;td width=\"100%\" height=\"1\" bgcolor=\"f8f8f8\"&gt;&lt;img src=\"/images/indent.gif\" width=\"1\" height=\"1\"&gt;&lt;/td&gt;&lt;td rowspan=\"6\"&gt;&lt;img src=\"/images/btright.gif\" width=\"6\" height=\"6\"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td height=\"1\" bgcolor=\"ffffff\"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td height=\"1\" bgcolor=\"f8f8f8\"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td height=\"1\" bgcolor=\"ffffff\"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td height=\"1\" bgcolor=\"f8f8f8\"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td height=\"1\" bgcolor=\"" + bordercolor + "\"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/td&gt;";&lt;br&gt;subnav += "&lt;/tr&gt;";&lt;br&gt;subnav += "&lt;/table&gt;";&lt;br&gt;subnav += "&lt;/div&gt;";&lt;br&gt;}&lt;br&gt;&amp;#100;ocument.write(subnav);&lt;br&gt;}&lt;br&gt;}&lt;br&gt;&lt;/code&gt;</description><pubDate>Mon, 21 Feb 2011 22:45:49 GMT</pubDate><dc:creator>htmanning</dc:creator></item><item><title>details is undefined</title><link>http://www.programminghelp.com/forums/Topic5835-20-1.aspx</link><description>Hello all&lt;br&gt;I'm new to JavaScript and just having a bit of trouble.&lt;br&gt;&lt;br&gt;I have some code that works in IE and Chrome but Firefox wont run it at all.&lt;br&gt;&lt;br&gt;Error in Firefox is: "details is undefined".  &lt;br&gt;&lt;br&gt;The line it gives the error on is:&lt;br&gt;&lt;br&gt;if(details.lastname.value=="")&lt;br&gt;&lt;br&gt;where details is the ID of the HTML form and lastname is the ID of the text box.&lt;br&gt;&lt;br&gt;If anybody has any suggestions they would be most welcome.&lt;br&gt;&lt;br&gt;Cheers&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</description><pubDate>Tue, 25 Jan 2011 09:29:53 GMT</pubDate><dc:creator>qprwinst</dc:creator></item><item><title>responseXML Object</title><link>http://www.programminghelp.com/forums/Topic5741-20-1.aspx</link><description>[B]Hi guys...&lt;br&gt;I download this code for form validation... but every time my responseXML object getting null....&lt;br&gt;&lt;br&gt;Im not loading any external XML file here to load data here.... but still its not working for me....[/B]&lt;br&gt;&lt;br&gt;var serverAddress = "reg.jsp";&lt;br&gt;&lt;br&gt;function validate(inputValue, fieldID){&lt;br&gt;    &lt;br&gt;    if (xmlHttp){&lt;br&gt;        &lt;br&gt;        if (fieldID){&lt;br&gt;            inputValue = encodeURIComponent(inputValue);&lt;br&gt;            fieldID = encodeURIComponent(fieldID);&lt;br&gt;            cache.push("inputValue=" + inputValue + "&amp;fieldID=" + fieldID);&lt;br&gt;        }&lt;br&gt;       &lt;br&gt;        try{&lt;br&gt;           &lt;br&gt;            if ((xmlHttp.readyState == 4 || xmlHttp.readyState == 0) &amp;&amp; cache.length &gt; 0){&lt;br&gt;                &lt;br&gt;                var cacheEntry = cache.shift();&lt;br&gt;                &lt;br&gt;                xmlHttp.open("POST", serverAddress, true);&lt;br&gt;                xmlHttp.setRequestHeader("Content-Type","text/xml; charset=utf-8");&lt;br&gt;                xmlHttp.onreadystatechange = handleRequestStateChange&lt;br&gt;                xmlHttp.send(cacheEntry);&lt;br&gt;            }&lt;br&gt;        }catch (e){&lt;br&gt;            displayError(e.toString());&lt;br&gt;        }&lt;br&gt;    }&lt;br&gt;}&lt;br&gt;&lt;br&gt;function handleRequestStateChange(){&lt;br&gt;    if (xmlHttp.readyState == 4){&lt;br&gt;        if (xmlHttp.status == 200){&lt;br&gt;            try{&lt;br&gt;                readResponse();&lt;br&gt;            }catch(e){&lt;br&gt;                displayError("HERE AT METHOD CALL &gt;"+e.toString());&lt;br&gt;            }&lt;br&gt;        }else{&lt;br&gt;            displayError(xmlHttp.statusText);&lt;br&gt;        }&lt;br&gt;    }&lt;br&gt;}&lt;br&gt;&lt;br&gt;function readResponse(){&lt;br&gt;    &lt;br&gt;    var response = xmlHttp.responseText;&lt;br&gt;&lt;br&gt;    if (response.indexOf("ERRNO") &gt;= 0 || response.indexOf("error:") &gt;= 0 || response.length == 0)&lt;br&gt;        throw(response.length == 0 ? "Server error." : response);&lt;br&gt;&lt;br&gt;    responseXml = xmlHttp.responseXML;&lt;br&gt;&lt;br&gt;    xmlDoc = responseXml.documentElement;&lt;br&gt;    result = xmlDoc.getElementsByTagName("result")[0].firstChild.data;&lt;br&gt;    fieldID = xmlDoc.getElementsByTagName("fieldid")[0].firstChild.data;&lt;br&gt;&lt;br&gt;    message = &amp;#100;ocument.getElementById(fieldID + "Failed");&lt;br&gt;    message.className = (result == "0") ? "error" : "hidden";&lt;br&gt;&lt;br&gt;    setTimeout("validate();", 250);&lt;br&gt;}&lt;br&gt;&lt;br&gt;function setFocus(){&lt;br&gt;    &amp;#100;ocument.getElementById("txtUsername").focus();&lt;br&gt;}&lt;br&gt;&lt;br&gt;Thanks...</description><pubDate>Fri, 31 Dec 2010 04:36:24 GMT</pubDate><dc:creator>amlsoft</dc:creator></item><item><title>JavaScript Input Stream</title><link>http://www.programminghelp.com/forums/Topic5729-20-1.aspx</link><description>I am facing a problem, where I receive a  compressed (ZLIB)  Input stream from a web service.&lt;/P&gt;&lt;P&gt;I have to read this stream on the client side.&lt;/P&gt;&lt;P&gt;Please advise how can I&lt;/P&gt;&lt;P&gt;1. Receive and read this inputstream using JavaScript/AJAX/JQUERY&lt;BR&gt;2. Decompress the stream&lt;/P&gt;&lt;P&gt;Although I can do this using JAVA and .NET but I have to do this at the client side.&lt;/P&gt;&lt;P&gt;Please help. &lt;BR&gt;</description><pubDate>Thu, 30 Dec 2010 07:43:29 GMT</pubDate><dc:creator>rajeevraina</dc:creator></item><item><title>how do I amend this code to apply to all files, not just .JPGS?</title><link>http://www.programminghelp.com/forums/Topic5704-20-1.aspx</link><description>You will see in the below code that it sets up the number of thumbnails (7) and then runs a loop to grab each image by replacing the _1.jpg, _2.jpg, etc, as each image is in a folder on the server called 4837_1.jpg, 4837_2.jpg, etc.&lt;br&gt;&lt;br&gt;I need to amend this code so that it will read all types of file formats, not just .jpgs. How would you do this?&lt;br&gt;&lt;br&gt;&lt;br&gt;	how_many_thumbnails=7&lt;br&gt;&lt;br&gt;	var id="ctl00_ctl00_mainslot_partmedia_nppmblock_imgPart";&lt;br&gt;	var name=&amp;#100;ocument.getElementById(id).src;&lt;br&gt;	&lt;br&gt;	for (i=1;i &lt;= how_many_thumbnails;i++) {&lt;br&gt;		newsrc=name.replace(/_1.jpg/i, "_"+i+".jpg");&lt;br&gt;		&lt;br&gt;		&amp;#100;ocument.getElementById("tn"+i).src=newsrc;&lt;br&gt;		}&lt;br&gt;	&lt;br&gt;	function showpic(number) {&lt;br&gt;	&amp;#100;ocument.getElementById(id).src=name.replace(/_1.jpg/i, "_"+number+".jpg");&lt;br&gt;	thePath=&amp;#100;ocument.getElementById(id).src;&lt;br&gt;	}	&lt;br&gt;			&lt;br&gt;</description><pubDate>Tue, 14 Dec 2010 08:02:51 GMT</pubDate><dc:creator>disloxic</dc:creator></item><item><title>Help Using Javascript</title><link>http://www.programminghelp.com/forums/Topic4195-20-1.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;I have no knowledge of javascript but the company I work for needed to add a visual countdown clock to our intranet and I magaed to copy and paste a code onto our site and modified the end date we required. I have now been asked to change the font size and add a line of text above the countdown but I am struggling to find information online to assit with adding additional code.&lt;/P&gt;&lt;P&gt;I have copied the code below and would be grateful if anybody can help.&lt;/P&gt;&lt;P&gt;&amp;lt;script language="JavaScript"&amp;gt; TargetDate = "12/31/2012 09:00 AM"; BackColor = "white"; ForeColor = "navy"; CountActive = true; CountStepper = -1; LeadingZero = true; DisplayFormat = "%%D%% Days, %%H%% Hours, %%M%% Minutes, %%S%% Seconds."; FinishMessage = "Countdown has completed"; &amp;lt;/script&amp;gt; &amp;lt;script language="JavaScript" src="&lt;A href="http://scripts.hashemian.com/js/countdown.js%22%3E%3C/script"&gt;&lt;FONT color=#0000ff&gt;http://scripts.hashemian.com/js/countdown.js"&amp;gt;&amp;lt;/script&lt;/FONT&gt;&lt;/A&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;Thanks</description><pubDate>Wed, 15 Jul 2009 07:21:22 GMT</pubDate><dc:creator>graz64</dc:creator></item><item><title>Need Help: Javascript Multiplication Test</title><link>http://www.programminghelp.com/forums/Topic5522-20-1.aspx</link><description>Hello,&lt;br&gt;&lt;br&gt;I am trying to write a javascript page that shuffles an array of questions ( 1x1 , 1x2, 1x3 - 1x12), prints them, then has the user type in the answer, then checks them to make sure the user answer is correct. &lt;br&gt;I have looked up a lot of source code for javascript "quiz" but they all are multiple choice answers and the questions are not shuffled. This is as far as I have gotten, but now I am not sure how to take the user input text and compare them to the answer / question array to make sure to check. &lt;br&gt;&lt;br&gt;&lt;br&gt;			var quest = new Array;&lt;br&gt;			var ans = new Array;&lt;br&gt;			var questprint = new Array;&lt;br&gt;			&lt;br&gt;			quest[0] = "1 x 1   ";&lt;br&gt;			quest[1] = "1 x 2   ";&lt;br&gt;			quest[2] = "1 x 3   ";&lt;br&gt;			quest[3] = "1 x 4   ";&lt;br&gt;			quest[4] = "1 x 5   ";&lt;br&gt;			quest[5] = "1 x 6   ";&lt;br&gt;			quest[6] = "1 x 7   ";&lt;br&gt;			quest[7] = "1 x 8   ";&lt;br&gt;			quest[8] = "1 x 9   ";&lt;br&gt;			quest[9] = "1 x 10  ";&lt;br&gt;			quest[10] = "1 x 11  ";&lt;br&gt;			quest[11] = "1 x 12  ";&lt;br&gt;			&lt;br&gt;			questprint[0] = quest[0]+"&lt;input type='text' name='q0'&gt;&lt;/input&gt;&lt;br&gt;";&lt;br&gt;			questprint[1] = quest[1]+"&lt;input type='text' name='q1'&gt;&lt;/input&gt;&lt;br&gt;";&lt;br&gt;			questprint[2] = quest[2]+"&lt;input type='text' name='q2'&gt;&lt;/input&gt;&lt;br&gt;";&lt;br&gt;			questprint[3] = quest[3]+"&lt;input type='text' name='q3'&gt;&lt;/input&gt;&lt;br&gt;";&lt;br&gt;			questprint[4] = quest[4]+"&lt;input type='text' name='q4'&gt;&lt;/input&gt;&lt;br&gt;";&lt;br&gt;			questprint[5] = quest[5]+"&lt;input type='text' name='q5'&gt;&lt;/input&gt;&lt;br&gt;";&lt;br&gt;			questprint[6] = quest[6]+"&lt;input type='text' name='q6'&gt;&lt;/input&gt;&lt;br&gt;";&lt;br&gt;			questprint[7] = quest[7]+"&lt;input type='text' name='q7'&gt;&lt;/input&gt;&lt;br&gt;";&lt;br&gt;			questprint[8] = quest[8]+"&lt;input type='text' name='q8'&gt;&lt;/input&gt;&lt;br&gt;";&lt;br&gt;			questprint[9] = quest[9]+"&lt;input type='text' name='q9'&gt;&lt;/input&gt;&lt;br&gt;";&lt;br&gt;			questprint[10] = quest[10]+"&lt;input type='text' name='q10'&gt;&lt;/input&gt;&lt;br&gt;";&lt;br&gt;			questprint[11] = quest[11]+"&lt;input type='text' name='q11'&gt;&lt;/input&gt;&lt;br&gt;";&lt;br&gt;			&lt;br&gt;			&lt;br&gt;			var score = 0;&lt;br&gt;			ans[0] = 1;&lt;br&gt;			ans[1] = 2;&lt;br&gt;			ans[2] = 3;&lt;br&gt;			ans[3] = 4;&lt;br&gt;			ans[4] = 5;&lt;br&gt;			ans[5] = 6;&lt;br&gt;			ans[6] = 7;&lt;br&gt;			ans[7] = 8;&lt;br&gt;			ans[8] = 9;&lt;br&gt;			ans[9] = 10;&lt;br&gt;			ans[10] = 11;&lt;br&gt;			ans[11] = 12; &lt;br&gt;			&lt;br&gt;			function shuffle() {&lt;br&gt;				return (Math.round(Math.random())-.5); &lt;br&gt;			}&lt;br&gt;			&lt;br&gt;			questprint.sort(shuffle);&lt;br&gt;			&lt;br&gt;&lt;br&gt;				&amp;#100;ocument.write(questprint[0]);&lt;br&gt;				&amp;#100;ocument.write(questprint[1]);&lt;br&gt;				&amp;#100;ocument.write(questprint[2]);&lt;br&gt;				&amp;#100;ocument.write(questprint[3]);&lt;br&gt;				&amp;#100;ocument.write(questprint[4]);&lt;br&gt;				&amp;#100;ocument.write(questprint[5]);&lt;br&gt;				&amp;#100;ocument.write(questprint[6]);&lt;br&gt;				&amp;#100;ocument.write(questprint[7]);&lt;br&gt;				&amp;#100;ocument.write(questprint[8]);&lt;br&gt;				&amp;#100;ocument.write(questprint[9]);&lt;br&gt;				&amp;#100;ocument.write(questprint[10]);&lt;br&gt;				&amp;#100;ocument.write(questprint[11]);&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks =]</description><pubDate>Tue, 09 Nov 2010 23:09:03 GMT</pubDate><dc:creator>leafeater</dc:creator></item><item><title>Javascript not working in liquid css button</title><link>http://www.programminghelp.com/forums/Topic5461-20-1.aspx</link><description>&lt;FONT face=Arial&gt;I have a web application but need to introduce various themes in it. So i used liquid css buttons so that images used for buttons are less and take minimum time to load.&lt;/FONT&gt;&lt;P&gt;&lt;FONT size=2&gt;But later i found that javacript:return functionname() doesnt work in it.&lt;BR&gt;Please find the css code to find a solution for the same.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;body {&lt;BR&gt;margin: 0;&lt;BR&gt;padding: 10px;&lt;BR&gt;font-family: Verdana, Arial, Helvetica, sans-serif;&lt;BR&gt;font-size: 14px;&lt;BR&gt;}&lt;BR&gt;.btn {&lt;BR&gt;float: left;&lt;BR&gt;clear: both;&lt;BR&gt;background: url(images/btn_left.png) no-repeat;&lt;BR&gt;padding: 0 0 0 10px;&lt;BR&gt;margin: 5px 0;&lt;BR&gt;}&lt;BR&gt;.btn a{&lt;BR&gt;float: left;&lt;BR&gt;height: 40px;&lt;BR&gt;background: url(images/btn_stretch.png) repeat-x left top;&lt;BR&gt;line-height: 40px;&lt;BR&gt;padding: 0 10px;&lt;BR&gt;color: #fff;&lt;BR&gt;font-size: 1em;&lt;BR&gt;text-decoration: none;&lt;BR&gt;}&lt;BR&gt;.btn span {&lt;BR&gt;background: url(images/btn_right.png) no-repeat;&lt;BR&gt;float: left;&lt;BR&gt;width: 10px;&lt;BR&gt;height: 40px;&lt;BR&gt;}&lt;BR&gt;.btn_addtocart { background-color: green; }&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;B&gt;HTML code:&lt;/B&gt;&lt;BR&gt;&lt;BR&gt;&amp;lt;div class="btn btn_addtocart"&amp;gt;&amp;lt;a href="#&amp;gt;Submit&amp;lt;/a&amp;gt;&amp;lt;span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&lt;BR&gt;&amp;lt;div class="clear"&amp;gt;&amp;lt;/div&amp;gt;&lt;BR&gt;Background Color: Red&lt;BR&gt;&lt;BR&gt;The existing application uses &lt;BR&gt;&amp;lt;input type="image" &amp;#111;nclick="javascript&lt;B&gt;&lt;/B&gt;:return FunctionName()&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;Can i have an alternative javascript to work on above css code??&lt;/FONT&gt;</description><pubDate>Wed, 20 Oct 2010 06:42:21 GMT</pubDate><dc:creator>arc_85</dc:creator></item><item><title>ON Key click ., javascript should occur</title><link>http://www.programminghelp.com/forums/Topic5248-20-1.aspx</link><description>I need to assign a key in the javascript to actually make the javascript work,.&lt;br&gt;&lt;br&gt;I have a bookmark in chrome , a javascript , which actually works when clicked on it .,. but how can i edit it so that i can actually make it work on click a key or combination of keys.&lt;br&gt;&lt;br&gt;Thanks in advance ., pls help ., urgent&lt;br&gt;&lt;br&gt;Nani&lt;br&gt;</description><pubDate>Sat, 04 Sep 2010 17:18:28 GMT</pubDate><dc:creator>aravitejareddy</dc:creator></item><item><title>Browser compatibility using JS</title><link>http://www.programminghelp.com/forums/Topic5187-20-1.aspx</link><description>This page works fine in Firefox and Chome, but not in IE.  What am I doing wrong?  The scrolling feature works fine, otherwise.  What is the problem?  Since it works in other browsers I don't think it can be my jquery link. Thanks for any  advice.&lt;/P&gt;&lt;P&gt;&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "&lt;A href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&lt;/A&gt;"&amp;gt;&lt;BR&gt;&amp;lt;html xmlns="&lt;A href="http://www.w3.org/1999/xhtml"&gt;http://www.w3.org/1999/xhtml&lt;/A&gt;"&amp;gt;&lt;BR&gt;&amp;lt;head&amp;gt;&lt;BR&gt;&amp;lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&amp;gt;&lt;BR&gt;&amp;lt;title&amp;gt;My Photos&amp;lt;/title&amp;gt;&lt;BR&gt;&amp;lt;script type="text/javascript" src="&lt;A href='http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"&gt;&lt;/script'&gt;http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"&amp;gt;&amp;lt;/script&lt;/A&gt;&amp;gt;&lt;BR&gt;&amp;lt;script type="text/javascript" src="../scripts/jquery.scrollTo-min.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR&gt;&amp;lt;script type="text/javascript" src="../scripts/scripts.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR&gt;&amp;lt;link rel="stylesheet" type="text/css" href="../styles/styles.css" /&amp;gt;&lt;BR&gt;&amp;lt;/head&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;body class="sub-page"&amp;gt;&lt;/P&gt;&lt;P&gt;    &amp;lt;div id="contentholder"&amp;gt; &lt;/P&gt;&lt;P&gt;    &amp;lt;div id="image-fade"&amp;gt;&lt;BR&gt;       &amp;lt;div class="left"&amp;gt;&amp;lt;/div&amp;gt;&lt;BR&gt;        &amp;lt;div class="right"&amp;gt;&amp;lt;/div&amp;gt;&lt;BR&gt;       &amp;lt;/div&amp;gt;&lt;BR&gt;      &amp;lt;div id="image-nav"&amp;gt;&lt;BR&gt;        &amp;lt;a class="back" href="blankfornow"&amp;gt;&amp;lt;/a&amp;gt;&lt;BR&gt;        &amp;lt;a class="forward" href="blank for now"&amp;gt;&amp;lt;/a&amp;gt;&lt;BR&gt;   &amp;lt;/div&amp;gt;&lt;BR&gt;   &lt;BR&gt;    &amp;lt;div id="photos"&amp;gt;&lt;BR&gt;  &amp;lt;ul&amp;gt;           &lt;BR&gt;            &amp;lt;li&amp;gt;&amp;lt;img src="../photos/1.jpg" alt="" /&amp;gt;&amp;lt;/li&amp;gt;&lt;BR&gt;            &amp;lt;li&amp;gt;&amp;lt;img src="../photos/2.jpg" alt="" /&amp;gt;&amp;lt;/li&amp;gt;&lt;BR&gt;            &amp;lt;li&amp;gt;&amp;lt;img src="../photos/3.jpg" alt="" /&amp;gt;&amp;lt;/li&amp;gt;&lt;BR&gt;            &amp;lt;li&amp;gt;&amp;lt;img src="../photos/4.jpg" alt="" /&amp;gt;&amp;lt;/li&amp;gt;&lt;BR&gt;            &amp;lt;li&amp;gt;&amp;lt;img src="../photos/5.jpg" alt="" /&amp;gt;&amp;lt;/li&amp;gt;&lt;BR&gt;            &amp;lt;li&amp;gt;&amp;lt;img src="../photos/6.jpg" alt="" /&amp;gt;&amp;lt;/li&amp;gt;&lt;BR&gt;            &amp;lt;li&amp;gt;&amp;lt;img src="../photos/7.jpg" alt="" /&amp;gt;&amp;lt;/li&amp;gt;&lt;BR&gt;            &amp;lt;li&amp;gt;&amp;lt;img src="../photos/8.jpg" alt="" /&amp;gt;&amp;lt;/li&amp;gt;&lt;BR&gt;            &amp;lt;li&amp;gt;&amp;lt;img src="../photos/9.jpg" alt="" /&amp;gt;&amp;lt;/li&amp;gt;&lt;BR&gt;            &amp;lt;li&amp;gt;&amp;lt;img src="../photos/10.jpg" alt="" /&amp;gt;&amp;lt;/li&amp;gt;&lt;BR&gt;  &amp;lt;/ul&amp;gt;               &lt;BR&gt;    &amp;lt;/div&amp;gt;&lt;BR&gt; &amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/body&amp;gt;&lt;BR&gt;&amp;lt;/html&amp;gt;</description><pubDate>Sat, 17 Apr 2010 09:08:12 GMT</pubDate><dc:creator>oportland</dc:creator></item><item><title>Javascript drop down menu compatibility issues</title><link>http://www.programminghelp.com/forums/Topic5182-20-1.aspx</link><description>Hi, I have found the following script for a drop down menu and I was wondering if there was a way to fix any of the following issues:&lt;br&gt;&lt;br&gt;1) When you select an item on the menu, go to the new page, and then when you go back to the original page the menu item is still "open" and don't disappear until you hover over them. (So far I've only noticed this on firefox)&lt;br&gt;&lt;br&gt;2) In IE7 (okay in IE8 and Firefox) when you move your mouse to the second level of the drop menu that expands to the right, it will disappear and instead jump to the drop down items of the next tab to the right.&lt;br&gt;&lt;br&gt;3) In IE sometimes the menu items will drop down in two parts. The left hand side of the boxes/text and then the right hand side will follow. &lt;br&gt;&lt;br&gt;Any help would be greatly appreciated! &lt;br&gt;Thanks!&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;[code]&lt;br&gt;var menu=function(){&lt;br&gt;	var t=15,z=50,s=6,a;&lt;br&gt;	function dd(n){this.n=n; this.h=[]; this.c=[]}&lt;br&gt;	dd.prototype.init=function(p,c){&lt;br&gt;		a=c; var w=&amp;#100;ocument.getElementById(p), s=w.getElementsByTagName('ul'), l=s.length, i=0;&lt;br&gt;		for(i;i&lt;l;i++){&lt;br&gt;			var h=s[i].parentNode; this.h[i]=h; this.c[i]=s[i];&lt;br&gt;			h.&amp;#111;nmouseover=new Function(this.n+'.st('+i+',true)');&lt;br&gt;			h.&amp;#111;nmouseout=new Function(this.n+'.st('+i+')');&lt;br&gt;		}&lt;br&gt;	}&lt;br&gt;	dd.prototype.st=function(x,f){&lt;br&gt;		var c=this.c[x], h=this.h[x], p=h.getElementsByTagName('a')[0];&lt;br&gt;		clearInterval(c.t); c.style.overflow='hidden';&lt;br&gt;		if(f){&lt;br&gt;			p.className+=' '+a;&lt;br&gt;			if(!c.mh){c.style.display='block'; c.style.height=''; c.mh=c.offsetHeight; c.style.height=0}&lt;br&gt;			if(c.mh==c.offsetHeight){c.style.overflow='visible'}&lt;br&gt;			else{c.style.zIndex=z; z++; c.t=setInterval(function(){sl(c,1)},t)}&lt;br&gt;		}else{p.className=p.className.replace(a,''); c.t=setInterval(function(){sl(c,-1)},t)}&lt;br&gt;	}&lt;br&gt;	function sl(c,f){&lt;br&gt;		var h=c.offsetHeight;&lt;br&gt;		if((h&lt;=0&amp;&amp;f!=1)||(h&gt;=c.mh&amp;&amp;f==1)){&lt;br&gt;			if(f==1){c.style.filter=''; c.style.opacity=1; c.style.overflow='visible'}&lt;br&gt;			clearInterval(c.t); return&lt;br&gt;		}&lt;br&gt;		var d=(f==1)?Math.ceil((c.mh-h)/s):Math.ceil(h/s), o=h/c.mh;&lt;br&gt;		c.style.opacity=o; c.style.filter='alpha(opacity='+(o*100)+')';&lt;br&gt;		c.style.height=h+(d*f)+'px'&lt;br&gt;	}&lt;br&gt;	return{dd:dd}&lt;br&gt;}();&lt;br&gt;[/code]</description><pubDate>Sat, 03 Apr 2010 15:16:57 GMT</pubDate><dc:creator>zeebo17</dc:creator></item><item><title>Need URGENT help! Javascript univercity assignment</title><link>http://www.programminghelp.com/forums/Topic5016-20-1.aspx</link><description>Hi guys, getting a little desperate with an assignment i have due in this week and im really stumped, javascript is quite new to me. If anyone has abit of spare time to point me in the right direction i would be greatly in your dept!&lt;BR&gt;&lt;BR&gt;So heres there task.&lt;BR&gt;&lt;BR&gt;I have been given some javascript code which creates a path finder script. Basicly it finds the fastest way between 2 points on a simple map. For example if i wanted 2 go between point A to point E it would find the quickest rought. There are 7 nodes A-though G. They are set out in a map liek format. They have links between them ( not every node is linked to every other) and each link has a weighting applied to it. &lt;BR&gt;&lt;BR&gt;                  [a]&lt;BR&gt;               7 /    \8&lt;BR&gt;            [b]   -   [c]&lt;BR&gt;         10  /   4      \&lt;BR&gt;          [d]       &lt;BR&gt;              5 \         |9&lt;BR&gt;               [e] -2[f]&lt;BR&gt;                         | 1&lt;BR&gt;                       [g]&lt;BR&gt;Thats what the diagram looks like exscuse the crudness. But for example going from point A to E, has several different routes. A,B,D,E; A,C,F,E; etc. The code i have been given already calculates the routes and the different weightings for each route. The lower the rating the better the route.&lt;BR&gt;What i have to do is take this information and display it in a Table like form with all different routes displayed with the most affective highlighted in some way. Also i need a function which enables you to choose the to nodes (start and finish) which will change the tables results. This must all be done  on the same page.&lt;/P&gt;&lt;P&gt;Heres the code which creates the Network, nodes and paths. This js code will be in an external js file which i have already created and linked to an html file which i have also been given and will paste below. If any1 can give me some advise on where 2 start i will love you forever :) Thanks for your time if u require some mroe information, my exsplaination of the task is quite poor plz let me know. thanks alot!&lt;BR&gt;Oh and im not really looking for a entire solution just some advise on where to start and how the js code is working. Thankyou!&lt;/P&gt;&lt;P&gt;var NETWORK = new Array ();&lt;/P&gt;&lt;P&gt;var PATHS = null;&lt;/P&gt;&lt;P&gt;function Node(i,n,l) {&lt;BR&gt;   this.id = i&lt;BR&gt;   this.name  = n;&lt;BR&gt;   this.links = l;&lt;BR&gt;}&lt;/P&gt;&lt;P&gt;function Link (n,w) {&lt;BR&gt; this.node = n;&lt;BR&gt; this.weight = w;&lt;BR&gt;}&lt;/P&gt;&lt;P&gt;function getNode (name) {&lt;BR&gt; for (var i=0;i&amp;lt;NETWORK.length;i++) {&lt;BR&gt;  if (name==NETWORK[i].name) return NETWORK[i];&lt;BR&gt; }&lt;BR&gt;}&lt;/P&gt;&lt;P&gt;function getLinks (name) {&lt;BR&gt; var node =  getNode (name);&lt;BR&gt; return node.links&lt;BR&gt;}&lt;/P&gt;&lt;P&gt;function getNextLinkIndex(obj) {&lt;BR&gt; return obj.links.length;&lt;BR&gt;}&lt;/P&gt;&lt;P&gt;function getLinkLength(obj) {&lt;BR&gt; node = obj&lt;BR&gt; return getNextLinkIndex (node)&lt;BR&gt;}&lt;/P&gt;&lt;P&gt;function addNode(name){&lt;BR&gt; var Links = new Array ();&lt;BR&gt; var nextIndex = NETWORK.length;&lt;BR&gt; var n = new Node(nextIndex, name ,Links);&lt;BR&gt;  NETWORK[nextIndex] = n&lt;BR&gt;  return n&lt;BR&gt;}&lt;/P&gt;&lt;P&gt;function addLink (node1,node2,weight) {&lt;BR&gt; linkIndex1 = getNextLinkIndex(node1);&lt;BR&gt; linkIndex2 = getNextLinkIndex(node2);&lt;BR&gt; link = new Link(node2,weight)&lt;BR&gt; linkback = new Link(node1,weight)&lt;BR&gt; node1.links[linkIndex1] = link;&lt;BR&gt; node2.links[linkIndex2] = linkback;&lt;BR&gt;}&lt;/P&gt;&lt;P&gt;function nodeExplored (name,path) {&lt;BR&gt; if (path.search(name)==-1)&lt;BR&gt;  return true;&lt;BR&gt; else&lt;BR&gt;  return false;&lt;BR&gt;}&lt;/P&gt;&lt;P&gt;function getLink (node1,node2) {&lt;BR&gt; for (var i in node1.links) {&lt;BR&gt;  if (node2.id == node1.links[i].node.id) return node1.links[i];&lt;BR&gt; }&lt;BR&gt;}&lt;/P&gt;&lt;P&gt;function getWeight (node1,node2) {&lt;BR&gt; return getLink(node1,node2).weight&lt;BR&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR&gt;function calculateWeightings (path) {&lt;BR&gt; var nodes = path.split(";");&lt;BR&gt; var weighting = 0;&lt;BR&gt; for (var i = 0, j =1;j&amp;lt;nodes.length; i++, j++){&lt;BR&gt;  weighting = weighting + getWeight(getNode(nodes[i]),getNode(nodes[j]));&lt;BR&gt; }&lt;BR&gt; return Math.round(weighting*100)/100;&lt;BR&gt;}&lt;/P&gt;&lt;P&gt;function createNetwork () {&lt;/P&gt;&lt;P&gt; var nodeA = addNode ("A");&lt;BR&gt; var nodeB = addNode ("B");&lt;BR&gt; var nodeC = addNode ("C");&lt;BR&gt; var nodeD = addNode ("D");&lt;BR&gt; var nodeE = addNode ("E");&lt;BR&gt; var nodeF = addNode ("F");&lt;BR&gt; var nodeG = addNode ("G");&lt;/P&gt;&lt;P&gt;&lt;BR&gt; addLink(nodeA,nodeB,8);&lt;BR&gt; addLink(nodeA,nodeC,7);&lt;BR&gt; addLink(nodeB,nodeC,4);&lt;BR&gt; addLink(nodeB,nodeE,2);&lt;BR&gt; addLink(nodeB,nodeF,9);&lt;BR&gt; addLink(nodeC,nodeD,10);&lt;BR&gt; addLink(nodeD,nodeE,5);&lt;BR&gt; addLink(nodeF,nodeG,1);&lt;BR&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR&gt;function findPaths (s,t,nol,path,side,trace) {&lt;BR&gt; if (trace) &amp;#100;ocument.write("S="+s.name+" T="+t.name+" L="+nol+" "+side+" P="+path+"&amp;lt;br&amp;gt;");&lt;/P&gt;&lt;P&gt; if (nol == 0) { // all links for node explored no path found&lt;BR&gt;  if (trace) &lt;BR&gt;   &amp;#100;ocument.write("all links for " + s.name + " explored&amp;lt;br&amp;gt;");&lt;BR&gt;   return;&lt;BR&gt; }&lt;BR&gt; else {&lt;BR&gt;  if (s.id == t.id) { // goal achieved routing path to target found&lt;BR&gt;   var weighting = calculateWeightings(path);&lt;BR&gt;   if (PATHS == null)&lt;BR&gt;    PATHS = path + ";" + weighting;&lt;BR&gt;   else&lt;BR&gt;    PATHS = PATHS + ":" + path + ";" + weighting;&lt;BR&gt;   if (trace) &amp;#100;ocument.write ("&amp;lt;p align=left&amp;gt;target and source match path=" + path + " weighting=" + weighting + "&amp;lt;/p&amp;gt;");&lt;BR&gt;  }&lt;BR&gt;  else {&lt;BR&gt;   if ((getLinkLength(s)==1) &amp;amp; (side!="root")){  // no match blind alley&lt;BR&gt;    if (trace) &amp;#100;ocument.write("end node found for " + s.name + " back track &amp;lt;br&amp;gt;");&lt;BR&gt;    return;&lt;BR&gt;   }&lt;BR&gt;   else {&lt;BR&gt;    linkedNode = s.links[nol-1].node;&lt;BR&gt;    if (!nodeExplored (linkedNode.name, path)) {  // node exists path already explored&lt;BR&gt;     if (trace) &amp;#100;ocument.write("existing path for " + linkedNode.name + "&amp;lt;br&amp;gt;");&lt;BR&gt;      findPaths(s ,t,nol-1,path,"rhs",trace)&lt;BR&gt;     }&lt;BR&gt;    else { // an unexplored path&lt;BR&gt;     if (trace) &amp;#100;ocument.write("unexplored path for " + linkedNode.name + "&amp;lt;br&amp;gt;");&lt;BR&gt;      findPaths(linkedNode,t,getLinkLength(linkedNode),path + ";" + linkedNode.name,"lhs",trace)&lt;BR&gt;     findPaths(s ,t,nol-1,path,"rhs",trace)&lt;BR&gt;    }&lt;BR&gt;   }&lt;BR&gt;  }&lt;BR&gt; }&lt;BR&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR&gt;function traverseNetwork (source,target,trace) {&lt;BR&gt; var sourceObj  = getNode(source);&lt;BR&gt; var targetObj  = getNode(target);&lt;BR&gt; var nodeLinks  = getLinkLength(sourceObj);&lt;BR&gt; var path     = sourceObj.name+""&lt;BR&gt; PATHS = null;&lt;BR&gt; findPaths(sourceObj,targetObj,nodeLinks,path,"root",trace);&lt;BR&gt;}&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------------------------------------------------------------------------&lt;BR&gt;HTML FILE CODE&lt;/P&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" id=syn_row1 class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=HTML_TAG&gt;&lt;FONT color=#0000ff&gt;&amp;lt;&lt;/FONT&gt;&lt;SPAN class=HTML_ELM&gt;&lt;FONT color=#800000&gt;html&lt;/FONT&gt;&lt;/SPAN&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" id=syn_row2 class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;	&lt;SPAN class=HTML_TAG&gt;&lt;FONT color=#0000ff&gt;&amp;lt;&lt;/FONT&gt;&lt;SPAN class=HTML_ELM&gt;&lt;FONT color=#800000&gt;head&lt;/FONT&gt;&lt;/SPAN&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV class=SYN_LNB&gt; &lt;/DIV&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" id=syn_row3 class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;		&lt;SPAN class=HTML_TAG&gt;&lt;FONT color=#0000ff&gt;&amp;lt;&lt;/FONT&gt;&lt;SPAN class=HTML_ELM&gt;&lt;FONT color=#800000&gt;title&lt;/FONT&gt;&lt;/SPAN&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;/SPAN&gt; Model of a network of nodes &lt;SPAN class=HTML_TAG&gt;&lt;FONT color=#0000ff&gt;&amp;lt;/&lt;/FONT&gt;&lt;SPAN class=HTML_ELM&gt;&lt;FONT color=#800000&gt;title&lt;/FONT&gt;&lt;/SPAN&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" id=syn_row4 class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;		&lt;SPAN class=HTML_TAG&gt;&lt;FONT color=#0000ff&gt;&amp;lt;&lt;/FONT&gt;&lt;SPAN class=HTML_ELM&gt;&lt;FONT color=#800000&gt;script&lt;/FONT&gt;&lt;/SPAN&gt;&lt;FONT color=#0000ff&gt; &lt;/FONT&gt;&lt;SPAN class=HTML_ATR&gt;&lt;FONT color=#ff0000&gt;src&lt;/FONT&gt;&lt;/SPAN&gt;&lt;FONT color=#0000ff&gt;=&lt;SPAN class=HTML_VAL&gt;"modelNetwork.js"&lt;/SPAN&gt;&amp;gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN class=JS_TXT&gt;&lt;FONT style="BACKGROUND-COLOR: #f0f0f0"&gt; &lt;SPAN class=JS_COM&gt;&lt;FONT color=#008000&gt;//load functions and create global variables for best path tool&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV class=SYN_LNB&gt; &lt;/DIV&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" id=syn_row5 class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=JS_TXT&gt;&lt;FONT style="BACKGROUND-COLOR: #f0f0f0"&gt;		&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN class=HTML_TAG&gt;&lt;FONT color=#0000ff&gt;&amp;lt;/&lt;/FONT&gt;&lt;SPAN class=HTML_ELM&gt;&lt;FONT color=#800000&gt;script&lt;/FONT&gt;&lt;/SPAN&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" id=syn_row6 class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;&lt;/SPAN&gt; &lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" id=syn_row7 class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;	&lt;SPAN class=HTML_TAG&gt;&lt;FONT color=#0000ff&gt;&amp;lt;/&lt;/FONT&gt;&lt;SPAN class=HTML_ELM&gt;&lt;FONT color=#800000&gt;head&lt;/FONT&gt;&lt;/SPAN&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" id=syn_row8 class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;	&lt;SPAN class=HTML_TAG&gt;&lt;FONT color=#0000ff&gt;&amp;lt;&lt;/FONT&gt;&lt;SPAN class=HTML_ELM&gt;&lt;FONT color=#800000&gt;body&lt;/FONT&gt;&lt;/SPAN&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" id=syn_row9 class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;		&lt;SPAN class=HTML_TAG&gt;&lt;FONT color=#0000ff&gt;&amp;lt;&lt;/FONT&gt;&lt;SPAN class=HTML_ELM&gt;&lt;FONT color=#800000&gt;script&lt;/FONT&gt;&lt;/SPAN&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" id=syn_row10 class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=JS_TXT&gt;&lt;FONT style="BACKGROUND-COLOR: #f0f0f0"&gt;			&lt;SPAN class=JS_COM&gt;&lt;FONT color=#008000&gt;/*&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" id=syn_row11 class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=JS_TXT&gt;&lt;SPAN class=JS_COM&gt;&lt;FONT style="BACKGROUND-COLOR: #f0f0f0" color=#008000&gt;			Line 22 runs the function createNetwork() which creates a model of&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" id=syn_row12 class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=JS_TXT&gt;&lt;SPAN class=JS_COM&gt;&lt;FONT style="BACKGROUND-COLOR: #f0f0f0" color=#008000&gt;			a node network (see Figure 1 of assignment brief).&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" id=syn_row13 class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=JS_TXT&gt;&lt;SPAN class=JS_COM&gt;&lt;FONT style="BACKGROUND-COLOR: #f0f0f0" color=#008000&gt;			The function makes a series of nodes and links them together.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" id=syn_row14 class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=JS_TXT&gt;&lt;SPAN class=JS_COM&gt;&lt;FONT style="BACKGROUND-COLOR: #f0f0f0" color=#008000&gt;			Each link has a weighting associated with it and is used to indicate how busy&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" id=syn_row15 class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=JS_TXT&gt;&lt;SPAN class=JS_COM&gt;&lt;FONT style="BACKGROUND-COLOR: #f0f0f0" color=#008000&gt;			the conection is between two nodes - the higher the weighting the&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" id=syn_row16 class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=JS_TXT&gt;&lt;SPAN class=JS_COM&gt;&lt;FONT style="BACKGROUND-COLOR: #f0f0f0" color=#008000&gt;			busier the connection.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" id=syn_row17 class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=JS_TXT&gt;&lt;SPAN class=JS_COM&gt;&lt;FONT style="BACKGROUND-COLOR: #f0f0f0" color=#008000&gt;			The data representation of the 'network of nodes' is formally&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" id=syn_row18 class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=JS_TXT&gt;&lt;SPAN class=JS_COM&gt;&lt;FONT style="BACKGROUND-COLOR: #f0f0f0" color=#008000&gt;			referred to as a graph. This is a non-linear data structure commonly&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" id=syn_row19 class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=JS_TXT&gt;&lt;SPAN class=JS_COM&gt;&lt;FONT style="BACKGROUND-COLOR: #f0f0f0" color=#008000&gt;			used in computing.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" id=syn_row20 class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=JS_TXT&gt;&lt;SPAN class=JS_COM&gt;&lt;FONT style="BACKGROUND-COLOR: #f0f0f0" color=#008000&gt;			*/&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" id=syn_row21 class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=JS_TXT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" id=syn_row22 class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=JS_TXT&gt;&lt;FONT style="BACKGROUND-COLOR: #f0f0f0"&gt;			createNetwork();&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" id=syn_row23 class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=JS_TXT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;BR&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV class=SYN_LNB&gt; &lt;/DIV&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" id=syn_row24 class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=JS_TXT&gt;&lt;FONT style="BACKGROUND-COLOR: #f0f0f0"&gt;			&lt;SPAN class=JS_COM&gt;&lt;FONT color=#008000&gt;/*&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" id=syn_row25 class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=JS_TXT&gt;&lt;SPAN class=JS_COM&gt;&lt;FONT style="BACKGROUND-COLOR: #f0f0f0" color=#008000&gt;			Line 35 runs the  function traverseNetwork() which finds all the paths between two nodes&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" id=syn_row26 class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=JS_TXT&gt;&lt;SPAN class=JS_COM&gt;&lt;FONT style="BACKGROUND-COLOR: #f0f0f0" color=#008000&gt;			The function searches the network created by createNetwork() and finds all&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" id=syn_row27 class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=JS_TXT&gt;&lt;SPAN class=JS_COM&gt;&lt;FONT style="BACKGROUND-COLOR: #f0f0f0" color=#008000&gt;			the possible routes between the source (a node named "A") and an&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV class=SYN_LNB&gt; &lt;/DIV&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" id=syn_row28 class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=JS_TXT&gt;&lt;SPAN class=JS_COM&gt;&lt;FONT style="BACKGROUND-COLOR: #f0f0f0" color=#008000&gt;			target (a node named "E").&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" id=syn_row29 class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=JS_TXT&gt;&lt;SPAN class=JS_COM&gt;&lt;FONT style="BACKGROUND-COLOR: #f0f0f0" color=#008000&gt;			The traverseNetwork function accepts three arguments. The first two arguments are&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" id=syn_row30 class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=JS_TXT&gt;&lt;SPAN class=JS_COM&gt;&lt;FONT style="BACKGROUND-COLOR: #f0f0f0" color=#008000&gt;			the name of the source node and the name of the target node respectively.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" id=syn_row31 class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=JS_TXT&gt;&lt;SPAN class=JS_COM&gt;&lt;FONT style="BACKGROUND-COLOR: #f0f0f0" color=#008000&gt;			The third argument is a boolean value that is either true or false. It is currently&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" id=syn_row32 class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=JS_TXT&gt;&lt;SPAN class=JS_COM&gt;&lt;FONT style="BACKGROUND-COLOR: #f0f0f0" color=#008000&gt;			set to false, but what happens when you set it to true?&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV class=SYN_LNB&gt; &lt;/DIV&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" id=syn_row33 class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=JS_TXT&gt;&lt;SPAN class=JS_COM&gt;&lt;FONT style="BACKGROUND-COLOR: #f0f0f0" color=#008000&gt;			*/&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV class=SYN_LNB&gt; &lt;/DIV&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" id=syn_row34 class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=JS_TXT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;BR&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV class=SYN_LNB&gt; &lt;/DIV&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" id=syn_row35 class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=JS_TXT&gt;&lt;FONT style="BACKGROUND-COLOR: #f0f0f0"&gt;			traverseNetwork(&lt;SPAN class=JS_STR&gt;&lt;FONT color=#800000&gt;"A"&lt;/FONT&gt;&lt;/SPAN&gt;,&lt;SPAN class=JS_STR&gt;&lt;FONT color=#800000&gt;"E"&lt;/FONT&gt;&lt;/SPAN&gt;,false);&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV class=SYN_LNB&gt; &lt;/DIV&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" id=syn_row36 class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=JS_TXT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;BR&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV class=SYN_LNB&gt; &lt;/DIV&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" id=syn_row37 class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=JS_TXT&gt;&lt;FONT style="BACKGROUND-COLOR: #f0f0f0"&gt;			&lt;SPAN class=JS_COM&gt;&lt;FONT color=#008000&gt;/*&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=JS_TXT&gt;&lt;SPAN class=JS_COM&gt;&lt;FONT style="BACKGROUND-COLOR: #f0f0f0" color=#008000&gt;  	Line 56 writes all the paths found between the two nodes  "A" and "E" to the current &amp;#100;ocument.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV class=SYN_LNB&gt;&lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=JS_TXT&gt;&lt;SPAN class=JS_COM&gt;&lt;FONT style="BACKGROUND-COLOR: #f0f0f0" color=#008000&gt;  	PATHS is a global variable that stores the results of the search conducted by the function traverseNetwork(...)&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=JS_TXT&gt;&lt;SPAN class=JS_COM&gt;&lt;FONT style="BACKGROUND-COLOR: #f0f0f0" color=#008000&gt;The results of the search (i.e. the contents of the PATHS variable) appear as a delimited String Object thus:&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV class=SYN_LNB&gt; &lt;/DIV&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" id=syn_row41 class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=JS_TXT&gt;&lt;SPAN class=JS_COM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=JS_TXT&gt;&lt;SPAN class=JS_COM&gt;&lt;FONT style="BACKGROUND-COLOR: #f0f0f0" color=#008000&gt;available paths = A;C;D;E;22:A;C;B;E;13:A;B;E;10:A;B;C;D;E;27&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV class=SYN_LNB&gt; &lt;/DIV&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" id=syn_row43 class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=JS_TXT&gt;&lt;SPAN class=JS_COM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;BR&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV class=SYN_LNB&gt; &lt;/DIV&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" id=syn_row44 class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=JS_TXT&gt;&lt;SPAN class=JS_COM&gt;&lt;FONT style="BACKGROUND-COLOR: #f0f0f0" color=#008000&gt;			The notation for the above String is as follows:&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV class=SYN_LNB&gt; &lt;/DIV&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" id=syn_row45 class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=JS_TXT&gt;&lt;SPAN class=JS_COM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;BR&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV class=SYN_LNB&gt; &lt;/DIV&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" id=syn_row46 class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=JS_TXT&gt;&lt;SPAN class=JS_COM&gt;&lt;FONT style="BACKGROUND-COLOR: #f0f0f0" color=#008000&gt;				* each path is seperated by a colon ":"&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV class=SYN_LNB&gt; &lt;/DIV&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" id=syn_row47 class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=JS_TXT&gt;&lt;SPAN class=JS_COM&gt;&lt;FONT style="BACKGROUND-COLOR: #f0f0f0" color=#008000&gt;				* there are four paths&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV class=SYN_LNB&gt; &lt;/DIV&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" id=syn_row48 class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=JS_TXT&gt;&lt;SPAN class=JS_COM&gt;&lt;FONT style="BACKGROUND-COLOR: #f0f0f0" color=#008000&gt;				* nodes in a path are separated by a semi-colon ";"&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV class=SYN_LNB&gt; &lt;/DIV&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" id=syn_row49 class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=JS_TXT&gt;&lt;SPAN class=JS_COM&gt;&lt;FONT style="BACKGROUND-COLOR: #f0f0f0" color=#008000&gt;				* nodes is identified by its name i.e. 'A' for node A&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV class=SYN_LNB&gt; &lt;/DIV&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" id=syn_row50 class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=JS_TXT&gt;&lt;SPAN class=JS_COM&gt;&lt;FONT style="BACKGROUND-COLOR: #f0f0f0" color=#008000&gt;				* the first node in a path is the source node&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV class=SYN_LNB&gt; &lt;/DIV&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=JS_TXT&gt;&lt;SPAN class=JS_COM&gt;&lt;FONT style="BACKGROUND-COLOR: #f0f0f0" color=#008000&gt;				* the penultinate node in a path is the target node&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=JS_TXT&gt;&lt;SPAN class=JS_COM&gt;&lt;FONT style="BACKGROUND-COLOR: #f0f0f0" color=#008000&gt;   	&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=JS_TXT&gt;&lt;SPAN class=JS_COM&gt;&lt;FONT style="BACKGROUND-COLOR: #f0f0f0" color=#008000&gt;* the numerical value (last item of each path) is the total weighting&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV class=SYN_LNB&gt;&lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=JS_TXT&gt;&lt;SPAN class=JS_COM&gt;&lt;FONT style="BACKGROUND-COLOR: #f0f0f0" color=#008000&gt;   	* total weighting refers to cummulative weighting associated with each link&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV class=SYN_LNB&gt; &lt;/DIV&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" id=syn_row54 class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=JS_TXT&gt;&lt;SPAN class=JS_COM&gt;&lt;FONT style="BACKGROUND-COLOR: #f0f0f0" color=#008000&gt;			*/&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV class=SYN_LNB&gt;&lt;BR&gt; &lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV class=SYN_LNB&gt;&lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=JS_TXT&gt;&lt;FONT style="BACKGROUND-COLOR: #f0f0f0"&gt;  	&amp;#100;ocument.write(&lt;SPAN class=JS_STR&gt;&lt;FONT color=#800000&gt;"available path = "&lt;/FONT&gt;&lt;/SPAN&gt; + PATHS); &lt;SPAN class=JS_COM&gt;&lt;FONT color=#008000&gt;//print all the paths found between node A and node E&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV class=SYN_LNB&gt; &lt;/DIV&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" id=syn_row57 class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=JS_TXT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;BR&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV class=SYN_LNB&gt; &lt;/DIV&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" id=syn_row58 class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=JS_TXT&gt;&lt;FONT style="BACKGROUND-COLOR: #f0f0f0"&gt;		&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN class=HTML_TAG&gt;&lt;FONT color=#0000ff&gt;&amp;lt;/&lt;/FONT&gt;&lt;SPAN class=HTML_ELM&gt;&lt;FONT color=#800000&gt;script&lt;/FONT&gt;&lt;/SPAN&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV class=SYN_LNB&gt; &lt;/DIV&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" id=syn_row59 class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;	&lt;SPAN class=HTML_TAG&gt;&lt;FONT color=#0000ff&gt;&amp;lt;/&lt;/FONT&gt;&lt;SPAN class=HTML_ELM&gt;&lt;FONT color=#800000&gt;body&lt;/FONT&gt;&lt;/SPAN&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=SYN_ROW&gt;&lt;DIV class=SYN_LNB&gt; &lt;/DIV&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" id=syn_row60 class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=HTML_TAG&gt;&lt;FONT color=#0000ff&gt;&amp;lt;/&lt;/FONT&gt;&lt;SPAN class=HTML_ELM&gt;&lt;FONT color=#800000&gt;html&lt;/FONT&gt;&lt;/SPAN&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV style="TEXT-INDENT: -0.5em; PADDING-LEFT: 1em" id=syn_row1 class=SYN_TXT&gt;&lt;SPAN class=HTML_TXT&gt;&lt;SPAN class=HTML_TAG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/DIV&gt;</description><pubDate>Tue, 26 Jan 2010 10:18:04 GMT</pubDate><dc:creator>barberino</dc:creator></item><item><title>Convert Script Help</title><link>http://www.programminghelp.com/forums/Topic1708-20-1.aspx</link><description>I want help with a program with JAVASCRIPT in an HTML &amp;#119;indow. I was thinking of something like this....&lt;P&gt;-----&lt;/P&gt;&lt;P&gt;[ BOX 1 ] [Output BOX 1]&lt;/P&gt;&lt;P&gt;-----&lt;/P&gt;&lt;P&gt;Lets say, that in BOX 1, you put the letter 'H'. It would then put in the outbox, the letter 'G' or something....so it takes the first letter, and converts it to another.&lt;/P&gt;&lt;P&gt;It takes a letter / number and converts it to another preset letter / number. Was planning on a secret chat language or something...maybe could incorporate it into my flash games too.&lt;/P&gt;&lt;P&gt;Thank you for all your help and suggestions! I am new to this website, so thank you very much for your time! My idea is that it would be able to be put into an HTML &amp;#119;indow. I know HTML very well too. Have no idea about JS, but have been to w3schools.com. :w00t: :D :)</description><pubDate>Wed, 16 Apr 2008 20:40:44 GMT</pubDate><dc:creator>ChiefOfGxBxL</dc:creator></item><item><title>java and litlle bit of hacks</title><link>http://www.programminghelp.com/forums/Topic4962-20-1.aspx</link><description>Hello there. maybe this is offtopic, but can you tell me how to use Fire bug to find javascripts.&lt;br&gt;i have seen how with java scripts can open pages what are'n showen but i dont know how to  do that.&lt;br&gt;&lt;br&gt;like page is based on java, to open MESSAGES i tjpe "open_(messages)" this worked for the this portal "www.draugiem.lv" but i dont know how or where to get tohos scripts..&lt;br&gt;&lt;br&gt;&lt;br&gt;sorry for my bad english, 'm form latvia and im still learning.</description><pubDate>Wed, 20 Jan 2010 13:21:26 GMT</pubDate><dc:creator>piiiters</dc:creator></item><item><title>How to use js to read a domain cookie beginning with dot (.)</title><link>http://www.programminghelp.com/forums/Topic4860-20-1.aspx</link><description>How to use js to read a domain cookie beginning with dot (.) ([b].[/b]google.com)&lt;br&gt;&amp;#100;ocument.cookie only gives cookies without the dot (google.com)</description><pubDate>Wed, 23 Dec 2009 15:33:45 GMT</pubDate><dc:creator>ArcyQwerty</dc:creator></item><item><title>Javascript Start-up?</title><link>http://www.programminghelp.com/forums/Topic11-20-1.aspx</link><description>I am planning to start with my Javascript training. With the complicated syntax of Javascript, can anyone share a simple project and the codes that were used that a newbie like me can easily follow? Your help will be greatly appreciated :D</description><pubDate>Mon, 22 Jan 2007 18:01:46 GMT</pubDate><dc:creator>weber</dc:creator></item><item><title>RADIO BUTTONS</title><link>http://www.programminghelp.com/forums/Topic4593-20-1.aspx</link><description>When I don't press a radio button it comes up with an alert saying I need to which is what I want but when I do press one it still comes up with that alert, How do I stop that from happening?&lt;br&gt;&lt;br&gt;IN FUNCTION FIELDCHECK I HAVE WRITTEN:&lt;br&gt;case "radio_hidden":&lt;br&gt;	 if (fld.value != "1")/* radio male or female button should be checked*/&lt;br&gt;	     {&lt;br&gt;		 fld.valid = true;&lt;br&gt;		 }&lt;br&gt;     break;&lt;br&gt;IN MY FUNCTION VALIDATE FORM I HAVE WRITTEN:&lt;br&gt;if (frm.radio_hidden.valid == false)&lt;br&gt;{&lt;br&gt;report_text += " You must click a radio button male or female."&lt;br&gt;}&lt;br&gt;&lt;br&gt;IN MY HTML CODE THIS IS WHAT I HAVE WRITTEN:&lt;br&gt;&lt;br&gt;&lt;u&gt;Select Your gender:&lt;/u&gt;&lt;br&gt;&lt;br&gt;     &lt;br&gt;		 &lt;input type="radio" name="rad" value="" &amp;#111;nchange="radio_hidden.value = 1;"&gt; Male&lt;br&gt; &lt;br&gt;&lt;br&gt;     &lt;input type="radio" name="rad" value="" &amp;#111;nchange="radio_hidden.value = 1;"&gt; Female&lt;br&gt; &lt;br&gt;&lt;br&gt;    &lt;input name="radio_hidden" value="1" type="hidden"&gt;</description><pubDate>Sun, 01 Nov 2009 09:30:03 GMT</pubDate><dc:creator>tilly01</dc:creator></item><item><title>Help needed to remove this Javascript error(hscroll1 is undefined)</title><link>http://www.programminghelp.com/forums/Topic4100-20-1.aspx</link><description>Hi friends&lt;BR&gt;Please help to remove this error from my webpage.&lt;BR&gt;Error is : "scroll1 is undefined" scroll1 is a variable which it says undefined.&lt;BR&gt;I  dont know how to define it.&lt;BR&gt;Please read it carefully first before coming to any  conclusion.&lt;BR&gt;Please take a look to this code.&lt;BR&gt;#############################################&lt;BR&gt;&amp;lt;HTML&amp;gt;&lt;BR&gt;&amp;lt;HEAD&amp;gt;&lt;BR&gt;&amp;lt;TITLE&amp;gt;Horizontal Image Scroller 3&amp;lt;/TITLE&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;script type="text/javascript"&amp;gt;&lt;BR&gt;&amp;lt;!--&lt;BR&gt;// Jeff&lt;BR&gt;// &lt;A href="http://www.huntingground.freeserve.co.uk"&gt;www.huntingground.freeserve.co.uk&lt;/A&gt;&lt;/P&gt;&lt;P&gt;// ********** User Defining Area **********&lt;/P&gt;&lt;P&gt;data=[&lt;BR&gt;["images/netflix_logo.gif","Alt / Title text for image 1",""],&lt;BR&gt;["images/lavalife_logo.gif","Alt / Title text for image 2",""],&lt;BR&gt;["images/carsdirect_logo.gif","Alt / Title text for image 3",""],&lt;BR&gt;["images/delta_logo.gif","Alt / Title text for image 4",""],&lt;BR&gt;["images/disneyshopping_logo.gif","Alt / Title text for image 5",""],&lt;BR&gt;["images/enterprise_logo.gif","Alt / Title text for image 6",""],&lt;BR&gt;["images/montgomeryward_logo.gif","Alt / Title text for image 7",""],&lt;BR&gt;["images/walmart_logo.gif","Alt / Title text for image 8",""]// no comma at end of last index&lt;BR&gt;]&lt;/P&gt;&lt;P&gt;imgPlaces=4 // number of images visible&lt;BR&gt;imgWidth=145 // width of the images&lt;BR&gt;imgHeight=50 // height of the images&lt;BR&gt;imgSpacer=4 // space between the images&lt;/P&gt;&lt;P&gt;dir=0 // 0 = left, 1 = right&lt;/P&gt;&lt;P&gt;newWindow=1 // 0 = Open a new window for links 0 = no  1 = yes&lt;/P&gt;&lt;P&gt;// ********** End User Defining Area **********&lt;/P&gt;&lt;P&gt;moz=&amp;#100;ocument.getElementById&amp;amp;&amp;amp;!&amp;#100;ocument.all&lt;/P&gt;&lt;P&gt;step=1&lt;BR&gt;timer=""&lt;BR&gt;speed=30&lt;BR&gt;nextPic=0&lt;BR&gt;initPos=new Array()&lt;BR&gt;nowDivPos=new Array()&lt;/P&gt;&lt;P&gt;function initHIS3(){&lt;/P&gt;&lt;P&gt;for(var i=0;i&amp;lt;imgPlaces+1;i++){ // create image holders&lt;BR&gt;newImg=&amp;#100;ocument.createElement("IMG")&lt;BR&gt;newImg.setAttribute("id","pic_"+i)&lt;BR&gt;newImg.setAttribute("src","")&lt;BR&gt;newImg.style.position="absolute"&lt;BR&gt;newImg.style.width=imgWidth+"px"&lt;BR&gt;newImg.style.height=imgHeight+"px"&lt;BR&gt;newImg.style.border=0&lt;BR&gt;newImg.alt=""&lt;BR&gt;newImg.i=i&lt;BR&gt;newImg.&amp;#111;nclick=function(){his3Win(data[this.i][2])}&lt;BR&gt;&amp;#100;ocument.getElementById("display_area").appendChild(newImg)&lt;BR&gt;}&lt;/P&gt;&lt;P&gt;containerEL=&amp;#100;ocument.getElementById("his3container")&lt;BR&gt;displayArea=&amp;#100;ocument.getElementById("display_area")&lt;BR&gt;pic0=&amp;#100;ocument.getElementById("pic_0")&lt;/P&gt;&lt;P&gt;containerBorder=(&amp;#100;ocument.compatMode=="CSS1Compat"?0:parseInt(containerEL.style.borderWidth)*2)&lt;BR&gt;containerWidth=(imgPlaces*imgWidth)+((imgPlaces-1)*imgSpacer)&lt;BR&gt;containerEL.style.width=containerWidth+(!moz?containerBorder:"")+"px"&lt;BR&gt;containerEL.style.height=imgHeight+(!moz?containerBorder:"")+"px"&lt;/P&gt;&lt;P&gt;displayArea.style.width=containerWidth+"px"&lt;BR&gt;displayArea.style.clip="rect(0,"+(containerWidth+"px")+","+(imgHeight+"px")+",0)"&lt;BR&gt;displayArea.&amp;#111;nmouseover=function(){stopHIS3()}&lt;BR&gt;displayArea.&amp;#111;nmouseout=function(){scrollHIS3()}&lt;/P&gt;&lt;P&gt;imgPos= -pic0.width&lt;/P&gt;&lt;P&gt;for(var i=0;i&amp;lt;imgPlaces+1;i++){&lt;BR&gt;currentImage=&amp;#100;ocument.getElementById("pic_"+i)&lt;/P&gt;&lt;P&gt;if(dir==0){imgPos+=pic0.width+imgSpacer} // if left&lt;/P&gt;&lt;P&gt;initPos[i]=imgPos&lt;BR&gt;if(dir==0){currentImage.style.left=initPos[i]+"px"} // if left&lt;/P&gt;&lt;P&gt;if(dir==1){ // if right&lt;BR&gt;&amp;#100;ocument.getElementById("pic_"+[(imgPlaces-i)]).style.left=initPos[i]+"px"&lt;BR&gt;imgPos+=pic0.width+imgSpacer&lt;BR&gt;}&lt;/P&gt;&lt;P&gt;if(nextPic==data.length){nextPic=0}&lt;/P&gt;&lt;P&gt;currentImage.src=data[nextPic][0]&lt;BR&gt;currentImage.alt=data[nextPic][1]&lt;BR&gt;currentImage.i=nextPic&lt;BR&gt;currentImage.&amp;#111;nclick=function(){his3Win(data[this.i][2])}&lt;BR&gt;nextPic++&lt;BR&gt;}&lt;/P&gt;&lt;P&gt;scrollHIS3()&lt;BR&gt;}&lt;/P&gt;&lt;P&gt;timer=""&lt;BR&gt;function scrollHIS3(){&lt;BR&gt;clearTimeout(timer)&lt;BR&gt;for(var i=0;i&amp;lt;imgPlaces+1;i++){&lt;BR&gt;currentImage=&amp;#100;ocument.getElementById("pic_"+i)&lt;/P&gt;&lt;P&gt;nowDivPos[i]=parseInt(currentImage.style.left)&lt;/P&gt;&lt;P&gt;if(dir==0){nowDivPos[i]-=step}&lt;BR&gt;if(dir==1){nowDivPos[i]+=step}&lt;/P&gt;&lt;P&gt;if(dir==0&amp;amp;&amp;amp;nowDivPos[i]&amp;lt;= -(pic0.width+imgSpacer) || dir==1&amp;amp;&amp;amp;nowDivPos[i]&amp;gt;containerWidth){&lt;/P&gt;&lt;P&gt;if(dir==0){currentImage.style.left=containerWidth+imgSpacer+"px"}&lt;BR&gt;if(dir==1){currentImage.style.left= -pic0.width-(imgSpacer*2)+"px"}&lt;/P&gt;&lt;P&gt;if(nextPic&amp;gt;data.length-1){nextPic=0}&lt;/P&gt;&lt;P&gt;currentImage.src=data[nextPic][0]&lt;BR&gt;currentImage.alt=data[nextPic][1]&lt;BR&gt;currentImage.i=nextPic&lt;BR&gt;currentImage.&amp;#111;nclick=function(){his3Win(data[this.i][2])}&lt;/P&gt;&lt;P&gt;nextPic++&lt;/P&gt;&lt;P&gt;}&lt;BR&gt;else{&lt;BR&gt;currentImage.style.left=nowDivPos[i]+"px"&lt;BR&gt;}&lt;/P&gt;&lt;P&gt;}&lt;BR&gt;timer=setTimeout("scrollHIS3()",speed)&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;function stopHIS3(){&lt;BR&gt;clearTimeout(timer)&lt;BR&gt;}&lt;/P&gt;&lt;P&gt;function his3Win(loc){&lt;BR&gt;if(loc==""){return}&lt;BR&gt;if(newWindow==0){&lt;BR&gt;location=loc&lt;BR&gt;}&lt;BR&gt;else{&lt;BR&gt;//&amp;#119;indow.open(loc)&lt;BR&gt;newin=&amp;#119;indow.open(loc,'win1','left=430,top=340,width=300,height=300') // use for specific size and positioned window&lt;BR&gt;newin.focus()&lt;BR&gt;}&lt;BR&gt;}&lt;BR&gt;// add &amp;#111;nload="initHIS3()" to the opening BODY tag&lt;BR&gt;// --&amp;gt;&lt;BR&gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/HEAD&amp;gt;&lt;BR&gt;&amp;lt;BODY &amp;#111;nload="initHIS3()"&amp;gt;&lt;BR&gt;&amp;lt;h1&amp;gt;&amp;lt;span&amp;gt;Horizontal Image Scroller 3&amp;lt;/span&amp;gt;&amp;lt;/h1&amp;gt;&lt;BR&gt;&amp;lt;center&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;DIV id="his3container" style="position:relative; width:0px;height:0px; border:1px solid red;overflow:hidden"&amp;gt;&lt;BR&gt;&amp;lt;div id="display_area" style="position:absolute; left:0; top:0; width:0px; height:0px; clip:rect(0,0,0,0)"&amp;gt;&amp;lt;/div&amp;gt;&lt;BR&gt;&amp;lt;/DIV&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/BODY&amp;gt;&lt;BR&gt;&amp;lt;/HTML&amp;gt;&lt;BR&gt;##############################################&lt;/P&gt;&lt;P&gt;Or you can see the code at &lt;A href="http://www.infopathankot.com/forum/imagescroller.htm"&gt;http://www.infopathankot.com/forum/imagescroller.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This code is not showiing any error here on this link&lt;BR&gt;when i used it in my webpage &lt;A href="http://www.computercareptk.com"&gt;http://www.computercareptk.com&lt;/A&gt;&lt;BR&gt; it shows an error on the status bar.&lt;BR&gt;Variable undefined error.&lt;BR&gt;Please help to get rid of it.&lt;BR&gt;Thanks.&lt;BR&gt;</description><pubDate>Sun, 05 Jul 2009 13:16:58 GMT</pubDate><dc:creator>hbk_star2006@yahoo.co.in</dc:creator></item><item><title>Nice examples of javascript in action</title><link>http://www.programminghelp.com/forums/Topic2218-20-1.aspx</link><description>Noupe has a great article that picks out great UI found on the net, and shows you how to get that same effect. &lt;br&gt;&lt;br&gt;[url=http://www.noupe.com/design/10-creative-rich-ui-interfaces-how-to-create-them.html]http://www.noupe.com/design/10-creative-rich-ui-interfaces-how-to-create-them.html[/url]</description><pubDate>Mon, 30 Mar 2009 07:42:58 GMT</pubDate><dc:creator>Alex.D</dc:creator></item><item><title>what is the difference between Java and JavaScript anyway?</title><link>http://www.programminghelp.com/forums/Topic2827-20-1.aspx</link><description>major difference is how the language is presented to the end user (that's you when you're surfing). Java must be compiled into what is known as a "machine language" before it can be run on the Web. Basically what happens is after the programmer writes the Java program and checks it for errors, he or she hands the text over to another computer program that changes the text code into a smaller language. That smaller language is formatted so that it is seen by the computer as a set program with definite beginning and ending points. Nothing can be added to it and nothing can be subtracted without destroying the program.&lt;br&gt;&lt;br&gt;      JavaScript is text-based. You write it to an HTML document and it is run through a browser. You can alter it after it runs and run it again and again. Once the Java is compiled, it is set. Sure, you can go back to the original text and alter it, but then you need to compile again.&lt;br&gt;&lt;br&gt;can any one add some more points to it  plz....</description><pubDate>Sun, 05 Apr 2009 07:34:19 GMT</pubDate><dc:creator>pramoodd</dc:creator></item><item><title>Can we use AJAX with SPRINGS MVC framework?</title><link>http://www.programminghelp.com/forums/Topic4038-20-1.aspx</link><description>Can we use AJAX with SPRINGS MVC framework?</description><pubDate>Tue, 23 Jun 2009 02:45:54 GMT</pubDate><dc:creator>salvadi</dc:creator></item><item><title>Answer about .java file in module</title><link>http://www.programminghelp.com/forums/Topic3932-20-1.aspx</link><description>Hi Friends,&lt;br&gt;&lt;br&gt;I need to avoid placing all the things into one big source. So I'd like to place&lt;br&gt;the different elements into separate modules.&lt;br&gt;&lt;br&gt;Ideally, I would like a separate .java file for each module: tile engine, vm and graphics.&lt;br&gt;&lt;br&gt;so, I'm confused about that how I could do that. Could anybody give me any hints or tips on&lt;br&gt;how to do this ?&lt;br&gt;&lt;br&gt;also i'd like to tell you that I'm working with Net Beans but Not sure if that has anything to do with it.&lt;br&gt;&lt;br&gt;should i work on the jar files or any thing else ?&lt;br&gt;&lt;br&gt;your answers would be helpful.&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;Paul</description><pubDate>Fri, 05 Jun 2009 03:41:12 GMT</pubDate><dc:creator>jaypaul</dc:creator></item><item><title>need help debugging javascript please!</title><link>http://www.programminghelp.com/forums/Topic3359-20-1.aspx</link><description>hi&lt;BR&gt;&lt;A href="http://www.versatilestile.com/himmdesign/ht/"&gt;http://www.versatilestile.com/himmdesign/ht/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have several scripts in here that are needed.  One, effects.js is conflicting with my automatic image slideshow: hence why you see 5 massive pictures running down the page...&lt;/P&gt;&lt;P&gt;The effects.js is required for the accordion on the sub nav (right side).&lt;/P&gt;&lt;P&gt;I tried using firebug for firefox and enabling the javascript (script) console, but it didn't give me any error messages or any clues.&lt;/P&gt;&lt;P&gt;I could really use some help here please!&lt;/P&gt;&lt;P&gt;-sethwb</description><pubDate>Sat, 18 Apr 2009 18:30:59 GMT</pubDate><dc:creator>sethwb</dc:creator></item><item><title>HELP! with Calculation</title><link>http://www.programminghelp.com/forums/Topic3658-20-1.aspx</link><description>Hi people... im a bit of a noob with javascript but im learning quickly..&lt;br&gt;basically i need a calculator that adds up values when ticked.&lt;br&gt;&lt;br&gt;i got this code and its all working..&lt;br&gt;&lt;br&gt;Code:&lt;br&gt;&lt;br&gt;&amp;#60;script type="text/javascript"&gt;&lt;br&gt;function calculate(f)&lt;br&gt;{&lt;br&gt;var nums = f.num;&lt;br&gt;var ntext = f.numtext;&lt;br&gt;var nitem = f.numitem;&lt;br&gt;var result = 0;&lt;br&gt;var items = '';&lt;br&gt;for(var i=0;i&lt;nums.length;i++)&lt;br&gt;{&lt;br&gt;if(nums[i].checked)&lt;br&gt;{&lt;br&gt;result+=parseFloat(ntext[i].value);&lt;br&gt;items+=nitem[i].value+'';&lt;br&gt;}&lt;br&gt;}&lt;br&gt;f.answer.value=result;&lt;br&gt;&lt;br&gt;//if you want to fix to 2 decimal places&lt;br&gt;//f.answer.value=Number(result).toFixed(2);&lt;br&gt;&lt;br&gt;f.allitems.value=items;&lt;br&gt;}&lt;br&gt;&amp;#60;/script&gt;&lt;br&gt;&lt;br&gt;&amp;#60;input type="checkbox" name="num" &amp;#111;nclick="calculate(this.form)"&gt;&lt;br&gt;&amp;#60;input name="numtext" type="text" &amp;#111;nchange="calculate(this.form)" value="59" size="3"&gt;&lt;input name="numitem" type="text" class="tb-gradient" &amp;#111;nchange="calculate(this.form)" value="4 Camera "&gt;&lt;br&gt;&lt;br&gt;&amp;#60;input type="text" name="answer" size="10"&gt;&lt;br&gt;&lt;br&gt;&amp;#60;textarea name="allitems" rows="10" cols="50"&gt;&lt;/textarea&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;but i also need it so people can input a value into textbox and have it multiply by a pre-determined number then have that add to the total...&lt;br&gt;&lt;br&gt;if anyone can help it will be greatly appreciated!&lt;br&gt;seems like a fairly basic thing but just cant get my head around it.. cheers</description><pubDate>Tue, 12 May 2009 19:50:54 GMT</pubDate><dc:creator>ninjali</dc:creator></item><item><title>Functions and arrays HELP</title><link>http://www.programminghelp.com/forums/Topic3814-20-1.aspx</link><description>Not sure how to reference the &lt;EM&gt;actual arguments of the &lt;STRONG&gt;isAlreadySelected()&lt;/STRONG&gt; fuction in the body of &lt;/EM&gt;&lt;STRONG&gt;&lt;EM&gt;selectNumbers()&lt;/EM&gt; &lt;/STRONG&gt;function properly. The description of the fuctions are enclosed in /* */ and coloured green, this is what the fuctions are supposed to do.  Having trouble populating an array and returning it in the &lt;STRONG&gt;&lt;EM&gt;selectNumbers()&lt;/EM&gt; &lt;/STRONG&gt;function .  Need to use all varables in the function as it is a mock test. Any help would be much appreciated &lt;P&gt;Here goes:&lt;/P&gt;&lt;P&gt;&lt;FONT color=#33bb33&gt;/* Determines if a given ball has already been selected.&lt;BR&gt; &lt;BR&gt; The function takes two arguments: &lt;BR&gt;      a whole number which is a new selection&lt;BR&gt;      an array which contains previous selections.&lt;BR&gt; &lt;BR&gt; The function returns:&lt;BR&gt;       true if the new selection exists in the previous selections&lt;BR&gt;       false otherwise&lt;BR&gt; */&lt;BR&gt;&lt;/FONT&gt; function isAlreadySelected(newSelection, previousSelections)&lt;BR&gt; {&lt;BR&gt;    var prevArray = new Array(previousSelections);&lt;BR&gt;    parseFloat(newSelection);&lt;BR&gt;    if (newSelection == previousSelections)&lt;BR&gt;    {&lt;BR&gt;       &amp;#100;ocument.write('already selected.', '');&lt;BR&gt;       return true;&lt;BR&gt;    }&lt;BR&gt;    else&lt;BR&gt;    {&lt;BR&gt;       &amp;#100;ocument.write('not been selected.', '');&lt;BR&gt;       return false;&lt;BR&gt;    return newSelection;&lt;BR&gt;    } &lt;BR&gt; } &lt;BR&gt; &lt;BR&gt; &lt;BR&gt; &lt;BR&gt;&lt;FONT color=#33bb33&gt; /* The function prompts users to select numbers from a pool of balls&lt;BR&gt; The function takes two arguments:&lt;BR&gt;  the highest number in the pool of balls&lt;BR&gt;  the number of balls to be selected&lt;BR&gt;       &lt;BR&gt; The user is prompted to make choices. &lt;BR&gt; A check is made that a choice is not a duplicate.&lt;BR&gt; The user is reprompted to make a choice if a selection has been selected already&lt;BR&gt; The function returns an array of numbers selected by the user&lt;BR&gt; */&lt;BR&gt;&lt;/FONT&gt; function selectNum(highNumber, numberToSelect)&lt;BR&gt; {&lt;BR&gt; &lt;BR&gt;   &lt;FONT color=#33bb33&gt; // Alert user to the valid range of balls to be selected&lt;BR&gt;&lt;/FONT&gt;    &amp;#119;indow.alert('Enter numbers between 1 and ' + highNumber + '.', '');&lt;BR&gt;    parseFloat(numberToSelect);&lt;BR&gt;    var numArray = new Array(numberToSelect);&lt;BR&gt;    var current = 0; &lt;STRONG&gt;&lt;FONT color=#33bb33&gt;//not sure about this&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR&gt;    var selectArray = new Array(current); &lt;STRONG&gt;&lt;FONT color=#33bb33&gt;//not sure about this&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR&gt;    &lt;BR&gt;    for (var index = 1; index &amp;lt; numberToSelect; index = index + 1) &lt;BR&gt;    {&lt;BR&gt;       numSelArray[index] = parseFloat(&amp;#119;indow.prompt('Please enter your ball selection.', ''));&lt;BR&gt;    while (isAlreadySelected(current, numSelArray[index]) == true&lt;FONT color=#33dd33&gt;&lt;STRONG&gt;)//got this incorrect&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR&gt;    {&lt;BR&gt;       &amp;#119;indow.alert('Current ball has already been selected.', '');&lt;BR&gt;    numSelArray[index] = parseFloat(&amp;#119;indow.prompt('Please enter your ball selection.', ''));&lt;BR&gt;    }&lt;BR&gt;    selectArray[current] = numSelArray[index];&lt;BR&gt;    }&lt;BR&gt;    return selectArray(current);&lt;FONT color=#33bb33&gt;&lt;STRONG&gt;//and this is not right&lt;BR&gt;&lt;/STRONG&gt;&lt;/FONT&gt;    &lt;BR&gt;    }&lt;BR&gt; &lt;BR&gt;&amp;lt;/SCRIPT&amp;gt;&lt;BR&gt;&amp;lt;/HEAD&amp;gt;&lt;BR&gt;&amp;lt;BODY&lt;STRONG&gt;&lt;FONT color=#33bb33&gt;&amp;gt;//the rest of this is ok, but provided to show what to expect&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &amp;lt;STRONG&amp;gt;&lt;STRONG&gt;A test of the function selectNumbers&lt;/STRONG&gt;()&amp;lt;BR&amp;gt;&amp;lt;/STRONG&amp;gt;&lt;BR&gt; &amp;lt;FORM NAME = "myForm"&amp;gt;&lt;BR&gt; &lt;BR&gt; &amp;lt;INPUT TYPE = "button" NAME = "selectBalls"  VALUE ="Select your Numbers!"&lt;BR&gt;   ONCLICK = "var select = selNum(15, 9);&lt;BR&gt;              &amp;#119;indow.prompt('You selected: ' + select);"&amp;gt;&amp;lt;/P&amp;gt;</description><pubDate>Sat, 23 May 2009 17:05:05 GMT</pubDate><dc:creator>suseman</dc:creator></item><item><title>IE Will Not work with AJAX Loop</title><link>http://www.programminghelp.com/forums/Topic3676-20-1.aspx</link><description>I am having some trouble in Internet Explorer&lt;br&gt;&lt;br&gt;You all know that dreaded prompt message you get if a website starts slowing down your computer because of a loop?&lt;br&gt;&lt;br&gt;Well I have been working on a website, got it to work perfectly in Firefox and Safari.&lt;br&gt;&lt;br&gt;BUT, in Internet Explorer it refuses to work.&lt;br&gt;&lt;br&gt;The website is called [URL="http://auction4pennies.net/"]Auction 4 Pennies[/URL]&lt;br&gt;It was inspired by [URL="http://www.swoopo.com"]Swoopo[/URL], a auction website with timers.&lt;br&gt;&lt;br&gt;I wanted to attempt creating the website without cheating (viewing available source) and without having to purchase a $800 clone.&lt;br&gt;&lt;br&gt;Right now how it is setup is:&lt;br&gt;-The page loads&lt;br&gt;-Then the page uses AJAX to retrieve the Products Page&lt;br&gt;-On the Products Page it has Current Timers and Current Highest Bidder with Amount&lt;br&gt;-After that is all loaded, it will loop every second after that, but not reloading all products, just pulling information from the database on another page (using ajax) and creating JS with the information pulled. The returned JS then is executed to reset the Timers and Highest Bidder (in case of a change)&lt;br&gt;&lt;br&gt;I know there is a Fix to edit the registry on the computer, but there are problems with that.&lt;br&gt;&lt;br&gt;1. The fix only works on the local machine.&lt;br&gt;2. The timers on the page take between 15 and 60 seconds to change.&lt;br&gt;3. The page is still so slow and freezes IE even tho the prompt does not display.&lt;br&gt;&lt;br&gt;Are there any suggestions to fix the IE problem?</description><pubDate>Wed, 13 May 2009 16:36:03 GMT</pubDate><dc:creator>VolcomMky</dc:creator></item><item><title>Expand a Div Vertically in sets of 100px.</title><link>http://www.programminghelp.com/forums/Topic3715-20-1.aspx</link><description>I need a script that will expand a div vertically in sets of 100px.&lt;br&gt;&lt;br&gt;For example:&lt;br&gt;&lt;br&gt;If the content of a div is 201px in height, i need it to have a height of 300px. Again if the content is 177px in height i need it to be 200px.&lt;br&gt;&lt;br&gt;This is because i have a background-repeat: repeat-y; and the image is 100px in height. I don't want broken images to show.&lt;br&gt;&lt;br&gt;I have looked almost every where and have found nothing.&lt;br&gt;&lt;br&gt;Can anyone help me, please?</description><pubDate>Sun, 17 May 2009 11:51:47 GMT</pubDate><dc:creator>Odaku128</dc:creator></item></channel></rss>
