<?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>Saddacrackers &#187; jQuery</title>
	<atom:link href="http://www.saddacrackers.com/category/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.saddacrackers.com</link>
	<description>Family, Art and Codes</description>
	<lastBuildDate>Mon, 01 Aug 2011 22:34:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Having Trouble with Lightbox in Safari 3.x?</title>
		<link>http://www.saddacrackers.com/javascript/having-trouble-with-lightbox-in-safari-3x/</link>
		<comments>http://www.saddacrackers.com/javascript/having-trouble-with-lightbox-in-safari-3x/#comments</comments>
		<pubDate>Wed, 13 May 2009 20:38:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.saddacrackers.com/?p=314</guid>
		<description><![CDATA[Well I know I sure was. I came across a bug where images could be displayed smaller or bigger than they should depending on what you clicked on before that image. I&#8217;ve patched the lightbox.js [...]]]></description>
			<content:encoded><![CDATA[<p>Well I know I sure was. I came across a bug where images could be displayed smaller or bigger than they should depending on what you clicked on before that image.</p>
<p>I&#8217;ve patched the lightbox.js to make this bug go away. In lighbox class&#8217; changeImage method I modified the imgPreloader.onload function.</p>
<div id="code">
<pre class="brush: javascript;">&lt;/div&gt;
&lt;div&gt;imgPreloader.onload = (function(){&lt;/div&gt;
&lt;div id=&quot;code&quot;&gt;

this.lightboxImage.src = this.imageArray[this.activeImage][0];

//CrashShop edited at 2009-05-12

//modified unimatrixZxero patch (below) to work with latest lightbox code

//FIXES SAFARI 3.0 Images keeping same height and width attributes as

//previous clicked image

this.lightboxImage.width = imgPreloader.width;

this.lightboxImage.height = imgPreloader.height;

//unimatrixZxero edited fist at 2008-02-20 23:25

//adding these attr setters for bug fix in Safari 3.x

//Element.setWidth('lightboxImage', imgPreloader.width);

//Element.setHeight('lightboxImage', imgPreloader.height);

this.resizeImageContainer(imgPreloader.width, imgPreloader.height);

}).bind(this);

imgPreloader.src = this.imageArray[this.activeImage][0];

&lt;/div&gt;
</pre>
<p>The original fix was by Sam Figueroa found at his <a href="http://unimatrixzxero.macbay.de/dragonsrefuge/posts/view/12">blog</a>. I just had to re-write it to work for the latest version of <a href="http://lokeshdhakar.com/projects/lightbox2/">LightBox</a>.js.</p>
<p>Also, I had to add a timestamp to the javascript include to prevent Safari from using a cached version. Yeah, there&#8217;s a better way, but this was quick and I thought it might help someone like me who ran into this problem. I&#8217;m sure no-one is using this, but if you&#8217;reupdating a legacy website then&#8230; I would sggest jQuery <img src='http://www.saddacrackers.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </div>
]]></content:encoded>
			<wfw:commentRss>http://www.saddacrackers.com/javascript/having-trouble-with-lightbox-in-safari-3x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Coffee Website</title>
		<link>http://www.saddacrackers.com/web-design/coffee-website/</link>
		<comments>http://www.saddacrackers.com/web-design/coffee-website/#comments</comments>
		<pubDate>Fri, 10 Oct 2008 21:11:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[interactive]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[portfolio]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://www.saddacrackers.com/?p=283</guid>
		<description><![CDATA[This is the site I&#8217;m designering for Zippy&#8217;s Java lounge in Everett.www.zippysjava.com]]></description>
			<content:encoded><![CDATA[<p class="mobile-photo"><a href="http://3.bp.blogspot.com/_oSQLJYdZj48/SO_FKWYYtTI/AAAAAAAACRI/R5RaQ_9ayp4/s1600-h/Zippys_subpage.0.1.0-729270.jpg"><img src="http://3.bp.blogspot.com/_oSQLJYdZj48/SO_FKWYYtTI/AAAAAAAACRI/R5RaQ_9ayp4/s400/Zippys_subpage.0.1.0-729270.jpg" alt="" id="BLOGGER_PHOTO_ID_5255636071761884466" border="0" /></a></p>
<p>This is the site I&#8217;m designering for Zippy&#8217;s Java lounge in Everett.<br /><a href="http://www.zippysjava.com/">www.zippysjava.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.saddacrackers.com/web-design/coffee-website/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

