<?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>Tony Virelli - Web Developer - HTML, xHTML, PHP, MySQL, JavaScript&#187; JavaScript</title>
	<atom:link href="http://tonyvirelli.com/category/blog/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://tonyvirelli.com</link>
	<description>Tony Virelli - I share the information I have dealing with web design, technology, the internet and more</description>
	<lastBuildDate>Tue, 31 Jan 2012 14:57:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Fix ShadowBox.js In Internet Explorer 8</title>
		<link>http://tonyvirelli.com/slider/fix-shadowbox-js-in-internet-explorer-8/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=fix-shadowbox-js-in-internet-explorer-8</link>
		<comments>http://tonyvirelli.com/slider/fix-shadowbox-js-in-internet-explorer-8/#comments</comments>
		<pubDate>Tue, 25 May 2010 18:03:23 +0000</pubDate>
		<dc:creator>Tony Virelli</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[slider]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[ie8]]></category>
		<category><![CDATA[internet explorer]]></category>
		<category><![CDATA[shadow]]></category>
		<category><![CDATA[shadowbox]]></category>

		<guid isPermaLink="false">http://tonyvirelli.com/?p=580</guid>
		<description><![CDATA[So at my office we use ShadowBox a lot. Well with the release of Internet Explorer 8 our sites that use ShadowBox no longer worked. Oh, they worked in IE6, IE7, FireFox, Chrome, Safari &#038; Opera, but not in IE8 (a.k.a. The Broken Browser!). So after some Googling around I found this tip: 1. Go [...]]]></description>
			<content:encoded><![CDATA[<p>So at my office we use <a href="http://www.shadowbox-js.com/" target="_blank">ShadowBox</a> a lot.</p>
<p>Well with the release of Internet Explorer 8 our sites that use ShadowBox no longer worked. Oh, they worked in IE6, IE7, FireFox, Chrome, Safari &#038; Opera, but not in IE8 (a.k.a. The Broken Browser!).<br />
<span id="more-580"></span><br />
So after some Googling around I found this tip:</p>
<p>1. Go to your path where skin.css is on your server: */skin/classic/<br />
2. Open skin.css and add the following lines:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#shadowbox_title</span> <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #993333;">solid</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#shadowbox_info</span> <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #993333;">solid</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>So there you have it! ShadowBox should work in IE8 for you now!</p>
]]></content:encoded>
			<wfw:commentRss>http://tonyvirelli.com/slider/fix-shadowbox-js-in-internet-explorer-8/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>JavaScript Confirm Delete</title>
		<link>http://tonyvirelli.com/slider/javascript-confirm-delete/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=javascript-confirm-delete</link>
		<comments>http://tonyvirelli.com/slider/javascript-confirm-delete/#comments</comments>
		<pubDate>Thu, 04 Dec 2008 09:45:57 +0000</pubDate>
		<dc:creator>Tony Virelli</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[slider]]></category>
		<category><![CDATA[alert]]></category>
		<category><![CDATA[confirm]]></category>

		<guid isPermaLink="false">http://tonyvirelli.com/?p=174</guid>
		<description><![CDATA[Use a javascript alert box to confirm that a user really wants to continue with the action. &#60;script type=&#34;text/javascript&#34;&#62;// &#60;![CDATA[ function confirmDelete&#40;delUrl&#41; &#123; if &#40;confirm&#40;&#34;Are you sure you want to delete&#34;&#41;&#41; &#123; document.location = delUrl; &#125; &#125; // ]]&#62; &#60;/script&#62; &#60;a href=&#34;javascript:confirmDelete('delete.page?id=1')&#34;&#62;;Delete&#60;/a&#62; Another way to do this is &#60;a onclick=&#34;return confirm('Are you sure you want [...]]]></description>
			<content:encoded><![CDATA[<p>Use a javascript alert box to confirm that a user really wants to continue with the action.<br />
<span id="more-174"></span></p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #006600; font-style: italic;">// &lt;![CDATA[</span>
<span style="color: #003366; font-weight: bold;">function</span> confirmDelete<span style="color: #009900;">&#40;</span>delUrl<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000066;">confirm</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Are you sure you want to delete&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        document.<span style="color: #660066;">location</span> <span style="color: #339933;">=</span> delUrl<span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #006600; font-style: italic;">// ]]&gt;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;a href=&quot;javascript:confirmDelete('delete.page?id=1')&quot;&gt;;Delete&lt;/a&gt;</pre></div></div>

<p>Another way to do this is</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;a onclick=&quot;return confirm('Are you sure you want to delete?')&quot; href=&quot;delete.page?id=1&quot;&gt;Delete&lt;/a&gt;</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://tonyvirelli.com/slider/javascript-confirm-delete/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple Toggle Visibility</title>
		<link>http://tonyvirelli.com/slider/simple-toggle-visibility/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=simple-toggle-visibility</link>
		<comments>http://tonyvirelli.com/slider/simple-toggle-visibility/#comments</comments>
		<pubDate>Wed, 15 Oct 2008 10:09:21 +0000</pubDate>
		<dc:creator>Tony Virelli</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[slider]]></category>
		<category><![CDATA[close]]></category>
		<category><![CDATA[open]]></category>
		<category><![CDATA[slide]]></category>
		<category><![CDATA[toggle]]></category>
		<category><![CDATA[visibility]]></category>

		<guid isPermaLink="false">http://tonyvirelli.com/?p=193</guid>
		<description><![CDATA[This is a simple toggle visibility or show/hide function. I use it all the time. First insert this function into the head section: &#60;script type=&#34;text/javascript&#34;&#62;// &#60;![CDATA[ function toggle_visibility&#40;id&#41; &#123; var e = document.getElementById&#40;id&#41;; if&#40;e.style.display == 'block'&#41;&#123; e.style.display = 'none'; &#125;else&#123; e.style.display = 'block'; &#125; &#125; // ]]&#62; &#60;/script&#62; Then use the code below to call [...]]]></description>
			<content:encoded><![CDATA[<p>This is a simple toggle visibility or show/hide function. I use it all the time.</p>
<p>First insert this function into the head section:<br />
<span id="more-193"></span></p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #006600; font-style: italic;">// &lt;![CDATA[</span>
 <span style="color: #003366; font-weight: bold;">function</span> toggle_visibility<span style="color: #009900;">&#40;</span>id<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>     <span style="color: #003366; font-weight: bold;">var</span> e <span style="color: #339933;">=</span> document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span>id<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>     <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>e.<span style="color: #660066;">style</span>.<span style="color: #660066;">display</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">'block'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>         e.<span style="color: #660066;">style</span>.<span style="color: #660066;">display</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">'none'</span><span style="color: #339933;">;</span>     <span style="color: #009900;">&#125;</span><span style="color: #000066; font-weight: bold;">else</span><span style="color: #009900;">&#123;</span>        e.<span style="color: #660066;">style</span>.<span style="color: #660066;">display</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">'block'</span><span style="color: #339933;">;</span>     <span style="color: #009900;">&#125;</span> <span style="color: #009900;">&#125;</span>
<span style="color: #006600; font-style: italic;">// ]]&gt;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

<p>Then use the code below to call the function:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;a onclick=&quot;toggle_visibility('foo');&quot; href=&quot;#&quot;&gt;Click here to toggle visibility of element #foo&lt;/a&gt;
&lt;div id=&quot;foo&quot;&gt;This is foo&lt;/div&gt;</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://tonyvirelli.com/slider/simple-toggle-visibility/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

