<?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>Beyond Coding &#187; Javascript / AJAX</title>
	<atom:link href="http://www.beyondcoding.com/category/javascript-ajax/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.beyondcoding.com</link>
	<description>Follow us on Twitter: @fredwu and @scotti3g</description>
	<lastBuildDate>Thu, 15 Jul 2010 13:58:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>jQuery Slideshow Lite Plugin Updated (Major Rewrite)</title>
		<link>http://www.beyondcoding.com/2009/08/29/jquery-slideshow-lite-plugin-updated-major-rewrite/</link>
		<comments>http://www.beyondcoding.com/2009/08/29/jquery-slideshow-lite-plugin-updated-major-rewrite/#comments</comments>
		<pubDate>Sat, 29 Aug 2009 12:49:50 +0000</pubDate>
		<dc:creator>Fred Wu</dc:creator>
				<category><![CDATA[Releases Updates]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[gallery]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[photo]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[slideshow]]></category>

		<guid isPermaLink="false">http://www.beyondcoding.com/?p=345</guid>
		<description><![CDATA[The jQuery Slideshow Lite plugin is updated with new features! This is a major rewrite which fixed the known issue of not being able to change slides instantly via pagination clicks. The new version also adds automatic photo caption display. Enjoy! :) Tags: gallery, image, javascript, jQuery, photo, plugin, slideshow Related posts Release: [jQuery Plugin] [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://www.beyondcoding.com/2009/08/04/release-jquery-plugin-slideshow-lite/">jQuery Slideshow Lite</a> plugin is updated with new features!</p>
<p>This is a major rewrite which fixed the known issue of not being able to change slides instantly via pagination clicks.</p>
<p>The new version also adds automatic photo caption display.</p>
<p>Enjoy! :)</p>

	Tags: <a href="http://www.beyondcoding.com/tag/gallery/" title="gallery" rel="tag">gallery</a>, <a href="http://www.beyondcoding.com/tag/image/" title="image" rel="tag">image</a>, <a href="http://www.beyondcoding.com/tag/javascript/" title="javascript" rel="tag">javascript</a>, <a href="http://www.beyondcoding.com/tag/jquery/" title="jQuery" rel="tag">jQuery</a>, <a href="http://www.beyondcoding.com/tag/photo/" title="photo" rel="tag">photo</a>, <a href="http://www.beyondcoding.com/tag/plugin/" title="plugin" rel="tag">plugin</a>, <a href="http://www.beyondcoding.com/tag/slideshow/" title="slideshow" rel="tag">slideshow</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.beyondcoding.com/2009/08/04/release-jquery-plugin-slideshow-lite/" title="Release: [jQuery Plugin] Slideshow Lite (August 4, 2009)">Release: [jQuery Plugin] Slideshow Lite</a> (49)</li>
	<li><a href="http://www.beyondcoding.com/2009/01/15/release-jquery-plugin-endless-scroll/" title="Release: [jQuery Plugin] Endless Scroll (January 15, 2009)">Release: [jQuery Plugin] Endless Scroll</a> (36)</li>
	<li><a href="http://www.beyondcoding.com/2008/02/24/wordpress-plugins-recommendation-list/" title="WordPress Plugins Recommendation List (February 24, 2008)">WordPress Plugins Recommendation List</a> (2)</li>
	<li><a href="http://www.beyondcoding.com/2007/12/16/release-wordpress-plugin-syntaxhighlighter-plus/" title="Release: [WordPress Plugin] SyntaxHighlighter Plus (December 16, 2007)">Release: [WordPress Plugin] SyntaxHighlighter Plus</a> (182)</li>
	<li><a href="http://www.beyondcoding.com/2007/12/15/oh-where-did-my-theme-go/" title="Oh, where did my theme go? (December 15, 2007)">Oh, where did my theme go?</a> (1)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.beyondcoding.com/2009/08/29/jquery-slideshow-lite-plugin-updated-major-rewrite/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Release: [jQuery Plugin] Slideshow Lite</title>
		<link>http://www.beyondcoding.com/2009/08/04/release-jquery-plugin-slideshow-lite/</link>
		<comments>http://www.beyondcoding.com/2009/08/04/release-jquery-plugin-slideshow-lite/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 07:08:47 +0000</pubDate>
		<dc:creator>Fred Wu</dc:creator>
				<category><![CDATA[Releases]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[gallery]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[photo]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[slideshow]]></category>

		<guid isPermaLink="false">http://www.beyondcoding.com/?p=327</guid>
		<description><![CDATA[Latest release: v0.5.3 A few days ago I was asked to make a simple slideshow. My initial thought was, there must be a ton of solutions available for jQuery. I could easily draw inspiration from them. I was wrong. Whilst there are a few nicely done slideshow plugins for jQuery, the majority of them are [...]]]></description>
			<content:encoded><![CDATA[<p><em>Latest release: v0.5.3</em></p>
<p>A few days ago I was asked to make a simple slideshow. My initial thought was, there must be a ton of solutions available for jQuery. I could easily draw inspiration from them.</p>
<p>I was wrong. Whilst there are a few nicely done slideshow plugins for jQuery, the majority of them are either poorly written or far too complicated.</p>
<p>So, I decided to code my own plugin from the ground up. Meet <a href="http://plugins.jquery.com/project/slideshowlite">Slideshow Lite</a>!</p>
<p>The plugin is only tested with jQuery 1.3, but it should also work on jQuery 1.2.</p>
<h3>Features</h3>
<ul>
<li>Unobtrusive JavaScript, simply load it and that&#8217;s it</li>
<li>Clean, semantic HTML structure</li>
<li>Easy to use</li>
<li>Customisable</li>
<li>Free to use or to modify (GPL/MIT dual license)!</li>
</ul>
<p><span id="more-327"></span></p>
<h3>Plugin Options</h3>
<ul>
<li><em>pauseSeconds</em> (float) &#8211; number of seconds between each photo to be displayed</li>
<li><em>fadeSpeed</em> (float) &#8211; number of seconds for the fading transition, the value should not exceed &#8216;pauseSeconds&#8217;</li>
<li><em>width</em> (integer) &#8211; width of the slideshow, in pixels</li>
<li><em>height</em> (integer) &#8211; height of the slideshow, in pixels</li>
<li><em>caption</em> (boolean) &#8211; display photo caption?</li>
<li><em>cssClass</em> (string) &#8211; name of the CSS class, defaults to &#8216;slideshowlite&#8217;</li>
</ul>
<h3>Usage</h3>
<pre class="brush: jscript;">
$(document).ready(function(){
	// with default options
	$(&quot;#slideshow&quot;).slideshow();

	// with custom options
	$(&quot;#slideshow2&quot;).slideshow({
		pauseSeconds: 4,
		height: 200
	});
});
</pre>
<p>Please checkout the <a href="http://www.beyondcoding.com/demos/slideshow-lite/">demo</a> for the HTML required.</p>
<h3>Demo</h3>
<p><a href="http://www.beyondcoding.com/demos/slideshow-lite/">Click here for a simple demo.</a></p>
<p><strong><a href="http://plugins.jquery.com/project/slideshowlite">Download / Source Code</a></strong></p>
<h3>Changelog</h3>
<p>v0.5.3 [2009-09-24]</p>
<ul>
<li>Added &#8216;fadeSpeed&#8217; for setting the transition speed.</li>
</ul>
<p>v0.5.2 [2009-09-06]</p>
<ul>
<li>Repackaged to remove an unnecessary .htaccess file.</li>
</ul>
<p>v0.5.1 [2009-08-30]</p>
<ul>
<li>Fixed some typo.</li>
</ul>
<p>v0.5 [2009-08-29]</p>
<ul>
<li>Major rewrite: slides can now be clicked freely (as opposed to waiting for one to finish showing before it can be clicked again).</li>
<li>Added automatic photo caption.</li>
</ul>
<p>v0.4 [2009-08-05]</p>
<ul>
<li>Code clean up.</li>
<li>Added transparency effects to the navigation, to indicate when it is clickable.</li>
<li>Added inline configuration documentation.</li>
</ul>
<p>v0.3 [2009-08-04]</p>
<ul>
<li>Smoother animation.</li>
</ul>
<p>v0.2 [2009-08-04]</p>
<ul>
<li>Fixed a navigation bug where the clicks no longer work after clicking on the current slideshow.</li>
</ul>
<p>v0.1 [2009-08-04]</p>
<ul>
<li>Initial release.</li>
</ul>

	Tags: <a href="http://www.beyondcoding.com/tag/gallery/" title="gallery" rel="tag">gallery</a>, <a href="http://www.beyondcoding.com/tag/image/" title="image" rel="tag">image</a>, <a href="http://www.beyondcoding.com/tag/javascript/" title="javascript" rel="tag">javascript</a>, <a href="http://www.beyondcoding.com/tag/jquery/" title="jQuery" rel="tag">jQuery</a>, <a href="http://www.beyondcoding.com/tag/photo/" title="photo" rel="tag">photo</a>, <a href="http://www.beyondcoding.com/tag/plugin/" title="plugin" rel="tag">plugin</a>, <a href="http://www.beyondcoding.com/tag/slideshow/" title="slideshow" rel="tag">slideshow</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.beyondcoding.com/2009/08/29/jquery-slideshow-lite-plugin-updated-major-rewrite/" title="jQuery Slideshow Lite Plugin Updated (Major Rewrite) (August 29, 2009)">jQuery Slideshow Lite Plugin Updated (Major Rewrite)</a> (0)</li>
	<li><a href="http://www.beyondcoding.com/2009/01/15/release-jquery-plugin-endless-scroll/" title="Release: [jQuery Plugin] Endless Scroll (January 15, 2009)">Release: [jQuery Plugin] Endless Scroll</a> (36)</li>
	<li><a href="http://www.beyondcoding.com/2008/02/24/wordpress-plugins-recommendation-list/" title="WordPress Plugins Recommendation List (February 24, 2008)">WordPress Plugins Recommendation List</a> (2)</li>
	<li><a href="http://www.beyondcoding.com/2007/12/16/release-wordpress-plugin-syntaxhighlighter-plus/" title="Release: [WordPress Plugin] SyntaxHighlighter Plus (December 16, 2007)">Release: [WordPress Plugin] SyntaxHighlighter Plus</a> (182)</li>
	<li><a href="http://www.beyondcoding.com/2007/12/15/oh-where-did-my-theme-go/" title="Oh, where did my theme go? (December 15, 2007)">Oh, where did my theme go?</a> (1)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.beyondcoding.com/2009/08/04/release-jquery-plugin-slideshow-lite/feed/</wfw:commentRss>
		<slash:comments>49</slash:comments>
		</item>
		<item>
		<title>jQuery Endless Scroll Updated</title>
		<link>http://www.beyondcoding.com/2009/04/20/jquery-endless-scroll-updated/</link>
		<comments>http://www.beyondcoding.com/2009/04/20/jquery-endless-scroll-updated/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 07:20:46 +0000</pubDate>
		<dc:creator>Fred Wu</dc:creator>
				<category><![CDATA[Releases Updates]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[endless]]></category>
		<category><![CDATA[pagination]]></category>
		<category><![CDATA[scroll]]></category>
		<category><![CDATA[scrolling]]></category>

		<guid isPermaLink="false">http://www.beyondcoding.com/?p=303</guid>
		<description><![CDATA[The jQuery Endless Scroll plugin has been updated. A bug caused by &#8216;fireDelay&#8216; is fixed. Please head over to the release post or the jQuery plugin site for the download link. Tags: endless, jQuery, pagination, scroll, scrolling Related posts Release: [jQuery Plugin] Endless Scroll (36) Release: [jQuery Plugin] Slideshow Lite (49) jQuery.slideDown() issues in IE: [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://www.beyondcoding.com/2009/01/15/release-jquery-plugin-endless-scroll/">jQuery Endless Scroll plugin</a> has been updated.</p>
<p>A bug caused by &#8216;<em>fireDelay</em>&#8216; is fixed.</p>
<p>Please head over to the <a href="http://www.beyondcoding.com/2009/01/15/release-jquery-plugin-endless-scroll/">release post</a> or the<a href="http://plugins.jquery.com/project/endless-scroll"> jQuery plugin site</a> for the download link.</p>

	Tags: <a href="http://www.beyondcoding.com/tag/endless/" title="endless" rel="tag">endless</a>, <a href="http://www.beyondcoding.com/tag/jquery/" title="jQuery" rel="tag">jQuery</a>, <a href="http://www.beyondcoding.com/tag/pagination/" title="pagination" rel="tag">pagination</a>, <a href="http://www.beyondcoding.com/tag/scroll/" title="scroll" rel="tag">scroll</a>, <a href="http://www.beyondcoding.com/tag/scrolling/" title="scrolling" rel="tag">scrolling</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.beyondcoding.com/2009/01/15/release-jquery-plugin-endless-scroll/" title="Release: [jQuery Plugin] Endless Scroll (January 15, 2009)">Release: [jQuery Plugin] Endless Scroll</a> (36)</li>
	<li><a href="http://www.beyondcoding.com/2009/08/04/release-jquery-plugin-slideshow-lite/" title="Release: [jQuery Plugin] Slideshow Lite (August 4, 2009)">Release: [jQuery Plugin] Slideshow Lite</a> (49)</li>
	<li><a href="http://www.beyondcoding.com/2009/02/26/jquery-slidedown-issues-in-ie-quick-fixes/" title="jQuery.slideDown() issues in IE: quick fixes (February 26, 2009)">jQuery.slideDown() issues in IE: quick fixes</a> (12)</li>
	<li><a href="http://www.beyondcoding.com/2009/08/29/jquery-slideshow-lite-plugin-updated-major-rewrite/" title="jQuery Slideshow Lite Plugin Updated (Major Rewrite) (August 29, 2009)">jQuery Slideshow Lite Plugin Updated (Major Rewrite)</a> (0)</li>
	<li><a href="http://www.beyondcoding.com/2008/11/20/jquery-problems-in-ie-it-could-be-swfobjects/" title="jQuery problems in IE? It could be SWFObjects. (November 20, 2008)">jQuery problems in IE? It could be SWFObjects.</a> (3)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.beyondcoding.com/2009/04/20/jquery-endless-scroll-updated/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery.slideDown() issues in IE: quick fixes</title>
		<link>http://www.beyondcoding.com/2009/02/26/jquery-slidedown-issues-in-ie-quick-fixes/</link>
		<comments>http://www.beyondcoding.com/2009/02/26/jquery-slidedown-issues-in-ie-quick-fixes/#comments</comments>
		<pubDate>Thu, 26 Feb 2009 02:41:34 +0000</pubDate>
		<dc:creator>Fred Wu</dc:creator>
				<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[slideDown]]></category>

		<guid isPermaLink="false">http://www.beyondcoding.com/?p=249</guid>
		<description><![CDATA[A simple Google search suggests that people are having problems with jQuery.slideDown() on Internet Explorer. I&#8217;ve come across two issues on Internet Explorer 7 while developing a website containing some slideDown() effects, and found some quick fixes for them. :) Issue 1: slideDown() does not actually slide, the target HTML element appears the same way [...]]]></description>
			<content:encoded><![CDATA[<p>A simple Google search suggests that people are <a href="http://nick.blogster.com/jquery-slidedown-effect-ie-bug">having problems</a> with jQuery.slideDown() on Internet Explorer.</p>
<p>I&#8217;ve come across two issues on Internet Explorer 7 while developing a website containing some <em>slideDown()</em> effects, and found some quick fixes for them. :)</p>
<p><span id="more-249"></span></p>
<p><strong>Issue 1: <em>slideDown()</em> does not actually slide, the target HTML element appears the same way as <em>show()</em>.</strong></p>
<p>After messing around with the JavaScript and HTML, I&#8217;ve finally nailed down the issue. It occurs when there are absolutely positioned elements in the target HTML.</p>
<p>Typically when we have absolutely positioned elements, we would want to have a relatively positioned wrapper element to control the position of the elements on the page. It makes perfect sense to simply trigger the <em>slideDown()</em> effect on the wrapper.</p>
<p>The HTML schema would look something like this:</p>
<p>Wrapper A <small>(the element that contains Wrapper B, it makes an AJAX call to retrieve Wrapper B)</small><br />
&#8230;. Wrapper B <small>(the relatively positioned target element that is assigned to the <em>slideDown()</em> event)</small><br />
&#8230;. &#8230;. Element C <small>(absolutely positioned)</small></p>
<p>Both Firefox and Safari don&#8217;t have any problems with that, but Internet Explorer does. On IE 7 (I haven&#8217;t tested IE 6), the targeted HTML (Wrapper B) will simply appear without the sliding effect, resulting the same effect as calling <em>show()</em>.</p>
<p>The fix is simple, make the parent element (Wrapper A) relatively positioned too.</p>
<p><strong>Issue 2: <em>slideDown()</em> animates, then the element vanishes immediately afterwards.</strong></p>
<p>The problematic JavaScript looks something like this:</p>
<pre class="brush: jscript;">
var data = 'Some HTML retrieved from an AJAX call.';
$(&quot;div#wrapper_b&quot;).hide().html(data).slideDown();
</pre>
<p>The fix is quick and simple:</p>
<pre class="brush: jscript;">
var data = 'Some HTML retrieved from an AJAX call.';
$(&quot;div#wrapper_b&quot;).hide().html(data).slideDown().show(function(){
	$(this).html(data).show();
});
</pre>
<p>Of course, depending on the HTML markup, your mileage may vary.</p>

	Tags: <a href="http://www.beyondcoding.com/tag/fix/" title="fix" rel="tag">fix</a>, <a href="http://www.beyondcoding.com/tag/ie/" title="IE" rel="tag">IE</a>, <a href="http://www.beyondcoding.com/tag/internet-explorer/" title="Internet Explorer" rel="tag">Internet Explorer</a>, <a href="http://www.beyondcoding.com/tag/jquery/" title="jQuery" rel="tag">jQuery</a>, <a href="http://www.beyondcoding.com/tag/slidedown/" title="slideDown" rel="tag">slideDown</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.beyondcoding.com/2008/11/20/jquery-problems-in-ie-it-could-be-swfobjects/" title="jQuery problems in IE? It could be SWFObjects. (November 20, 2008)">jQuery problems in IE? It could be SWFObjects.</a> (3)</li>
	<li><a href="http://www.beyondcoding.com/2009/08/04/release-jquery-plugin-slideshow-lite/" title="Release: [jQuery Plugin] Slideshow Lite (August 4, 2009)">Release: [jQuery Plugin] Slideshow Lite</a> (49)</li>
	<li><a href="http://www.beyondcoding.com/2009/01/15/release-jquery-plugin-endless-scroll/" title="Release: [jQuery Plugin] Endless Scroll (January 15, 2009)">Release: [jQuery Plugin] Endless Scroll</a> (36)</li>
	<li><a href="http://www.beyondcoding.com/2009/08/29/jquery-slideshow-lite-plugin-updated-major-rewrite/" title="jQuery Slideshow Lite Plugin Updated (Major Rewrite) (August 29, 2009)">jQuery Slideshow Lite Plugin Updated (Major Rewrite)</a> (0)</li>
	<li><a href="http://www.beyondcoding.com/2009/04/20/jquery-endless-scroll-updated/" title="jQuery Endless Scroll Updated (April 20, 2009)">jQuery Endless Scroll Updated</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.beyondcoding.com/2009/02/26/jquery-slidedown-issues-in-ie-quick-fixes/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Release: [jQuery Plugin] Endless Scroll</title>
		<link>http://www.beyondcoding.com/2009/01/15/release-jquery-plugin-endless-scroll/</link>
		<comments>http://www.beyondcoding.com/2009/01/15/release-jquery-plugin-endless-scroll/#comments</comments>
		<pubDate>Thu, 15 Jan 2009 01:31:37 +0000</pubDate>
		<dc:creator>Fred Wu</dc:creator>
				<category><![CDATA[Releases]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[endless]]></category>
		<category><![CDATA[infinite]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[scroll]]></category>
		<category><![CDATA[scrolling]]></category>

		<guid isPermaLink="false">http://www.beyondcoding.com/?p=161</guid>
		<description><![CDATA[Latest release: v1.4.1 If you don&#8217;t already know, endless scroll (or infinite scrolling) is a popular technique among web 2.0 sites such as Google Reader and Live Image Search, where instead of paging through items using the traditional pagination technique, the page just keeps loading with new items attached to the end. I have developed [...]]]></description>
			<content:encoded><![CDATA[<p><em>Latest release: v1.4.1</em></p>
<p>If you don&#8217;t already know, <a href="http://www.google.com/search?q=endless+scroll">endless scroll</a> (or infinite scrolling) is a popular technique among web 2.0 sites such as <a href="http://reader.google.com/">Google Reader</a> and <a href="http://www.live.com/?scope=images">Live Image Search</a>, where instead of paging through items using the traditional pagination technique, the page just keeps loading with new items attached to the end.</p>
<p>I have developed a jQuery plugin to easily achieve this.</p>
<p><strong>Requirement:</strong> jQuery 1.2+</p>
<p>The plugin is tested with jQuery 1.2.6, 1.3 and 1.4.</p>
<p>There are a few options to customise the behaviour of this plugin:</p>
<ul>
<li><em>bottomPixels</em> (integer) &#8211; the number of pixels from the bottom of the page that triggers the event</li>
<li><em>fireOnce</em> (boolean) &#8211; only fire once until the execution of the current event is completed</li>
<li><em>fireDelay</em> (integer) &#8211; delay the subsequent firing, in milliseconds. 0 or false to disable delay.</li>
<li><em>loader</em> (string) &#8211; HTML loader</li>
<li><em>data</em> (string) &#8211; plain HTML data</li>
<li><em>insertAfter</em> (string) &#8211; jQuery selector syntax: where to put the loader as well as the plain HTML data</li>
<li><em>callback</em> (function) &#8211; callback function, accepets one argument: fire sequence (the number of times the event triggered during the current page session)</li>
<li><em>resetCounter</em> (function) &#8211; resets the fire sequence counter if the function returns true, this function could also perform hook actions since it is applied at the start of the event</li>
</ul>
<p><span id="more-161"></span></p>
<p>In a typical scenario, you won&#8217;t be using the &#8216;data&#8217; option, but rather the &#8216;callback&#8217; option. You may use it to trigger an AJAX call and updates/inserts your page content.</p>
<h3>Usage</h3>
<pre class="brush: jscript;">
// using default options
$(document).endlessScroll();
// using some custom options
$(document).endlessScroll({
	fireOnce: false,
	fireDelay: false,
	loader: &quot;&lt;div class=&quot;loading&quot;&gt;&lt;div&gt;&quot;,
	callback: function(p){
		alert(&quot;test&quot;);
	}
});
</pre>
<h3>Demo</h3>
<p><a href="http://www.beyondcoding.com/demos/endless-scroll/">Click here for a simple demo.</a></p>
<p><strong><a href="http://plugins.jquery.com/project/endless-scroll">Download / Source Code</a></strong></p>
<h3>Changelog</h3>
<p>v1.4.1 [2010-06-18]</p>
<ul>
<li>Fixed a bug where the callback fires when the inner wrap hasn&#8217;t been created.</li>
</ul>
<p>v1.4 [2010-06-18]</p>
<ul>
<li>Endless Scroll now works with any elements, not just $(document)!</li>
</ul>
<p>v1.3 [2009-04-20]</p>
<ul>
<li>Fixed a bug caused by &#8216;<em>fireDelay</em>&#8216;.</li>
</ul>
<p>v1.2 [2009-01-16]</p>
<ul>
<li>Added &#8216;<em>resetCounter</em>&#8216; option.</li>
</ul>
<p>v1.1 [2009-01-15]</p>
<ul>
<li>Added &#8216;<em>fireDelay</em>&#8216; option.</li>
</ul>
<p>v1.0 [2009-01-15]</p>
<ul>
<li>Initial release.</li>
</ul>

	Tags: <a href="http://www.beyondcoding.com/tag/ajax/" title="AJAX" rel="tag">AJAX</a>, <a href="http://www.beyondcoding.com/tag/endless/" title="endless" rel="tag">endless</a>, <a href="http://www.beyondcoding.com/tag/infinite/" title="infinite" rel="tag">infinite</a>, <a href="http://www.beyondcoding.com/tag/javascript/" title="javascript" rel="tag">javascript</a>, <a href="http://www.beyondcoding.com/tag/jquery/" title="jQuery" rel="tag">jQuery</a>, <a href="http://www.beyondcoding.com/tag/js/" title="js" rel="tag">js</a>, <a href="http://www.beyondcoding.com/tag/plugin/" title="plugin" rel="tag">plugin</a>, <a href="http://www.beyondcoding.com/tag/scroll/" title="scroll" rel="tag">scroll</a>, <a href="http://www.beyondcoding.com/tag/scrolling/" title="scrolling" rel="tag">scrolling</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.beyondcoding.com/2009/04/20/jquery-endless-scroll-updated/" title="jQuery Endless Scroll Updated (April 20, 2009)">jQuery Endless Scroll Updated</a> (0)</li>
	<li><a href="http://www.beyondcoding.com/2009/08/04/release-jquery-plugin-slideshow-lite/" title="Release: [jQuery Plugin] Slideshow Lite (August 4, 2009)">Release: [jQuery Plugin] Slideshow Lite</a> (49)</li>
	<li><a href="http://www.beyondcoding.com/2009/08/29/jquery-slideshow-lite-plugin-updated-major-rewrite/" title="jQuery Slideshow Lite Plugin Updated (Major Rewrite) (August 29, 2009)">jQuery Slideshow Lite Plugin Updated (Major Rewrite)</a> (0)</li>
	<li><a href="http://www.beyondcoding.com/2007/12/15/oh-where-did-my-theme-go/" title="Oh, where did my theme go? (December 15, 2007)">Oh, where did my theme go?</a> (1)</li>
	<li><a href="http://www.beyondcoding.com/2008/11/20/jquery-problems-in-ie-it-could-be-swfobjects/" title="jQuery problems in IE? It could be SWFObjects. (November 20, 2008)">jQuery problems in IE? It could be SWFObjects.</a> (3)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.beyondcoding.com/2009/01/15/release-jquery-plugin-endless-scroll/feed/</wfw:commentRss>
		<slash:comments>36</slash:comments>
		</item>
		<item>
		<title>JW Player &#8211; sendEvent is not a function</title>
		<link>http://www.beyondcoding.com/2008/12/06/jw-player-sendevent-is-not-a-function/</link>
		<comments>http://www.beyondcoding.com/2008/12/06/jw-player-sendevent-is-not-a-function/#comments</comments>
		<pubDate>Fri, 05 Dec 2008 13:34:55 +0000</pubDate>
		<dc:creator>scotti3g</dc:creator>
				<category><![CDATA[Javascript / AJAX]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[JW Player]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://www.beyondcoding.com/?p=131</guid>
		<description><![CDATA[Ok, I&#8217;ve spent a whole friggin day on this problem so hopefully this post will help save some people some time&#8230; We&#8217;ve been working on a video site recently that uses the fantastic JW Player to play the .flv flash files. For some reason, there were some issues with using a tabbed interface we&#8217;d made [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, I&#8217;ve spent a whole friggin day on this problem so hopefully this post will help save some people some time&#8230;</p>
<p>We&#8217;ve been working on a video site recently that uses the fantastic <a href="http://www.jeroenwijering.com/?item=JW_FLV_Player">JW Player to play the .flv flash files</a>. For some reason, there were some issues with using a tabbed interface we&#8217;d made in conjunction with the JW Player.</p>
<p>After changing from a tab with a text page back to the video page, the following error was coming up:</p>
<p><code>Error: $("#player1")[0].sendEvent is not a function</code></p>
<p>The code causing this error was a little routine to load a different video into the player when someone clicks on a different tab:</p>
<pre class="brush: jscript;">$('#player1')[0].sendEvent('LOAD',obj);</pre>
<p>After a whole day of trial and error and putting alerts all over my JS code, I finally worked out what the hell was going on.</p>
<p>Even though my JS code was waiting until the document had been loaded (through jQuery&#8217;s $(document).ready(function() { blah..blah), the JW Player wasn&#8217;t loading in that time. It turns out even though our tabbed pages were powered by simple show/hide CSS, going from the video tab to a non-video tab and back made the JW Player have to load again.</p>
<p>The <strong>sendEvent is not a function</strong> error was simply because the JW Player hadn&#8217;t loaded yet, so the player1 object didn&#8217;t exist yet!</p>
<p>The solution? A simple delay:</p>
<pre class="brush: jscript;">setTimeout(function() { $('#player1')[0].sendEvent('LOAD',obj); }, 200);</pre>
<p>Now this is not a pretty solution at all. Maybe 200 ms is enough time for the player to load on my computer, but what about on another set up? Newer versions of the JW Player automatically call a particular function when it finishes loading (playerReady()), but I wasn&#8217;t able to find a quick and easy way to check the player was loaded.</p>
<p>If anyone knows how to get playerReady() working nicely with jQuery&#8217;s $(document).ready() I&#8217;d love to hear about it. From the comments on the JW Player site, it seems the playerReady() function is a little flakey in any case. But is a setTimeout any better? Hmm&#8230;</p>

	Tags: <a href="http://www.beyondcoding.com/tag/javascript/" title="javascript" rel="tag">javascript</a>, <a href="http://www.beyondcoding.com/tag/jw-player/" title="JW Player" rel="tag">JW Player</a>, <a href="http://www.beyondcoding.com/tag/video/" title="video" rel="tag">video</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.beyondcoding.com/2009/08/04/release-jquery-plugin-slideshow-lite/" title="Release: [jQuery Plugin] Slideshow Lite (August 4, 2009)">Release: [jQuery Plugin] Slideshow Lite</a> (49)</li>
	<li><a href="http://www.beyondcoding.com/2009/01/15/release-jquery-plugin-endless-scroll/" title="Release: [jQuery Plugin] Endless Scroll (January 15, 2009)">Release: [jQuery Plugin] Endless Scroll</a> (36)</li>
	<li><a href="http://www.beyondcoding.com/2009/08/29/jquery-slideshow-lite-plugin-updated-major-rewrite/" title="jQuery Slideshow Lite Plugin Updated (Major Rewrite) (August 29, 2009)">jQuery Slideshow Lite Plugin Updated (Major Rewrite)</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.beyondcoding.com/2008/12/06/jw-player-sendevent-is-not-a-function/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>jQuery problems in IE? It could be SWFObjects.</title>
		<link>http://www.beyondcoding.com/2008/11/20/jquery-problems-in-ie-it-could-be-swfobjects/</link>
		<comments>http://www.beyondcoding.com/2008/11/20/jquery-problems-in-ie-it-could-be-swfobjects/#comments</comments>
		<pubDate>Thu, 20 Nov 2008 06:55:04 +0000</pubDate>
		<dc:creator>scotti3g</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[SWFObject]]></category>

		<guid isPermaLink="false">http://www.beyondcoding.com/?p=119</guid>
		<description><![CDATA[So your jQuery/JavaScript code doesn&#8217;t have any errors, yet your site isn&#8217;t working as expected in Internet Explorer? It could be that you have some SWFObject code interfering with your jQuery code (if for example, you&#8217;re using a Flash video player or something along those lines). The solution is very simple. Simply enclose your SWFObject [...]]]></description>
			<content:encoded><![CDATA[<p>So your jQuery/JavaScript code doesn&#8217;t have any errors, yet your site isn&#8217;t working as expected in Internet Explorer? It could be that you have some SWFObject code interfering with your jQuery code (if for example, you&#8217;re using a Flash video player or something along those lines). The solution is very simple. Simply enclose your SWFObject code in a jQuery $(document).ready() as so:</p>
<pre class="brush: plain;">
&lt;script type=&quot;text/javascript&quot;&gt;
    $(document).ready(function(){
        var so = new SWFObject(&quot;movie.swf&quot;, &quot;mymovie&quot;, &quot;400&quot;, &quot;100%&quot;, &quot;8&quot;, &quot;#336699&quot;);
        so.addParam(&quot;quality&quot;, &quot;low&quot;);
        so.addParam(&quot;wmode&quot;, &quot;transparent&quot;);
        so.addParam(&quot;salign&quot;, &quot;t&quot;);
        so.write(&quot;flashcontent&quot;);
    });
&lt;/script&gt;
</pre>
<p>The only downside to this is that if you have some alternate HTML to show when Flash isn&#8217;t present, this text will be shown until the document is fully loaded and the player(s) start to render (even if the user does in fact have Flash installed).</p>

	Tags: <a href="http://www.beyondcoding.com/tag/ajax/" title="AJAX" rel="tag">AJAX</a>, <a href="http://www.beyondcoding.com/tag/ie/" title="IE" rel="tag">IE</a>, <a href="http://www.beyondcoding.com/tag/jquery/" title="jQuery" rel="tag">jQuery</a>, <a href="http://www.beyondcoding.com/tag/swfobject/" title="SWFObject" rel="tag">SWFObject</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.beyondcoding.com/2009/01/15/release-jquery-plugin-endless-scroll/" title="Release: [jQuery Plugin] Endless Scroll (January 15, 2009)">Release: [jQuery Plugin] Endless Scroll</a> (36)</li>
	<li><a href="http://www.beyondcoding.com/2009/02/26/jquery-slidedown-issues-in-ie-quick-fixes/" title="jQuery.slideDown() issues in IE: quick fixes (February 26, 2009)">jQuery.slideDown() issues in IE: quick fixes</a> (12)</li>
	<li><a href="http://www.beyondcoding.com/2009/08/04/release-jquery-plugin-slideshow-lite/" title="Release: [jQuery Plugin] Slideshow Lite (August 4, 2009)">Release: [jQuery Plugin] Slideshow Lite</a> (49)</li>
	<li><a href="http://www.beyondcoding.com/2007/12/15/oh-where-did-my-theme-go/" title="Oh, where did my theme go? (December 15, 2007)">Oh, where did my theme go?</a> (1)</li>
	<li><a href="http://www.beyondcoding.com/2008/11/11/json_encode-for-php4-and-early-php5/" title="json_encode() for PHP4 and early PHP5 (November 11, 2008)">json_encode() for PHP4 and early PHP5</a> (2)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.beyondcoding.com/2008/11/20/jquery-problems-in-ie-it-could-be-swfobjects/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>json_encode() for PHP4 and early PHP5</title>
		<link>http://www.beyondcoding.com/2008/11/11/json_encode-for-php4-and-early-php5/</link>
		<comments>http://www.beyondcoding.com/2008/11/11/json_encode-for-php4-and-early-php5/#comments</comments>
		<pubDate>Tue, 11 Nov 2008 09:23:41 +0000</pubDate>
		<dc:creator>scotti3g</dc:creator>
				<category><![CDATA[Javascript / AJAX]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[deployment]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[php4]]></category>
		<category><![CDATA[php5]]></category>

		<guid isPermaLink="false">http://www.beyondcoding.com/?p=109</guid>
		<description><![CDATA[Had a beauty today. There I was ready to deploy some nicely polished code to the server. After some thorough local testing it looked like it&#8217;d be a smooth process. So the code went up, but all my funky AJAX stuff stopped working on the server. How could that be? It was perfect locally&#8230; :) [...]]]></description>
			<content:encoded><![CDATA[<p>Had a beauty today. There I was ready to deploy some nicely polished code to the server. After some thorough local testing it looked like it&#8217;d be a smooth process. So the code went up, but all my funky AJAX stuff stopped working on the server. How could that be? It was perfect locally&#8230; :)</p>
<p>It took a little while but in the end I realised what was going on &#8211; <em>json_encode wasn&#8217;t working</em>. The server was running PHP 5.1.6 and <em>json_encode only became &#8220;standard&#8221; with PHP 5.2.0 onward</em>.</p>
<p>I needed a solution fast. No time to recompile a newer version of PHP, add libraries or anything fancy like that. I just needed the function json_encode to work right now. Thankfully, the solution was as easy as adding replacement a function a user kindly submitted from the PHP site itself:</p>
<p><a href="http://au.php.net/manual/en/function.json-encode.php#82904">http://au.php.net/manual/en/function.json-encode.php#82904</a></p>
<p>I blindly assumed PHP 5 was PHP 5. I wasn&#8217;t using any extremely fancy commands or anything, but I still came unstuck. So the moral of today is <em>check your server specification right down to every last decimal point!</em> ;)</p>

	Tags: <a href="http://www.beyondcoding.com/tag/ajax/" title="AJAX" rel="tag">AJAX</a>, <a href="http://www.beyondcoding.com/tag/deployment/" title="deployment" rel="tag">deployment</a>, <a href="http://www.beyondcoding.com/tag/json/" title="json" rel="tag">json</a>, <a href="http://www.beyondcoding.com/tag/php4/" title="php4" rel="tag">php4</a>, <a href="http://www.beyondcoding.com/tag/php5/" title="php5" rel="tag">php5</a>, <a href="http://www.beyondcoding.com/tag/testing/" title="Testing" rel="tag">Testing</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.beyondcoding.com/2009/01/15/release-jquery-plugin-endless-scroll/" title="Release: [jQuery Plugin] Endless Scroll (January 15, 2009)">Release: [jQuery Plugin] Endless Scroll</a> (36)</li>
	<li><a href="http://www.beyondcoding.com/2007/12/15/oh-where-did-my-theme-go/" title="Oh, where did my theme go? (December 15, 2007)">Oh, where did my theme go?</a> (1)</li>
	<li><a href="http://www.beyondcoding.com/2008/11/20/jquery-problems-in-ie-it-could-be-swfobjects/" title="jQuery problems in IE? It could be SWFObjects. (November 20, 2008)">jQuery problems in IE? It could be SWFObjects.</a> (3)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.beyondcoding.com/2008/11/11/json_encode-for-php4-and-early-php5/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
