<?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>We Eat Bricks :: Web Development Blog &#187; Javascript</title>
	<atom:link href="http://weeatbricks.com/category/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://weeatbricks.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sun, 23 May 2010 12:08:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>JQuery Cheat Sheet</title>
		<link>http://weeatbricks.com/2009/10/03/jquery-cheat-sheet/</link>
		<comments>http://weeatbricks.com/2009/10/03/jquery-cheat-sheet/#comments</comments>
		<pubDate>Sat, 03 Oct 2009 15:27:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://weeatbricks.com/?p=116</guid>
		<description><![CDATA[JQuery Cheat Sheet
]]></description>
			<content:encoded><![CDATA[<p><a href="http://woork.blogspot.com/2009/09/jquery-visual-cheat-sheet.html">JQuery Cheat Sheet</a></p>
]]></content:encoded>
			<wfw:commentRss>http://weeatbricks.com/2009/10/03/jquery-cheat-sheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Gears example using Digg API</title>
		<link>http://weeatbricks.com/2007/11/14/googel-gears-example-using-digg-api/</link>
		<comments>http://weeatbricks.com/2007/11/14/googel-gears-example-using-digg-api/#comments</comments>
		<pubDate>Wed, 14 Nov 2007 16:20:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Opensource]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.weeatbricks.com/2007/11/14/googel-gears-example-using-digg-api/</guid>
		<description><![CDATA[Google Gears API is a tool kit which provides JavaScript APIs to allow web application to work off-line.
Three &#8216;core&#8217;  JavaScript APIs are provided:
LocalServer A local cache html, JavaScript and image files. Also provides mapping from on-line URLs to off-line URLs.
Database Google Gears comes with an SQLite database which is accessible via the Database API.
WorkerPool [...]]]></description>
			<content:encoded><![CDATA[<p>Google Gears API is a tool kit which provides JavaScript APIs to allow web application to work off-line.</p>
<p>Three &#8216;core&#8217;  JavaScript APIs are provided:</p>
<p><a href="http://code.google.com/apis/gears/api_localserver.html">LocalServer</a> A local cache html, JavaScript and image files. Also provides mapping from on-line URLs to off-line URLs.</p>
<p><a href="http://code.google.com/apis/gears/api_database.html">Database</a> Google Gears comes with an SQLite database which is accessible via the Database API.</p>
<p><a href="http://code.google.com/apis/gears/api_workerpool.html">WorkerPool</a> I have not used this, but the Google Gears description states, it can  &#8220;Make your web applications more responsive by performing resource-intensive operations asynchronously&#8221;.</p>
<p>I&#8217;ve put together an example which uses the LocalServer and Database JavaScript APIs.</p>
<p>Try out the <a href="http://www.weeatbricks.com/gears/gears_project/index.html" class="external">Google Gears Example using the Digg API</a></p>
<h3>Try out the following steps</h3>
<ul>
<li>You&#8217;ll be asked to install Google Gears first, if you don&#8217;t already have it installed</li>
<li>Fetch some Digg story titles from the drop down list, these story titles are saved into a local database provided by Google gears on you machine.</li>
<li>This is where the magic happens! On the right hand side click capture.</li>
<li>The document is now captured and available for off-line browsing. Go &#8216;off-line&#8217;, so in Firefox click &#8216;File&#8217;, &#8216;Work Offline&#8217;.</li>
<li>View the URL again, and low and behold you will see the same web page even though you are Off-line. You&#8217;ll also notice a list of the titles that you had fetched before you went off-line.</li>
<li>You can Erase the the document from Google Gears with the &#8216;Erase&#8217; button too, and empty the database with &#8216;Empty&#8217; if you wish.</li>
</ul>
<p>And that&#8217;s that! Two out of three of the Google Gears demonstrated. Remember to put your browser back on-line when you&#8217;re done.</p>
<h3>A couple of caveats</h3>
<ul>
<li>Google Gears does not do server side scripting. The functionality that you wish to make available off-line must be implemented via JavaScript.</li>
<li>Adding Google Gears functionality to an existing web application will require additional code in your application. How much code depends on the level of off-line functionality you want to achieve. You will need to insert logic into your app to check  it&#8217;s off-line/on-line state and to tell it what to do if it&#8217;s off-line as well as when it&#8217;s on-line.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://weeatbricks.com/2007/11/14/googel-gears-example-using-digg-api/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Jquery Flash bug: Flash movie disappears on drag in sortable feature from interface plugin</title>
		<link>http://weeatbricks.com/2007/11/07/jquery-flash-bug-flash-movie-disappears-on-drag-in-sortable-feature-from-interface-plugin/</link>
		<comments>http://weeatbricks.com/2007/11/07/jquery-flash-bug-flash-movie-disappears-on-drag-in-sortable-feature-from-interface-plugin/#comments</comments>
		<pubDate>Wed, 07 Nov 2007 13:37:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.weeatbricks.com/2007/11/07/jquery-flash-bug-flash-movie-disappears-on-drag-in-sortable-feature-from-interface-plugin/</guid>
		<description><![CDATA[Please view the ticket I&#8217;ve submitted to jQuery  for the most up-to-date news on this.
The ticket reads as follows:
I have found what I think is a bug with the interface/sortable plugin for jquery.
To explain my scenario. I am using the jquery and the sortable plugin from interface. The sortable items are divs as normal [...]]]></description>
			<content:encoded><![CDATA[<p>Please view the <a href="http://dev.jquery.com/ticket/1897" class="external">ticket </a>I&#8217;ve submitted to jQuery  for the most up-to-date news on this.</p>
<p>The ticket reads as follows:</p>
<p>I have found what I think is a bug with the interface/sortable plugin for jquery.</p>
<p>To explain my scenario. I am using the jquery and the sortable plugin from interface. The sortable items are divs as normal that contain object and embed tags to a flash swf file.</p>
<p>In FF when I drag the divs around the flash movie appears smooth and as you would expect.</p>
<p>However in IE 6 and IE7 when I drag the div around the flash movie will disappear and reappear. It will be replaced by the white rectangle that seems to get stuck and leave a trail and lingers for a split second. When I stop sorting/dragging the div the flash movie reappears..</p>
<p>I&#8217;ve made an example available,  try drag around the Flash game here, <a href="http://weeatbricks.com/test/sortable_flash.html">when </a>in IE .</p>
<p>Any ideas with this one?</p>
<p class="poweredbyperformancing">Powered by <a href="http://scribefire.com/">ScribeFire</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://weeatbricks.com/2007/11/07/jquery-flash-bug-flash-movie-disappears-on-drag-in-sortable-feature-from-interface-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>UPDATED: How to remove object html markup using javascript in IE6 and IE7</title>
		<link>http://weeatbricks.com/2007/10/16/updated-how-to-remove-html-markup-using-javascript-in-ie6-and-ie7/</link>
		<comments>http://weeatbricks.com/2007/10/16/updated-how-to-remove-html-markup-using-javascript-in-ie6-and-ie7/#comments</comments>
		<pubDate>Tue, 16 Oct 2007 15:26:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.weeatbricks.com/2007/10/16/updated-how-to-remove-html-markup-using-javascript-in-ie6-and-ie7/</guid>
		<description><![CDATA[I recently posted on this topic. 
OK forget that.
It will remove the quicktime player, but the audio will stay playing. Only in IE of course.
You&#8217;ll need to use Javascript to stop the quicktime movie.
The best guide I&#8217;ve found to do this.   
]]></description>
			<content:encoded><![CDATA[<p>I recently posted on this <a href="http://www.weeatbricks.com/2007/10/09/how-to-remove-html-markup-using-javascript-in-ie6-and-ie7/">topic. </a></p>
<p>OK forget that.</p>
<p>It will remove the quicktime player, but the audio will stay playing. Only in IE of course.</p>
<p>You&#8217;ll need to use Javascript to stop the quicktime movie.</p>
<p><a href="http://developer.apple.com/documentation/QuickTime/Conceptual/QTScripting_JavaScript/bQTScripting_JavaScri_Document/chapter_1000_section_5.html" class="external">The best guide I&#8217;ve found to do this.   </a></p>
]]></content:encoded>
			<wfw:commentRss>http://weeatbricks.com/2007/10/16/updated-how-to-remove-html-markup-using-javascript-in-ie6-and-ie7/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to remove &lt;object&gt; html markup using javascript in IE6 and IE7</title>
		<link>http://weeatbricks.com/2007/10/09/how-to-remove-html-markup-using-javascript-in-ie6-and-ie7/</link>
		<comments>http://weeatbricks.com/2007/10/09/how-to-remove-html-markup-using-javascript-in-ie6-and-ie7/#comments</comments>
		<pubDate>Tue, 09 Oct 2007 16:36:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.weeatbricks.com/2007/10/09/how-to-remove-html-markup-using-javascript-in-ie6-and-ie7/</guid>
		<description><![CDATA[UPDATED please see this post.   
Let&#8217;s say you have a quicktime movie, and it&#8217;s marked up in your HTML using the &#60;object&#62; tags.
In Firefox you can use the removeNode(id of your quicktime object tag) method to remove quicktime object.  This works fine.
However in IE 6 and IE 7 this will not work. [...]]]></description>
			<content:encoded><![CDATA[<p>UPDATED please see <a href="http://www.weeatbricks.com/2007/10/16/updated-how-to-remove-html-markup-using-javascript-in-ie6-and-ie7/" class="external">this post.   </a></p>
<p>Let&#8217;s say you have a quicktime movie, and it&#8217;s marked up in your HTML using the &lt;object&gt; tags.</p>
<p>In Firefox you can use the removeNode(id of your quicktime object tag) method to remove quicktime object.  This works fine.</p>
<p>However in IE 6 and IE 7 this will not work. Surprise, surprise! The quicktime object/player will stay on the screen even though it does no longer exist in the DOM. You&#8217;ll need to refresh to get ride of it. Not very nice!</p>
<p>To properly remove a quicktime object using IE6 and Ie7 using javascript you&#8217;ll need to do one extra step.</p>
<p>What you&#8217;ll need to do is first set the css display property of the quicktime object to none.</p>
<p>Now you can use the normal removeNode(id of your quicktime object tag) to remove it.</p>
<p>So something like this</p>
<p class="code"> var e = document.getElementById(&#8217;id of your quicktime object&#8217;);<br />
e.style.display = &#8216;none&#8217;;<br />
document.body.removeChild(e);<a href="http://www.weeatbricks.com/2007/10/09/how-to-remove-html-markup-using-javascript-in-ie6-and-ie7/"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://weeatbricks.com/2007/10/09/how-to-remove-html-markup-using-javascript-in-ie6-and-ie7/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
