<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>WebDeveloper.com - JavaScript</title>
		<link>http://www.webdeveloper.com/forum/</link>
		<description>JavaScript (not Java) Discussion and technical support, including AJAX and frameworks (JQuery, MooTools, Prototype...)</description>
		<language>en</language>
		<lastBuildDate>Thu, 20 Jun 2013 09:21:26 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.webdeveloper.com/forum/images/misc/rss.png</url>
			<title>WebDeveloper.com - JavaScript</title>
			<link>http://www.webdeveloper.com/forum/</link>
		</image>
		<item>
			<title>screenshot div into new window and print</title>
			<link>http://www.webdeveloper.com/forum/showthread.php?279813-screenshot-div-into-new-window-and-print&amp;goto=newpost</link>
			<pubDate>Thu, 20 Jun 2013 08:38:29 GMT</pubDate>
			<description><![CDATA[I have a div, with checkboxes in, which I want to be able to print. 
 
I can open the div, and print, with the following code: 
 
 
Code: 
--------- 
var prtContent = document.getElementById("main"); 
    var WinPrint = window.open('', '',...]]></description>
			<content:encoded><![CDATA[<div>I have a div, with checkboxes in, which I want to be able to print.<br />
<br />
I can open the div, and print, with the following code:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">var prtContent = document.getElementById(&quot;main&quot;);<br />
&nbsp; &nbsp; var WinPrint = window.open('', '', 'letf=0,top=0,width=800,height=900,toolbar=0,scrollbars=0,status=0');<br />
&nbsp; &nbsp; &nbsp; &nbsp; WinPrint.document.write(prtContent.innerHTML);<br />
&nbsp; &nbsp; &nbsp; &nbsp; WinPrint.document.close();<br />
&nbsp; &nbsp; &nbsp; &nbsp; WinPrint.focus();<br />
&nbsp; &nbsp; &nbsp; &nbsp; WinPrint.print();<br />
&nbsp; &nbsp; &nbsp; &nbsp; WinPrint.close();</code><hr />
</div>However, all the checkboxes are blank, no matter how many are ticked in the div before pressing the 'print' button I set up.<br />
<br />
Also, since this is unstyled, and I have custom checkboxes, how would I go about getting the images to print (if I put the css in, they display on the new window, but if I print the page they are missing?)<br />
<br />
Thanks in advance,<br />
<br />
Aravona.</div>

]]></content:encoded>
			<category domain="http://www.webdeveloper.com/forum/forumdisplay.php?3-JavaScript">JavaScript</category>
			<dc:creator>Aravona</dc:creator>
			<guid isPermaLink="true">http://www.webdeveloper.com/forum/showthread.php?279813-screenshot-div-into-new-window-and-print</guid>
		</item>
		<item>
			<title>Queue system (Next-Prev)</title>
			<link>http://www.webdeveloper.com/forum/showthread.php?279801-Queue-system-(Next-Prev)&amp;goto=newpost</link>
			<pubDate>Thu, 20 Jun 2013 07:15:10 GMT</pubDate>
			<description><![CDATA[hi all, 
 
i have some question, how to make blinking text and ding sound , the trigger if i click (next) in queue script below : 
 
<html> 
<head> 
<title>Counter</title> 
  <style type="text/css"> 
    input { 
    background: #ff0;]]></description>
			<content:encoded><![CDATA[<div>hi all,<br />
<br />
i have some question, how to make blinking text and ding sound , the trigger if i click (next) in queue script below :<br />
<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;Counter&lt;/title&gt;<br />
  &lt;style type=&quot;text/css&quot;&gt;<br />
    input {<br />
    background: #ff0;<br />
      }<br />
    &lt;/style&gt; <br />
<br />
<br />
&lt;script language=&quot;javascript&quot;&gt;<br />
function addone(field) {<br />
field.value = Number(field.value) + 1;<br />
}<br />
<br />
function subtractone(field) {<br />
field.value = Number(field.value) - 1;<br />
}<br />
&lt;/script&gt;<br />
&lt;/head&gt;<br />
&lt;body  bgcolor=&quot;#FFFFFF&quot; text=&quot;#FFFFF0&quot;&gt;<br />
&lt;font face=&quot;verdana, geneva, helvetica&quot; size=24&gt;<br />
&lt;form name=&quot;myform&quot;&gt;<br />
<br />
<br />
&lt;input type=&quot;text&quot; name=&quot;myfield&quot; value=&quot;000&quot; style=&quot;text-align:center;color:blue; font-weight:bold; font-family:Times New Roman; font size:120;height:150;width:200&quot;&gt;&lt;br&gt;<br />
&lt;input type=&quot;button&quot; value=&quot; next &quot; style=&quot;color:red; font-weight:bold; font-family:Times New Roman; font size:15;height:40;width:50&quot; onclick=&quot;addone(myfield);&quot;&gt;<br />
&lt;input type=&quot;button&quot; value=&quot; prev &quot; style=&quot;color:red; font-weight:bold; font-family:Times New Roman; font size:15;height:40;width:50&quot;onclick=&quot;subtractone(myfield);&quot;&gt;&lt;br&gt;<br />
&lt;/form&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;<br />
<br />
also , what if i want to change the click trigger button , in to press button (like press + button) to next, and press - (to prev)<br />
<br />
thanks guys.</div>

]]></content:encoded>
			<category domain="http://www.webdeveloper.com/forum/forumdisplay.php?3-JavaScript">JavaScript</category>
			<dc:creator>marlz_alcatraz</dc:creator>
			<guid isPermaLink="true">http://www.webdeveloper.com/forum/showthread.php?279801-Queue-system-(Next-Prev)</guid>
		</item>
		<item>
			<title>Text Translation From English To Telugu</title>
			<link>http://www.webdeveloper.com/forum/showthread.php?279799-Text-Translation-From-English-To-Telugu&amp;goto=newpost</link>
			<pubDate>Thu, 20 Jun 2013 06:57:51 GMT</pubDate>
			<description>i have two text boxes in my form.when i type the text in the first text box which is English language.now i need to display the the text in Telugu language in other text box. Please let me know how can i do this.Make sure by using java script only i need to develop.</description>
			<content:encoded><![CDATA[<div>i have two text boxes in my form.when i type the text in the first text box which is English language.now i need to display the the text in Telugu language in other text box. Please let me know how can i do this.Make sure by using java script only i need to develop.</div>

]]></content:encoded>
			<category domain="http://www.webdeveloper.com/forum/forumdisplay.php?3-JavaScript">JavaScript</category>
			<dc:creator>parsanamoni</dc:creator>
			<guid isPermaLink="true">http://www.webdeveloper.com/forum/showthread.php?279799-Text-Translation-From-English-To-Telugu</guid>
		</item>
		<item>
			<title>button to close ALL IE windows?</title>
			<link>http://www.webdeveloper.com/forum/showthread.php?279795-button-to-close-ALL-IE-windows&amp;goto=newpost</link>
			<pubDate>Thu, 20 Jun 2013 02:43:56 GMT</pubDate>
			<description><![CDATA[I apologize in advance for my ignorance, I'm not proficient in web development but I'm trying to create a solution for a problem I have. 
 
I have an HTML file I'm using which displays the contents of a folder hosted on IIS6.  The file is stored in a folder protected by Windows folder permissions,...]]></description>
			<content:encoded><![CDATA[<div>I apologize in advance for my ignorance, I'm not proficient in web development but I'm trying to create a solution for a problem I have.<br />
<br />
I have an HTML file I'm using which displays the contents of a folder hosted on IIS6.  The file is stored in a folder protected by Windows folder permissions, so when the HTML file is launched a login window appears asking for credentials - which is exactly what I want.  <br />
<br />
I've also created a &quot;close&quot; button which will close the browser tab which works great:<br />
<br />
&lt;script&gt;<br />
    function closeWindow() {<br />
        window.open('','_parent','');<br />
        window.close();<br />
    }<br />
&lt;/script&gt; <br />
<br />
<br />
&lt;input type=&quot;button&quot; value=&quot;Close&quot; onclick=&quot;closeWindow()&quot;&gt;<br />
<br />
<br />
This works great if the HTML file is in the only open IE tab.  However, if the user has a 2nd IE window or tab open IE will remember the login credentials so even if I close my window using the above code, the user is not prompted to login again the next time the HTML file is open.<br />
<br />
Is there any way to close ALL browser windows with the click of a button?  Even if the user is prompted to confirm the close?<br />
<br />
Any other easy solutions?<br />
<br />
Thanks!</div>

]]></content:encoded>
			<category domain="http://www.webdeveloper.com/forum/forumdisplay.php?3-JavaScript">JavaScript</category>
			<dc:creator>Kremlar</dc:creator>
			<guid isPermaLink="true">http://www.webdeveloper.com/forum/showthread.php?279795-button-to-close-ALL-IE-windows</guid>
		</item>
		<item>
			<title>jQuery Problem moving the rows to the left with keyboard</title>
			<link>http://www.webdeveloper.com/forum/showthread.php?279791-Problem-moving-the-rows-to-the-left-with-keyboard&amp;goto=newpost</link>
			<pubDate>Thu, 20 Jun 2013 02:06:51 GMT</pubDate>
			<description>Hi guys, 
 
I need your help as I has got a problem with my JavaScript. I got four rows of div with each different rows size. I can be able to move the yellow row to the right on each small row using with the keyboard right arrow button while i can be able to move the small rows to the left.  
...</description>
			<content:encoded><![CDATA[<div>Hi guys,<br />
<br />
I need your help as I has got a problem with my JavaScript. I got four rows of div with each different rows size. I can be able to move the yellow row to the right on each small row using with the keyboard right arrow button while i can be able to move the small rows to the left. <br />
<br />
The problem I has got I can be able to move the yellow row to the big row, but I can't be able to move the big rows to the left when I press on the keyboard right arrow button. <br />
<br />
Here is the code:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">PHP Code:</div>
	<hr /><code class="bbcode_code"><code><span style="color: #000000">
<span style="color: #0000BB"></span><span style="color: #007700">&lt;!</span><span style="color: #0000BB">DOCTYPE&nbsp;html&nbsp;</span><span style="color: #007700">PUBLIC</span><span style="color: #DD0000">"-//W3C//DTD&nbsp;XHTML&nbsp;1.0&nbsp;Strict//EN"<br />"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"</span><span style="color: #007700">&gt;<br />&lt;</span><span style="color: #0000BB">html&nbsp;xmlns</span><span style="color: #007700">=</span><span style="color: #DD0000">"http://www.w3.org/1999/xhtml"</span><span style="color: #007700">&gt;<br />&lt;</span><span style="color: #0000BB">head</span><span style="color: #007700">&gt;<br />&lt;</span><span style="color: #0000BB">meta&nbsp;http</span><span style="color: #007700">-</span><span style="color: #0000BB">equiv</span><span style="color: #007700">=</span><span style="color: #DD0000">"content-type"&nbsp;</span><span style="color: #0000BB">content</span><span style="color: #007700">=</span><span style="color: #DD0000">"text/html;&nbsp;charset=utf-8"&nbsp;</span><span style="color: #007700">/&gt;<br />&lt;</span><span style="color: #0000BB">script&nbsp;src</span><span style="color: #007700">=</span><span style="color: #DD0000">"http://code.jquery.com/jquery-1.9.1.min.js"&nbsp;</span><span style="color: #0000BB">type</span><span style="color: #007700">=</span><span style="color: #DD0000">"text/javascript"</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">&lt;/script&gt;<br /></span>&lt;script&nbsp;type="text/javascript"&gt;<br />function&nbsp;GetXmlHttpObject()<br />{<br />&nbsp;&nbsp;if(window.XMLHttpRequest)<br />&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;code&nbsp;for&nbsp;IE7+,&nbsp;Firefox,&nbsp;Chrome,&nbsp;Opera,&nbsp;Safari<br />&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;new&nbsp;XMLHttpRequest();<br />&nbsp;&nbsp;}<br />&nbsp;&nbsp;else<br />&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;code&nbsp;for&nbsp;IE6,&nbsp;IE5<br />&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;new&nbsp;ActiveXObject("Microsoft.XMLHTTP");<br />&nbsp;&nbsp;}<br />&nbsp;&nbsp;return&nbsp;null;<br />}<br /><br />var&nbsp;current_col&nbsp;=&nbsp;1;<br />var&nbsp;current_row&nbsp;=&nbsp;1;<br /><br />$(document).keyup(function(event){<br />var&nbsp;yellowbg&nbsp;=&nbsp;$(".yellowbg");<br />var&nbsp;rowwidth&nbsp;=&nbsp;$(".row").css(&nbsp;"width").split("px");<br />var&nbsp;yellowbgdivclass&nbsp;=&nbsp;yellowbg.attr('class');<br />var&nbsp;splitclass&nbsp;=&nbsp;yellowbgdivclass.split("&nbsp;");<br />var&nbsp;getcurrentrow&nbsp;=&nbsp;splitclass&#91;1&#93;.split("_");<br /><br />var&nbsp;mainWraptop&nbsp;=&nbsp;$(".mainWrap").position().top;<br />var&nbsp;mainWrapheight&nbsp;=&nbsp;$(".mainWrap").height();<br />var&nbsp;rowmove=$("#rowmove").val();<br />//alert($(".row").length);<br /><br />var&nbsp;displayrowcount&nbsp;=&nbsp;6;&nbsp;&nbsp;//is&nbsp;using&nbsp;for&nbsp;to&nbsp;hide&nbsp;other&nbsp;channels<br />var&nbsp;rowheight&nbsp;=&nbsp;42;<br />var&nbsp;rowwidth&nbsp;=&nbsp;1053;&nbsp;&nbsp;//is&nbsp;using&nbsp;for&nbsp;how&nbsp;much&nbsp;width&nbsp;the&nbsp;row&nbsp;is&nbsp;going&nbsp;to&nbsp;display&nbsp;while&nbsp;hide&nbsp;the&nbsp;other&nbsp;rows<br />var&nbsp;rowwidth1&nbsp;=&nbsp;1303;&nbsp;&nbsp;//is&nbsp;using&nbsp;for&nbsp;how&nbsp;much&nbsp;width&nbsp;the&nbsp;row&nbsp;is&nbsp;going&nbsp;to&nbsp;display&nbsp;while&nbsp;hide&nbsp;the&nbsp;other&nbsp;rows<br />var&nbsp;totalwidth_current&nbsp;=&nbsp;0;<br />var&nbsp;totalwidth_current1&nbsp;=&nbsp;0;<br /><br />if(parseInt(current_row)+parseInt(1)&nbsp;&lt;=5)<br />{<br />&nbsp;&nbsp;for(var&nbsp;i=1;&nbsp;i&lt;=(parseInt(current_row)+parseInt(1));i++&nbsp;)<br />&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;yellowbgnextdivwidth&nbsp;=&nbsp;$(".div_"+current_col+'_'+i).css(&nbsp;"width");&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;yellowbgnextdivwidthsplit&nbsp;=&nbsp;yellowbgnextdivwidth.split("px");<br />&nbsp;&nbsp;&nbsp;&nbsp;totalwidth_current=parseInt(totalwidth_current)+parseInt(yellowbgnextdivwidthsplit&#91;0&#93;);<br />&nbsp;&nbsp;}<br />}<br /><br />&nbsp;&nbsp;if&nbsp;(event.keyCode&nbsp;==&nbsp;39)&nbsp;<br />&nbsp;&nbsp;{&nbsp;&nbsp;//right<br />&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(yellowbg.next().length)<br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;currentrowleft&nbsp;=&nbsp;$(".rowSubPgm&nbsp;div.pgmFirstRow:first").css(&nbsp;"margin-left").split("px");<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;currentrowleft1&nbsp;=&nbsp;currentrowleft&#91;0&#93;.split("-");<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;currentrowleft2&nbsp;=&nbsp;currentrowleft&#91;0&#93;.split("-");<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(typeof(currentrowleft2&#91;1&#93;)!=&nbsp;"undefined")<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;currentrowleft&nbsp;=&nbsp;currentrowleft2&#91;1&#93;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else&nbsp;if(typeof(currentrowleft1&#91;1&#93;)!=&nbsp;"undefined")<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;currentrowleft&nbsp;=&nbsp;currentrowleft1&#91;1&#93;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;currentrowleft&nbsp;=&nbsp;currentrowleft&#91;0&#93;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;nextdivwidth&nbsp;=&nbsp;$(".div_"+current_col+'_'+(parseInt(current_row)+parseInt(1))).css(&nbsp;"width").split("px");&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//alert((parseInt(rowwidth)+parseInt(currentrowleft)));<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//alert(totalwidth_current);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//alert((parseInt(rowwidth)+parseInt(currentrowleft))&nbsp;&lt;&nbsp;totalwidth_current);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//alert(nextdivwidth);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//alert(totalwidth_current);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if((parseInt(rowwidth)+parseInt(currentrowleft))&nbsp;&lt;&nbsp;totalwidth_current)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;$("body").find('.rowSubPgm').each(function(index)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;//var&nbsp;approx&nbsp;=&nbsp;rowwidth/250;<br />&nbsp;&nbsp;&nbsp;&nbsp;$(this).find('.pgmFirstRow:first').css(&nbsp;"margin-left",&nbsp;"-"+(rowwidth)+"px"&nbsp;);<br />&nbsp;&nbsp;&nbsp;&nbsp;});<br />&nbsp;&nbsp;&nbsp;&nbsp;$(".rows&nbsp;div:nth-child(2)").css(&nbsp;"margin-left",&nbsp;"-"+parseInt(rowleft)-70&nbsp;);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(yellowbg.next().position().top&nbsp;==&nbsp;yellowbg.position().top)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;$(".div_"+current_col+'_'+current_row).css(&nbsp;"margin-left",&nbsp;"-"+rowleft&nbsp;);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;currentrowleft&nbsp;=&nbsp;parseInt(currentrowleft)+rowwidth;<br />&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;rowleft&nbsp;=&nbsp;currentrowleft+="px";<br />&nbsp;&nbsp;&nbsp;&nbsp;$("body").find('.rowSubPgm').each(function(index)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;$(this).find('.pgmFirstRow:first').css(&nbsp;"margin-left",&nbsp;"-"+rowleft&nbsp;);<br />&nbsp;&nbsp;&nbsp;&nbsp;});<br />&nbsp;&nbsp;&nbsp;&nbsp;$(".rows&nbsp;div:nth-child(2)").css(&nbsp;"margin-left",&nbsp;"-"+parseInt(rowleft)-70&nbsp;);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;current_row++;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;}<br />}&nbsp;<br /></span>
</code></code><hr />
</div><br />
The problem I believe are somewhere in this code:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">PHP Code:</div>
	<hr /><code class="bbcode_code"><code><span style="color: #000000">
<span style="color: #0000BB"></span><span style="color: #007700">if((</span><span style="color: #0000BB">parseInt</span><span style="color: #007700">(</span><span style="color: #0000BB">rowwidth</span><span style="color: #007700">)+</span><span style="color: #0000BB">parseInt</span><span style="color: #007700">(</span><span style="color: #0000BB">currentrowleft</span><span style="color: #007700">))&nbsp;&lt;&nbsp;</span><span style="color: #0000BB">totalwidth_current</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;$(</span><span style="color: #DD0000">"body"</span><span style="color: #007700">).</span><span style="color: #0000BB">find</span><span style="color: #007700">(</span><span style="color: #DD0000">'.rowSubPgm'</span><span style="color: #007700">).</span><span style="color: #0000BB">each</span><span style="color: #007700">(function(</span><span style="color: #0000BB">index</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//var&nbsp;approx&nbsp;=&nbsp;rowwidth/250;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">$(</span><span style="color: #0000BB">this</span><span style="color: #007700">).</span><span style="color: #0000BB">find</span><span style="color: #007700">(</span><span style="color: #DD0000">'.pgmFirstRow:first'</span><span style="color: #007700">).</span><span style="color: #0000BB">css</span><span style="color: #007700">(&nbsp;</span><span style="color: #DD0000">"margin-left"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"-"</span><span style="color: #007700">+(</span><span style="color: #0000BB">rowwidth</span><span style="color: #007700">)+</span><span style="color: #DD0000">"px"&nbsp;</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;});<br />&nbsp;&nbsp;&nbsp;&nbsp;$(</span><span style="color: #DD0000">".rows&nbsp;div:nth-child(2)"</span><span style="color: #007700">).</span><span style="color: #0000BB">css</span><span style="color: #007700">(&nbsp;</span><span style="color: #DD0000">"margin-left"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"-"</span><span style="color: #007700">+</span><span style="color: #0000BB">parseInt</span><span style="color: #007700">(</span><span style="color: #0000BB">rowleft</span><span style="color: #007700">)-</span><span style="color: #0000BB">70&nbsp;</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(</span><span style="color: #0000BB">yellowbg</span><span style="color: #007700">.</span><span style="color: #0000BB">next</span><span style="color: #007700">().</span><span style="color: #0000BB">position</span><span style="color: #007700">().</span><span style="color: #0000BB">top&nbsp;</span><span style="color: #007700">==&nbsp;</span><span style="color: #0000BB">yellowbg</span><span style="color: #007700">.</span><span style="color: #0000BB">position</span><span style="color: #007700">().</span><span style="color: #0000BB">top</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;$(</span><span style="color: #DD0000">".div_"</span><span style="color: #007700">+</span><span style="color: #0000BB">current_col</span><span style="color: #007700">+</span><span style="color: #DD0000">'_'</span><span style="color: #007700">+</span><span style="color: #0000BB">current_row</span><span style="color: #007700">).</span><span style="color: #0000BB">css</span><span style="color: #007700">(&nbsp;</span><span style="color: #DD0000">"margin-left"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"-"</span><span style="color: #007700">+</span><span style="color: #0000BB">rowleft&nbsp;</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">currentrowleft&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">parseInt</span><span style="color: #007700">(</span><span style="color: #0000BB">currentrowleft</span><span style="color: #007700">)+</span><span style="color: #0000BB">rowwidth</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;</span><span style="color: #0000BB">rowleft&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">currentrowleft</span><span style="color: #007700">+=</span><span style="color: #DD0000">"px"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;$(</span><span style="color: #DD0000">"body"</span><span style="color: #007700">).</span><span style="color: #0000BB">find</span><span style="color: #007700">(</span><span style="color: #DD0000">'.rowSubPgm'</span><span style="color: #007700">).</span><span style="color: #0000BB">each</span><span style="color: #007700">(function(</span><span style="color: #0000BB">index</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;$(</span><span style="color: #0000BB">this</span><span style="color: #007700">).</span><span style="color: #0000BB">find</span><span style="color: #007700">(</span><span style="color: #DD0000">'.pgmFirstRow:first'</span><span style="color: #007700">).</span><span style="color: #0000BB">css</span><span style="color: #007700">(&nbsp;</span><span style="color: #DD0000">"margin-left"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"-"</span><span style="color: #007700">+</span><span style="color: #0000BB">rowleft&nbsp;</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;});<br />&nbsp;&nbsp;&nbsp;&nbsp;$(</span><span style="color: #DD0000">".rows&nbsp;div:nth-child(2)"</span><span style="color: #007700">).</span><span style="color: #0000BB">css</span><span style="color: #007700">(&nbsp;</span><span style="color: #DD0000">"margin-left"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"-"</span><span style="color: #007700">+</span><span style="color: #0000BB">parseInt</span><span style="color: #007700">(</span><span style="color: #0000BB">rowleft</span><span style="color: #007700">)-</span><span style="color: #0000BB">70&nbsp;</span><span style="color: #007700">);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;<br /></span><span style="color: #0000BB"></span>
</span>
</code></code><hr />
</div>The big rows size I can't be able to move to the left is 501, 701, 1051 and 1553.<br />
<br />
Does anyone know how I can move the big rows to the left using with the keyboard right arrow button??<br />
<br />
Any advice would be much appreciated.<br />
<br />
Thanks in advance</div>

]]></content:encoded>
			<category domain="http://www.webdeveloper.com/forum/forumdisplay.php?3-JavaScript">JavaScript</category>
			<dc:creator>mark107</dc:creator>
			<guid isPermaLink="true">http://www.webdeveloper.com/forum/showthread.php?279791-Problem-moving-the-rows-to-the-left-with-keyboard</guid>
		</item>
		<item>
			<title>Dynamically changing drop down boxes</title>
			<link>http://www.webdeveloper.com/forum/showthread.php?279789-Dynamically-changing-drop-down-boxes&amp;goto=newpost</link>
			<pubDate>Thu, 20 Jun 2013 01:06:49 GMT</pubDate>
			<description><![CDATA[Hi All. 
I have a javascript function that changes the value of the next dropdown box from a list of multiple dropdown boxes based on an onchange event as shown below.  
What I want to do is if the user selects for instance "software manufacturer" then it is never available again in any of the next...]]></description>
			<content:encoded><![CDATA[<div>Hi All.<br />
I have a javascript function that changes the value of the next dropdown box from a list of multiple dropdown boxes based on an onchange event as shown below. <br />
What I want to do is if the user selects for instance &quot;software manufacturer&quot; then it is never available again in any of the next dropdown boxes.<br />
I can get this to work for the second checkbox but it comes back again for the 3rd checkbox and so on.<br />
<br />
Hope it makes sense<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">onchange=&quot;fillSelect(this,categories[this.value]</code><hr />
</div><div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">var categories = [];<br />
categories[&quot;startList&quot;] = [&quot;Software Manufacturer&quot;,&quot;Product Name&quot;,&quot;Product Version&quot;,&quot;Keep Existing&quot;,&quot;Ignore&quot;]<br />
categories[&quot;Software Manufacturer&quot;] = [&quot;Product Name&quot;,&quot;Product Version&quot;,&quot;Keep Existing&quot;,&quot;Ignore&quot;];<br />
categories[&quot;Product Name&quot;] = [&quot;Software Manufacturer&quot;,&quot;Product Version&quot;,&quot;Keep Existing&quot;,&quot;Ignore&quot;];<br />
categories[&quot;Product Version&quot;] = [&quot;Software Manufacturer&quot;,&quot;Product Name&quot;,&quot;Keep Existing&quot;,&quot;Ignore&quot;];<br />
&nbsp;categories[&quot;Keep Existing&quot;] = [&quot;Software Manufacturer&quot;,&quot;Product Name&quot;,&quot;Product Version&quot;,&quot;Keep Existing&quot;,&quot;Ignore&quot;];<br />
&nbsp;categories[&quot;Ignore&quot;] = [&quot;Software Manufacturer&quot;,&quot;Product Name&quot;,&quot;Product Version&quot;,&quot;Keep Existing&quot;,&quot;Ignore&quot;];</code><hr />
</div></div>

]]></content:encoded>
			<category domain="http://www.webdeveloper.com/forum/forumdisplay.php?3-JavaScript">JavaScript</category>
			<dc:creator>alanl1</dc:creator>
			<guid isPermaLink="true">http://www.webdeveloper.com/forum/showthread.php?279789-Dynamically-changing-drop-down-boxes</guid>
		</item>
		<item>
			<title>Simple JavaScript issue that is making my head ache!</title>
			<link>http://www.webdeveloper.com/forum/showthread.php?279769-Simple-JavaScript-issue-that-is-making-my-head-ache!&amp;goto=newpost</link>
			<pubDate>Wed, 19 Jun 2013 16:48:34 GMT</pubDate>
			<description>I have simple script designed to check if  
 
1. If a div1 is visible (display : none or block) 
2. if a textfield has any content 
 
 
 
The page is designed to show a div section containing 4 text fields that are repeated on the page depending on the above conditions, so if a qty is entered in...</description>
			<content:encoded><![CDATA[<div>I have simple script designed to check if <br />
<ol class="decimal"><li style="">If a div1 is visible (display : none or block)</li><li style="">if a textfield has any content</li></ol><br />
<br />
The page is designed to show a div section containing 4 text fields that are repeated on the page depending on the above conditions, so if a qty is entered in the first section if would check if the second div is set to display : none and if it is change this to block so it is viewable, it then also checks to see see if they first quantity field is not blank so it does not toggle the form back to none on entering a second figure.<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">&lt;script type=&quot;text/javascript&quot;&gt;<br />
function toggle_visibility(id, tf) {<br />
var e = document.getElementById(id);<br />
var f = document.getElementById(tf) ;<br />
if(e.style.display == 'none' &amp;&amp; f.value != '')<br />
e.style.display = 'block';<br />
else<br />
e.style.display = 'none';<br />
}<br />
&lt;/script&gt;</code><hr />
</div>HTML<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">&lt;input name=&quot;QUANTITY1&quot; type=&quot;text&quot; class=&quot;txtfield&quot;&nbsp; id=&quot;QUANTITY1&quot; title=&quot;&quot; onkeyup=&quot;toggle_visibility('Part2','QUANTITY1');&quot; value=&quot;&quot; size=&quot;4&quot; maxlength=&quot;10&quot;/&gt;<br />
<br />
&lt;div id=&quot;Part2&quot; style=&quot;display: none;&quot;&gt;<br />
Part2 &lt;input class=&quot;txtfield&quot; name=&quot;PART_NO2&quot; type=&quot;text&quot; id=&quot;PART_NO2&quot; title=&quot;&quot; value=&quot;&quot; size=&quot;16&quot; /&gt;<br />
Size&nbsp; &lt;input class=&quot;txtfield&quot; name=&quot;SIZE2&quot; type=&quot;text&quot; id=&quot;SIZE2&quot; title=&quot;&quot; value=&quot;&quot; size=&quot;8&quot; /&gt;<br />
Qty &lt;input class=&quot;txtfield&quot; name=&quot;QUANTITY2&quot; type=&quot;text&quot; id=&quot;QUANTITY2&quot; title=&quot;&quot; value=&quot;&quot; size=&quot;4&quot; maxlength=&quot;10&quot; /&gt;<br />
&lt;/div&gt;</code><hr />
</div>But for some reason the second part of the JavaScript if condition is being ignored and it just toggle the display with each key entry, Have I missed something simple?<br />
<br />
Thanks for looking. (<i>it's been a long day and it's not getting any shorter!</i>)</div>

]]></content:encoded>
			<category domain="http://www.webdeveloper.com/forum/forumdisplay.php?3-JavaScript">JavaScript</category>
			<dc:creator>iainjsimons</dc:creator>
			<guid isPermaLink="true">http://www.webdeveloper.com/forum/showthread.php?279769-Simple-JavaScript-issue-that-is-making-my-head-ache!</guid>
		</item>
		<item>
			<title>JScript Malware decoding - Please help me</title>
			<link>http://www.webdeveloper.com/forum/showthread.php?279763-JScript-Malware-decoding-Please-help-me&amp;goto=newpost</link>
			<pubDate>Wed, 19 Jun 2013 15:25:52 GMT</pubDate>
			<description>Hello community, 
I am from brazil and found a jscript worm on many usb sticks an computer in my office. 
Please help me. 
 
I want to decode the javascript file to see what the malware is doing on the computer and what files are gone. 
Please help me! Thank you. 
...</description>
			<content:encoded><![CDATA[<div>Hello community,<br />
I am from brazil and found a jscript worm on many usb sticks an computer in my office.<br />
Please help me.<br />
<br />
I want to decode the javascript file to see what the malware is doing on the computer and what files are gone.<br />
Please help me! Thank you.<br />
<br />
<a rel="nofollow" href="http://pastebin.com/embed_js.php?i=a4Vtqh4N" target="_blank">http://pastebin.com/embed_js.php?i=a4Vtqh4N</a></div>

]]></content:encoded>
			<category domain="http://www.webdeveloper.com/forum/forumdisplay.php?3-JavaScript">JavaScript</category>
			<dc:creator>hansihans123</dc:creator>
			<guid isPermaLink="true">http://www.webdeveloper.com/forum/showthread.php?279763-JScript-Malware-decoding-Please-help-me</guid>
		</item>
		<item>
			<title>Javascript strange error</title>
			<link>http://www.webdeveloper.com/forum/showthread.php?279761-Javascript-strange-error&amp;goto=newpost</link>
			<pubDate>Wed, 19 Jun 2013 15:23:41 GMT</pubDate>
			<description><![CDATA[hi! 
i'm pretty new to web programming and programming in general. 
i want to make a web page with various languages (english, italian, croatian...etc) 
i wrote the html for it but i encountered a problem. 
 
i want to make the site remember the language a visitor has set the last time he visited...]]></description>
			<content:encoded><![CDATA[<div>hi!<br />
i'm pretty new to web programming and programming in general.<br />
i want to make a web page with various languages (english, italian, croatian...etc)<br />
i wrote the html for it but i encountered a problem.<br />
<br />
i want to make the site remember the language a visitor has set the last time he visited my webpage in a cookie.<br />
and every time before the parsing of the page i want my javascript file to check if the language cookie is set, and if not, to create it and set its value to &quot;english&quot;.<br />
i used jquery and jquery cookie plugin (they are regular included in index.html in the &lt;head&gt;&lt;script&gt; tag but the code seems to do nothing!<br />
the strange thing is that in the javascript console of google crome every row of code seems to work correctly but put all togheter they are useless!<br />
here is my code!<br />
<br />
THANK YOU! :D<br />
<br />
$(window).load(function(){<br />
<br />
	var language_cookie = $.cookie('Languge');<br />
	if (language_cookie == null)<br />
		$.cookie(&quot;Language&quot;, &quot;ENG&quot;, {expires: 365})});<br />
		<br />
	<br />
$(document).load(function(){<br />
		var language_cookie1 = $.cookie('Languge');<br />
		<br />
		if (language_cookie1 == &quot;ENG&quot;)<br />
			$(&quot;#table_select_language th&quot;).html(&quot;Select your language&quot;);			<br />
				<br />
});</div>

]]></content:encoded>
			<category domain="http://www.webdeveloper.com/forum/forumdisplay.php?3-JavaScript">JavaScript</category>
			<dc:creator>svidotto</dc:creator>
			<guid isPermaLink="true">http://www.webdeveloper.com/forum/showthread.php?279761-Javascript-strange-error</guid>
		</item>
		<item>
			<title>jQuery How can I make fancy effects using jQuery or JavaScript?</title>
			<link>http://www.webdeveloper.com/forum/showthread.php?279751-How-can-I-make-fancy-effects-using-jQuery-or-JavaScript&amp;goto=newpost</link>
			<pubDate>Wed, 19 Jun 2013 12:57:00 GMT</pubDate>
			<description>I was browsing through the web when I found a website (http://www.mangore.com/) with a cool image slider and really good fading effects. Are there some kind of built in functions for fading and cross image effects in jQuery or are all there custom built?</description>
			<content:encoded><![CDATA[<div>I was browsing through the web when I found a <a rel="nofollow" href="http://www.mangore.com/" target="_blank">website</a> with a cool image slider and really good fading effects. Are there some kind of built in functions for fading and cross image effects in jQuery or are all there custom built?</div>

]]></content:encoded>
			<category domain="http://www.webdeveloper.com/forum/forumdisplay.php?3-JavaScript">JavaScript</category>
			<dc:creator>RenatoBell</dc:creator>
			<guid isPermaLink="true">http://www.webdeveloper.com/forum/showthread.php?279751-How-can-I-make-fancy-effects-using-jQuery-or-JavaScript</guid>
		</item>
		<item>
			<title>jQuery refresh div element</title>
			<link>http://www.webdeveloper.com/forum/showthread.php?279749-refresh-div-element&amp;goto=newpost</link>
			<pubDate>Wed, 19 Jun 2013 12:35:03 GMT</pubDate>
			<description>Hello, 
 
I am trying to update a map (d3) in order to add or remove markers. 
In principle it works, I have a .js Script with the following code snippet:  
 
 
HTML: 
--------- 
 
function loadMap(filterdata)</description>
			<content:encoded><![CDATA[<div>Hello,<br />
<br />
I am trying to update a map (d3) in order to add or remove markers.<br />
In principle it works, I have a .js Script with the following code snippet: <br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">HTML Code:</div>
	<hr /><code class="bbcode_code"><br />
function loadMap(filterdata)<br />
{<br />
&nbsp; &nbsp; var width = 500,<br />
&nbsp; &nbsp; height = 1000;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; var projection = d3.geo.mercator()<br />
&nbsp; &nbsp; &nbsp; &nbsp; .center(&#91;-110, 45&#93;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; .scale(400)<br />
&nbsp; &nbsp; &nbsp; &nbsp; .rotate(&#91;-160,0&#93;);<br />
<br />
&nbsp; &nbsp; var svg = d3.select(&quot;#map&quot;).append(&quot;svg&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; .attr(&quot;width&quot;, width)<br />
&nbsp; &nbsp; &nbsp; &nbsp; .attr(&quot;height&quot;, height);<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; var path = d3.geo.path()<br />
&nbsp; &nbsp; &nbsp; &nbsp; .projection(projection);<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; var currentholder;<br />
&nbsp; &nbsp; var currentsite;<br />
&nbsp; &nbsp; var filterdataSite=&#91;&#93;;<br />
&nbsp; &nbsp; var filterdataHolder=&#91;&#93;;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; var g = svg.append(&quot;g&quot;);<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; d3.json(&quot;json&quot;, function(error, data) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; d3.json(&quot;json&quot;, function(error, topology) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; g.selectAll(&quot;path&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .data(topojson.object(topology, topology.objects.countries)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .geometries)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .enter()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .append(&quot;path&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .attr(&quot;d&quot;, path)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; g.selectAll(&quot;redcircle&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .data(data)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .enter()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .append(&quot;circle&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  .attr(&quot;cx&quot;, function(d) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(d.ID&lt;filterdata.length)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return projection(&#91;filterdata&#91;d.ID&#93;.siteslong, filterdata&#91;d.ID&#93;.siteslat&#93;)&#91;0&#93;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; })<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .attr(&quot;cy&quot;, function(d) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(d.ID&lt;filterdata.length)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return projection(&#91;filterdata&#91;d.ID&#93;.siteslong, filterdata&#91;d.ID&#93;.siteslat&#93;)&#91;1&#93;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; })<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .attr(&quot;r&quot;, 3)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .style(&quot;fill&quot;, &quot;red&quot;)</code><hr />
</div>and an html code where can I call the map via<br />
<div class="bbcode_container">
	<div class="bbcode_description">HTML Code:</div>
	<hr /><code class="bbcode_code"><br />
&nbsp; $(document).ready(function() {<br />
&nbsp;  .........<br />
&nbsp;  .........<br />
&nbsp; $().w2layout({<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  name: 'layout-right',<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  panels: &#91;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  { type: 'top',&nbsp; size: 500, resizable: true, style: pstyle, content: 'metadata' },<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  { type: 'main', size: 400, style: pstyle, content: '<span style="color:#000080">&lt;div id=<span style="color:#0000FF">&quot;map&quot;</span> style=<span style="color:#0000FF">&quot;height: 100%&quot;</span>&gt;</span><span style="color:#000080">&lt;/div&gt;</span>'&nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#93;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; });<br />
&nbsp;  ...........<br />
&nbsp;  ...........<br />
});</code><hr />
</div>that means, I use the id=map for calling. <br />
The problem: I can only do it once!<br />
First of all I thought it is due to the .append but then I would expect that more and more markers would appear. <br />
But this is not the case. It seems so to be that nothing happens....(due to the $(document).ready(function() ?).<br />
<br />
Do I have to refresh/remove the div element &quot;map&quot;(?). If yes, how?<br />
<br />
Many thanks!<br />
Greenhorn</div>

]]></content:encoded>
			<category domain="http://www.webdeveloper.com/forum/forumdisplay.php?3-JavaScript">JavaScript</category>
			<dc:creator>greenhorn</dc:creator>
			<guid isPermaLink="true">http://www.webdeveloper.com/forum/showthread.php?279749-refresh-div-element</guid>
		</item>
		<item>
			<title>code explanation</title>
			<link>http://www.webdeveloper.com/forum/showthread.php?279741-code-explanation&amp;goto=newpost</link>
			<pubDate>Wed, 19 Jun 2013 09:00:12 GMT</pubDate>
			<description><![CDATA[Could any one tell me why the result of below code is: 3,5,1,6,2,4 
 
 
var myArray = [1,2,3,4,5,6]; 
myArray.sort( function(x, y) { 
if (x % 2) 
return -1; 
if (x % 2 == 0) 
return 1; 
}]]></description>
			<content:encoded><![CDATA[<div>Could any one tell me why the result of below code is: 3,5,1,6,2,4<br />
<br />
<br />
var myArray = [1,2,3,4,5,6];<br />
myArray.sort( function(x, y) {<br />
if (x % 2)<br />
return -1;<br />
if (x % 2 == 0)<br />
return 1;<br />
}<br />
);<br />
alert(myArray);</div>

]]></content:encoded>
			<category domain="http://www.webdeveloper.com/forum/forumdisplay.php?3-JavaScript">JavaScript</category>
			<dc:creator>gscw</dc:creator>
			<guid isPermaLink="true">http://www.webdeveloper.com/forum/showthread.php?279741-code-explanation</guid>
		</item>
		<item>
			<title>usage of method sort() at array</title>
			<link>http://www.webdeveloper.com/forum/showthread.php?279739-usage-of-method-sort()-at-array&amp;goto=newpost</link>
			<pubDate>Wed, 19 Jun 2013 08:37:06 GMT</pubDate>
			<description><![CDATA[Could any one tell me why the result of below code is: 3,14,14,36,45,52 
 
function myCompare(x, y) 
{ 
if (x << y) 
return -1; 
else if (x === y) 
return 0; 
else 
return 1;]]></description>
			<content:encoded><![CDATA[<div>Could any one tell me why the result of below code is: 3,14,14,36,45,52<br />
<br />
function myCompare(x, y)<br />
{<br />
if (x &lt;&lt; y)<br />
return -1;<br />
else if (x === y)<br />
return 0;<br />
else<br />
return 1;<br />
}<br />
var myArray = [14,52,3,14,45,36];<br />
myArray.sort(myCompare);<br />
alert(myArray);</div>

]]></content:encoded>
			<category domain="http://www.webdeveloper.com/forum/forumdisplay.php?3-JavaScript">JavaScript</category>
			<dc:creator>gscw</dc:creator>
			<guid isPermaLink="true">http://www.webdeveloper.com/forum/showthread.php?279739-usage-of-method-sort()-at-array</guid>
		</item>
		<item>
			<title>Javascript for Dummies Companion CD</title>
			<link>http://www.webdeveloper.com/forum/showthread.php?279715-Javascript-for-Dummies-Companion-CD&amp;goto=newpost</link>
			<pubDate>Tue, 18 Jun 2013 23:31:48 GMT</pubDate>
			<description>Does anyone know if the JavaScript for Dummies Companion CD is free for download?  I downloaded the eBook and would like to have the contents from the companion CD that comes with the hardback.  Thanks!</description>
			<content:encoded><![CDATA[<div>Does anyone know if the JavaScript for Dummies Companion CD is free for download?  I downloaded the eBook and would like to have the contents from the companion CD that comes with the hardback.  Thanks!</div>

]]></content:encoded>
			<category domain="http://www.webdeveloper.com/forum/forumdisplay.php?3-JavaScript">JavaScript</category>
			<dc:creator>jmcauleyjr</dc:creator>
			<guid isPermaLink="true">http://www.webdeveloper.com/forum/showthread.php?279715-Javascript-for-Dummies-Companion-CD</guid>
		</item>
		<item>
			<title>Rhino Slider - link directly to a specific slide</title>
			<link>http://www.webdeveloper.com/forum/showthread.php?279703-Rhino-Slider-link-directly-to-a-specific-slide&amp;goto=newpost</link>
			<pubDate>Tue, 18 Jun 2013 19:41:42 GMT</pubDate>
			<description><![CDATA[I'm trying to build a URL that will link directly to a specific slide using the Rhino slider.  The documentation shows how to do it if you are on the same page the slider lives on, but I want to link from one page with just text to a page with the slider on it and target a specific slide.  Here's...]]></description>
			<content:encoded><![CDATA[<div>I'm trying to build a URL that will link directly to a specific slide using the Rhino slider.  The documentation shows how to do it if you are on the same page the slider lives on, but I want to link from one page with just text to a page with the slider on it and target a specific slide.  Here's my code:<br />
<br />
&lt;head&gt;<br />
&lt;script type=&quot;text/javascript&quot;&gt;<br />
  $(document).ready(function(){<br />
   $('#slider').rhinoslider();<br />
});<br />
&lt;/script&gt;<br />
       <br />
&lt;script type=&quot;text/javascript&quot;&gt;<br />
	function rgo(id)<br />
	{<br />
	var cur_id = $('#slider').find('li.rhino-active').index();<br />
			<br />
	if (cur_id!=id)<br />
            <br />
             $('#slider').data('rhinoslider').next($('#rhino-item'+id));<br />
			<br />
	return false;<br />
			}<br />
&lt;/script&gt;  <br />
<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
<br />
&lt;ul id=&quot;slider&quot;&gt;<br />
                	<br />
    &lt;li id=&quot;rhino-item0&quot;&gt;<br />
       &lt;!-- html code here --&gt;<br />
    &lt;/li&gt;<br />
<br />
    &lt;li id=&quot;rhino-item1&quot;&gt;<br />
       &lt;!-- html code here --&gt;<br />
    &lt;/li&gt;<br />
<br />
    &lt;li id=&quot;rhino-item2&quot;&gt;<br />
       &lt;!-- html code here --&gt;<br />
    &lt;/li&gt;<br />
&lt;/ul&gt;<br />
<br />
&lt;p&gt;&lt;a href=&quot;#&quot; onclick=&quot;return rgo(2)&quot;&gt;Go to slide3&lt;/a&gt;&lt;/p&gt;<br />
<br />
&lt;p&gt;&lt;a href=&quot;#&quot; onclick=&quot;return rgo(4)&quot;&gt;Go to slide5&lt;/a&gt;&lt;/p&gt;<br />
<br />
Like I stated, this will work if you're already on the same page that the slider lives on.  But I want to build a static URL that will link directly to a slide.  I tried this with no luck:<br />
<br />
&lt;a href=&quot;https://www.myurl.com/#slider&quot; onclick=&quot;return rgo(2)&quot;&gt;click here for slide 3&lt;/a&gt;<br />
<br />
Any help would be greatly appreciated.  Thank you!</div>

]]></content:encoded>
			<category domain="http://www.webdeveloper.com/forum/forumdisplay.php?3-JavaScript">JavaScript</category>
			<dc:creator>CamA2007</dc:creator>
			<guid isPermaLink="true">http://www.webdeveloper.com/forum/showthread.php?279703-Rhino-Slider-link-directly-to-a-specific-slide</guid>
		</item>
	</channel>
</rss>
