<?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>CodeDread Blog &#187; jquery</title>
	<atom:link href="http://www.codedread.com/blog/archives/tag/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codedread.com/blog</link>
	<description></description>
	<lastBuildDate>Mon, 02 Jan 2012 15:30:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Embed an SVG Editor in Your Web Page</title>
		<link>http://www.codedread.com/blog/archives/2009/06/19/embed-an-svg-editor-on-your-web-page/</link>
		<comments>http://www.codedread.com/blog/archives/2009/06/19/embed-an-svg-editor-on-your-web-page/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 17:23:12 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[SVG]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[editor]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[svg-edit]]></category>

		<guid isPermaLink="false">http://blog.codedread.com/archives/2009/06/19/embed-an-svg-editor-on-your-web-page/</guid>
		<description><![CDATA[In my spare time I&#8217;ve been having fun contributing to the SVG-edit project this last couple weeks adding really basic features like selection and dragging. The goal is a cross-browser SVG editor that you can embed in web pages that works on any modern browser. My biased definition of a modern browser: native support of [...]]]></description>
			<content:encoded><![CDATA[<p><object type="image/svg+xml" width="100" height="100" style="float:right" data="http://codedread.com/clipart/svg.svgz"><span/></object>In my spare time I&#8217;ve been having fun contributing to the <a href="http://svg-edit.googlecode.com/">SVG-edit project</a> this last couple weeks adding really basic features like selection and dragging.  The goal is a cross-browser <a href="http://www.w3.org/Graphics/SVG" title="Scalable Vector Graphics">SVG</a> editor that you can embed in web pages that works on any modern browser.  My biased definition of a modern browser: native support of SVG.  I know there are quite a lot of projects out there that do an online SVG editor already.  <a href="http://svg-edit.googlecode.com/">SVG-edit</a> is still in its infancy, but that&#8217;s part of the charm I found in hacking on it.<span id="more-538"></span></p>
<p>One of the nice things about hosting it on <a href="http://googlecode.com/" title="Google Project Hosting">Google Code</a> is that you can rig the Subversion repositories to serve the proper MIME types of the files in question.  This means we can have Google Code host the editor and just iframe it into our pages.</p>
<p>For instance, using:</p>
<p><code>&#60;iframe src="http://svg-edit.googlecode.com/svn/tags/stable/editor/svg-editor.html" width="750" height="600"/&#62;</code></p>
<p>here is the latest stable version of the svg-editor sitting in my blog:</p>
<p><iframe src="http://svg-edit.googlecode.com/svn/tags/stable/editor/svg-editor.html" width="750" height="600"/></p>
<p>You can view source, I ain&#8217;t lying.  The nice thing about this link is, when I wrote this blog entry, the above iframe included SVG-edit 2.1, but when 2.2 is released my web page will automatically include it.  This keeps you on the latest release but does not expose you to the potentially unstable <a href="http://svg-edit.googlecode.com/svn/trunk/editor/svg-editor.html">trunk</a>.</p>
<p>If you prefer to host it yourself, <a href="http://code.google.com/p/svg-edit/downloads/list">download svg-edit</a> or <a href="http://code.google.com/p/svg-edit/source/checkout">check out the source code</a>.  Eventually we&#8217;ll host this on <a href="http://www.planetsvg.com/" title="PlanetSVG - Developer resources for SVG">PlanetSVG</a> as well &#8211; that&#8217;s the proper place for it in my opinion.</p>
<p>And there&#8217;s ongoing work by <a href="http://www.hokstad.com/blog">Vidar</a> to turn this into a <a href="http://wave.google.com/">Google Wave Gadget</a> for collaborative sketching, which would be awesome.</p>
<p><object type="image/svg+xml" width="100" height="100" style="float:right" data="http://codedread.com/clipart/facepalm.svgz"><span/></object>Anyway, if anyone wants to get this working on a <a href="http://www.microsoft.com/windows/">legacy operating system</a> with a <a href="http://www.microsoft.com/IE">legacy browser</a> and a <a href="http://www.adobe.com/svg/viewer/install/">legacy plugin</a> your patches would be really appreciated (<a href="http://examotion.com/">modern</a> <a href="http://gpac.sourceforge.net/home_news.php">plugins</a> or <a href="http://sgweb.googlecode.com/">shims</a> would also be good).  Note that it programmatically creates the SVG element inside the HTML and uses <a href="http://jquery.com/">jQuery</a> so this might be a challenge.  I&#8217;d still like to see it happen though! <img src='http://www.codedread.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>You can <a href="http://groups.google.com/group/svg-edit">discuss SVG-edit here</a> and <a href="http://code.google.com/p/svg-edit/issues/list">report issues here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codedread.com/blog/archives/2009/06/19/embed-an-svg-editor-on-your-web-page/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>Smile Zen Garden?</title>
		<link>http://www.codedread.com/blog/archives/2008/05/19/smile-zen-garden/</link>
		<comments>http://www.codedread.com/blog/archives/2008/05/19/smile-zen-garden/#comments</comments>
		<pubDate>Tue, 20 May 2008 02:49:48 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[SVG]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[fakesmile]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[flickr]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[smil]]></category>

		<guid isPermaLink="false">http://blog.codedread.com/archives/2008/05/19/smile-zen-garden/</guid>
		<description><![CDATA[I&#8217;ve been watching David&#8217;s FakeSmile script evolve over the course of the last few months. At the same time, I have been reading up on SMIL Timesheets, a recent specification drafted by the SYMM Working Group. With recent support of timesheets in FakeSmile, I thought it would be a good chance to experiment. Flickr Badges [...]]]></description>
			<content:encoded><![CDATA[<p><object type="image/svg+xml" width="100" height="100" align="right" hspace="10" data="http://codedread.com/clipart/smile.svgz"><span/></object>I&#8217;ve been watching David&#8217;s <a href="http://leunen.d.free.fr/fakesmile/" title="Animate Graphics and Text in Web Pages">FakeSmile</a> script evolve over the course of the last few months.  At the same time, I have been reading up on <a href="http://www.w3.org/TR/timesheets/" title="SMIL Timesheets">SMIL Timesheets</a>, a recent specification drafted by the <a href="http://www.w3.org/AudioVideo/">SYMM Working Group</a>.  With recent support of timesheets in FakeSmile, I thought it would be a good chance to experiment.  <span id="more-462"></span></p>
<h3 id="flickr-badges">Flickr Badges</h3>
<p><a href="http://www.flickr.com/">Flickr</a> is a pretty popular site for sharing photos with friends, family and the world.  Flickr even lets you embed &#8216;badges&#8217; of your recent or popular photos into your own web page using HTML or Flash.  Of course the Flash badge has some animation effects that are not easily achievable in HTML.  I thought I&#8217;d use FakeSmile + SVG to create my own badge.  I started with some backend code that <a href="http://www.latenightpc.com/blog/" title="Rob Russell's blog">Rob</a> has had kicking around in his repository for almost two years.</p>
<p><object align="right" type="image/svg+xml" width="75" height="150" hspace="20" data="http://www.codedread.com/flickr/badge.php"><span/></object>You can see the results to the right and also on my <a href="http://www.codedread.com/about.php" title="Jeff Schiller">personal info</a> page.  The badge has been tested in <a href="http://www.mozilla.com/firefox" title="Firefox web browser">Firefox</a>, <a href="http://www.opera.com/" title="Opera Web Browser">Opera</a> or <a href="http://www.apple.com/safari" title="Safari Web Browser for MacOSX and Windows">Safari</a>.  There seems to be some trouble with the <a href="http://www.examotion.com/index.php?id=product_player_download" title="SVG Plugin for Internet Explorer">Renesis 1.1 plugin</a> for Internet Explorer, so please stay tuned there.  The badge can be seen full-browser <a href="http://www.codedread.com/flickr/badge.php">here</a> (sorry for the low-quality rasters, I&#8217;m only grabbing 75&#215;75 pixel thumbnails from Flickr at the moment).</p>
<p>The images are cached from Flickr using a bit of <a href="http://php.net/">PHP</a> and the Flickr feed is checked every hour for new photos.  If you want to see the source of the PHP, please <a href="http://www.codedread.com/flickr/badge.php?view_source=1">click here</a>.</p>
<h3 id="smil-timesheets">SMIL Timesheets</h3>
<p><a href="http://my.opera.com/MacDev_ed/blog/2008/05/18/timetravel" title="Erik Dahlström's Opera blog">Others</a> have started experimenting with FakeSmile, too.  Usually the people that I talk to that have used <abbr title="Synchronized Multimedia Integration Language">SMIL</abbr> are pretty delighted with the technology.  It&#8217;s a shame that it&#8217;s not well-supported across modern browsers yet &#8211; perhaps it has something to do with the <a href="http://lists.w3.org/Archives/Public/www-smil/2008AprJun/">slow public response rate</a> of the SYMM Working Group? <img src='http://www.codedread.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>However, while Opera (and now <a href="http://webkit.org/">WebKit</a>) have started to support SMIL within <a href="http://www.w3.org/Graphics/SVG" title="Scalable Vector Graphics">SVG</a>, there are no browsers that support SMIL Timesheets yet.  So FakeSmile will have to do for now (<a href="http://www.tml.tkk.fi/~pv/timesheets/instructions.xhtml">here&#8217;s</a> another alternative that I have not experimented with).</p>
<p>You can think of SMIL Timesheets as the counterpart to <a href="http://www.w3.org/Style/CSS/" title="Cascading StyleSheets">CSS</a> for web pages.  If <a href="http://www.csszengarden.com/" title="CSS Zen Garden">stylesheets</a> are like the <em>set decoration</em> of your web page, then timesheets are like the <em>choreography</em>.  What&#8217;s really nice about this is that you can have a nice, concise bit of markup representing your content (the images, in this case) and then you can externally link to a separate timesheet to animate the web page.  You can use CSS selectors to apply animations to any of your web elements and use the same timesheet across multiple pages.  You can see my SMIL Timesheet <a href="http://www.codedread.com/flickr/flash.smil.txt">here</a>.</p>
<p>If anyone wants to send me a SMIL timesheet with other cool effects, please feel free (look for my email address <a href="http://www.codedread.com/about.php">here</a>).  Perhaps I&#8217;ll eventually have my PHP pick a random effect one day.</p>
<h3 id="fakesmile">FakeSmile</h3>
<p>The <a href="http://leunen.d.free.fr/fakesmile/">FakeSmile</a> script has come a long way since David released it a few months ago.  It implements a decent amount of SMIL and SMIL Timesheets so that you can actually use these technologies now while the browser vendors catch up.  David has also recently included a full version of <a href="http://jquery.com/">jQuery</a> inside the FakeSmile script, so it&#8217;s beefed up with lots of power now.  I think he will probably be releasing minimized/compressed versions eventually.</p>
<p><i>[Update:  I should also acknowledge <a href="http://www.alleged.org.uk/pdc/2006/01/01.html">Damian Cugley</a> for being the original inspiration behind Rob starting his project]</i></p>
]]></content:encoded>
			<wfw:commentRss>http://www.codedread.com/blog/archives/2008/05/19/smile-zen-garden/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

