<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Error Log &#187; Solutions</title>
	<atom:link href="http://www.errorlog.dk/category/solutions/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.errorlog.dk</link>
	<description>Problems I&#039;ve found solutions for.</description>
	<lastBuildDate>Thu, 20 Nov 2008 11:43:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Getting javascript variables to survive reload</title>
		<link>http://www.errorlog.dk/2008/11/20/getting-javascript-variables-to-survive-reload/</link>
		<comments>http://www.errorlog.dk/2008/11/20/getting-javascript-variables-to-survive-reload/#comments</comments>
		<pubDate>Thu, 20 Nov 2008 11:43:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Solutions]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.errorlog.dk/?p=81</guid>
		<description><![CDATA[Problem
You have some javascript where the user has selected some values you intend to persist when the user presses reload.

Solution
Have a form with a hidden field
&#60;input id="someId" type="hidden" /&#62;
Set the value with
document.getElementById("someId").value=someValue;
Get the value with
someValue=document.getElementById("someId").value;
NB!If you dynamically add and remove input elements to the form as part of the javascript code, make sure the hidden [...]]]></description>
			<content:encoded><![CDATA[<h2>Problem</h2>
<p>You have some javascript where the user has selected some values you intend to persist when the user presses reload.</p>
<h4><span id="more-81"></span></h4>
<h2>Solution</h2>
<p>Have a form with a hidden field</p>
<blockquote><p><code>&lt;input id="someId" type="hidden" /&gt;</code></p></blockquote>
<p>Set the value with</p>
<blockquote><p><code>document.getElementById("someId").value=someValue;</code></p></blockquote>
<p>Get the value with</p>
<blockquote><p><code>someValue=document.getElementById("someId").value;</code></p></blockquote>
<p><strong>NB!</strong>If you dynamically add and remove input elements to the form as part of the javascript code, make sure the hidden fields are placed before any of the dynamic elements. The values are saved in the order the fields had when the user clicked to reload, and they are restored in the order the fields have initially, so if you have added fields before the hidden ones, the values are shifted to other fields.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.errorlog.dk/2008/11/20/getting-javascript-variables-to-survive-reload/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Where can I find the javascript error console in Firefox?</title>
		<link>http://www.errorlog.dk/2008/11/19/where-can-i-find-the-javascript-error-console-in-firefox/</link>
		<comments>http://www.errorlog.dk/2008/11/19/where-can-i-find-the-javascript-error-console-in-firefox/#comments</comments>
		<pubDate>Wed, 19 Nov 2008 11:06:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Solutions]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.errorlog.dk/?p=76</guid>
		<description><![CDATA[Problem
while writing javascript it&#8217;s nice to actually see the errors I make.

Solution
Open chrome://global/content/console.xul in a new tab or window.
]]></description>
			<content:encoded><![CDATA[<h2>Problem</h2>
<p>while writing javascript it&#8217;s nice to actually see the errors I make.</p>
<h4><span id="more-76"></span></h4>
<h2>Solution</h2>
<p>Open <a href="chrome://global/content/console.xul">chrome://global/content/console.xul</a> in a new tab or window.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.errorlog.dk/2008/11/19/where-can-i-find-the-javascript-error-console-in-firefox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
