<?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>Es Developed - Fresh Website and Graphic Design &#187; javascript</title> <atom:link href="http://esdev.net/tags/javascript/feed/" rel="self" type="application/rss+xml" /><link>http://esdev.net</link> <description>Weblog</description> <lastBuildDate>Mon, 07 Jun 2010 13:35:21 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>Cheat Sheets For Web Designers</title><link>http://esdev.net/cheat-sheets-for-web-designers/</link> <comments>http://esdev.net/cheat-sheets-for-web-designers/#comments</comments> <pubDate>Mon, 14 Sep 2009 11:03:42 +0000</pubDate> <dc:creator>Shawn</dc:creator> <category><![CDATA[freebies]]></category> <category><![CDATA[web design]]></category> <category><![CDATA[code]]></category> <category><![CDATA[CSS]]></category> <category><![CDATA[HTML]]></category> <category><![CDATA[javascript]]></category> <category><![CDATA[PHP]]></category><guid
isPermaLink="false">http://esdev.net/?p=2459</guid> <description><![CDATA[
Remember the mottoes you learned when you were a kid: &#8220;Winners don&#8217;t do drugs&#8221;, and &#8220;Cheaters never win&#8221;?
Well, a little cheating never hurt anyone… when it comes to using cheat sheets, that is.
TechPosters has a colossal collection of cheat sheets for just about every program, coding language or OS that uses code or keyboard shortcuts.
Since [...]]]></description> <content:encoded><![CDATA[<p><img
class="aligncenter size-full wp-image-2464" title="cheat-sheets-for-web-designers-hd" src="http://esdev.net/wp-content/uploads/2009/09/cheat-sheets-for-web-designers-hd.jpg" alt="cheat-sheets-for-web-designers-hd" width="560" height="130" /></p><p>Remember the mottoes you learned when you were a kid: &#8220;Winners don&#8217;t do drugs&#8221;, and &#8220;Cheaters never win&#8221;?</p><p>Well, a little cheating never hurt anyone… when it comes to using cheat sheets, that is.</p><p><a
href="http://posters.msug.vn.ua">TechPosters has a colossal collection of cheat sheets</a> for just about every program, coding language or OS that uses code or keyboard shortcuts.</p><blockquote><p>Since there&#8217;s such a huge list of cheat sheets, let&#8217;s look at some of the useful cheat sheets for web designers.</p></blockquote><h3>HTML</h3><ul><li><a
href="http://posters.msug.vn.ua/2009/08/24/HTML5QuickReferenceGuide.aspx">HTML 5 Quick Reference Guide</a></li><li><a
href="http://posters.msug.vn.ua/2009/07/07/HTML5CheatSheet.aspx">HTML 5 Cheat Sheet</a></li><li><a
href="http://posters.msug.vn.ua/2009/01/23/XHTMLCheatSheetV103.aspx">XHTML Cheat Sheet v 1.03</a></li><li><a
href="http://posters.msug.vn.ua/2009/03/23/XHTML11HTML401ExtensibleHypertextMarkupLanguage.aspx">XHTML 1.1 and HTML 4.01 Extensible Hypertext Markup Language</a></li><li><a
href="http://posters.msug.vn.ua/2009/01/23/HTMLHelpSheet.aspx">HTML Help Sheet (HTML 4 and XHTML)</a></li><li><a
href="http://posters.msug.vn.ua/2009/03/06/FORMTAGS.aspx">Form Tags</a></li><li><a
href="http://posters.msug.vn.ua/2009/03/05/CharacterEntityReferencesInHTML4AndXHTML10.aspx">Character Entity References in XHTML 1.0 and HTML 4</a></li><li><a
href="http://posters.msug.vn.ua/2009/03/05/HTMLSpecialEntityCodes.aspx">HTML &#8211; Special Entity Codes</a></li><li><a
href="http://posters.msug.vn.ua/2009/01/23/HTMLCommonTags.aspx">HTML Common Tags</a></li></ul><p><span
class="article_caption"><strong>Note</strong>: If you&#8217;re looking for more resources for UTF-8 special entities, check out my earlier post, <a
href="http://esdev.net/most-used-xhtml-character-entities/"><em>Most Used XHTML Character Entities</em></a>.</span></p><p><span
id="more-2459"></span></p><h3>CSS</h3><ul><li><a
href="http://posters.msug.vn.ua/2009/08/24/CCS3QuickReferenceGuide.aspx">CSS3 Quick Reference Guide</a></li><li>Core CSS <a
href="http://posters.msug.vn.ua/2009/03/07/CoreCSSPartI.aspx">Part 1</a> (by Molly E Holzschlag and published by DZone), <a
href="http://posters.msug.vn.ua/2009/03/07/CoreCSSPartII.aspx">Part 2</a>, and <a
href="http://posters.msug.vn.ua/2009/03/07/CoreCSSPartIII.aspx">Part 3</a></li><li><a
href="http://posters.msug.vn.ua/2009/04/01/CSSProperties.aspx">CSS Properties</a></li><li><a
href="http://posters.msug.vn.ua/2009/03/23/CSS2CascadingStyleSheets.aspx">CSS2 Cascading Style Sheets</a></li><li><a
href="http://posters.msug.vn.ua/2009/03/05/CSSShorthandGuide.aspx">CSS Shorthand Guide</a></li><li><a
href="http://posters.msug.vn.ua/2009/01/25/CSSShorthandCheatSheet.aspx">CSS Shorthand Cheat Sheet by Example</a></li><li><a
href="http://posters.msug.vn.ua/2009/03/05/CSSPropertyIndex.aspx">CSS Property Index</a></li><li><a
href="http://posters.msug.vn.ua/2009/03/05/CSSCheatSheetV2.aspx">CSS Cheat Sheet v2</a></li><li><a
href="http://posters.msug.vn.ua/2009/01/25/CSS2QuickReferenceGuide.aspx">CSS2 Quick Reference Guide</a></li><li><a
href="http://posters.msug.vn.ua/2009/01/23/RGBColourCodes.aspx">RGB Colour Codes</a></li></ul><h3>jQuery</h3><ul><li><a
href="http://posters.msug.vn.ua/2009/03/23/jQuerySelectors.aspx">jQuery Selectors (DZone)</a></li><li><a
href="http://posters.msug.vn.ua/2009/03/05/jTouchJQueryCheatSheetForIpods.aspx">jTouch &#8211; jQuery Cheat Sheets For iPods and iPhones</a></li><li><a
href="http://posters.msug.vn.ua/2009/03/05/jQuery12CheatSheet2.aspx">jQuery 1.2 Cheat Sheet 2</a></li><li><a
href="http://posters.msug.vn.ua/2009/03/05/jQuery12.aspx">jQuery 1.2</a></li></ul><p>There are a ton of other cheat sheets for javascript in general, as well as other frameworks like EXT JS, Prototype and an entire category for <a
href="http://posters.msug.vn.ua/CategoryView,category,Mootools.aspx">Mootools</a>.</p><p>These can be found in the general <a
href="http://posters.msug.vn.ua/CategoryView,category,JavaScript.aspx"><em>Javascript Cheat Sheet</em> category</a>.</p><h3><a
href="http://posters.msug.vn.ua/CategoryView,category,PHP.aspx">PHP</a></h3><ul><li><a
href="http://posters.msug.vn.ua/2009/03/07/PHP.aspx">PHP Cheat Sheet (DZone)</a></li><li><a
href="http://posters.msug.vn.ua/2009/03/06/symfonyPHP5FrameworkAdminGeneratorCheatSheet.aspx">Symfony PHP5 Framework &#8211; Admin Generator Cheat Sheet</a></li></ul><h3>Plus Many, Many More</h3><p>There are also tons of other web design cheat sheets for <a
href="http://posters.msug.vn.ua/CategoryView,category,MySQL.aspx">MySQL</a>, <a
href="http://posters.msug.vn.ua/CategoryView,category,ASPNET.aspx">ASP.NET</a>, <a
href="http://posters.msug.vn.ua/CategoryView,category,Flash.aspx">Flash</a>, <a
href="http://posters.msug.vn.ua/CategoryView,category,Silverlight.aspx">Silverlight</a>, <a
href="http://posters.msug.vn.ua/CategoryView,category,XML.aspx">XML</a> and more.</p><p>Another nice thing about the <a
href="http://posters.msug.vn.ua">TechPosters site</a> is that you can subscribe to RSS feeds for each category and know when new cheat sheets are added.</p><h3>Share</h3><p>Do you use any great cheat sheets for web design that are not included here? Where do you get your cheat sheets from?</p><p>Share your thoughts in the comments.</p> ]]></content:encoded> <wfw:commentRss>http://esdev.net/cheat-sheets-for-web-designers/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>View Processed Javascript in Firefox and Chrome &#8211; No Plugins Required</title><link>http://esdev.net/view-processed-javascript-in-firefox-and-chrome-no-plugins-required/</link> <comments>http://esdev.net/view-processed-javascript-in-firefox-and-chrome-no-plugins-required/#comments</comments> <pubDate>Mon, 13 Apr 2009 11:00:25 +0000</pubDate> <dc:creator>Shawn</dc:creator> <category><![CDATA[web design]]></category> <category><![CDATA[browsers]]></category> <category><![CDATA[code]]></category> <category><![CDATA[Firefox]]></category> <category><![CDATA[javascript]]></category><guid
isPermaLink="false">http://esdev.net/?p=1529</guid> <description><![CDATA[
Here are 2 quick tips for Firefox and Google Chrome users that let you view the processed source code generated by a javascript snippet. Neither tip requires any plugins.
Situation
You need to insert a link to a video, form, etc into your site using embed code provided by another website and the embed code is only [...]]]></description> <content:encoded><![CDATA[<p><img
class="aligncenter size-full wp-image-1547" title="view-processed-javascript-firefox-chrome-hd" src="http://esdev.net/wp-content/uploads/2009/04/view-processed-javascript-firefox-chrome-hd.jpg" alt="view-processed-javascript-firefox-chrome-hd" width="560" height="130" /></p><p>Here are 2 quick tips for Firefox and Google Chrome users that let you view the processed source code generated by a javascript snippet. Neither tip requires any plugins.</p><h3>Situation</h3><p>You need to insert a link to a video, form, etc into your site using embed code provided by another website and the embed code is only javascript.</p><h3>Problem</h3><p><img
class="alignright size-full wp-image-1550" title="embed-video-screen" src="http://esdev.net/wp-content/uploads/2009/04/embed-video-screen.jpg" alt="embed-video-screen" width="200" height="300" />While many sites and online services are getting better at providing standards-compliant code to paste into your site, sometimes you have to make adjustments to their code so that your pages validate.</p><p>This is easy to fix if it&#8217;s plain, viewable source code. However, if the code is just javascript that writes the (X)HTML code to the page when run (or the javascript is encrypting the code), you can&#8217;t see what to fix.</p><p>If you add the javascript code to your page, open the page in your browser and <em>View Source</em>, you still only see the javascript as it appears <em>before</em> it&#8217;s processed. That doesn&#8217;t help at all.</p><p><span
id="more-1529"></span></p><h3>Firefox Solution</h3><p>The fastest way to view the code created by the javascript is to use Firefox&#8217;s <em>View Selection Source</em> instead:</p><ol><li>Paste the provided javascript into an XHTML page</li><li>Open the page in Firefox</li><li>Select the portion of the webpage in the general area that contains the javascript with your mouse</li><li>Right-click and choose <em>View Selection Source</em></li></ol><p><img
class="alignright size-full wp-image-1554" title="view-selection-source-screen" src="http://esdev.net/wp-content/uploads/2009/04/view-selection-source-screen.png" alt="view-selection-source-screen" width="200" height="78" />You should now see the source code that the javascript code rendered.</p><p>Then, you can copy and paste the actual code from <em>View Selection Source</em> and make your changes.</p><h3>Google Chrome Solution</h3><p>I haven&#8217;t forgotten about Google Chrome Users. The above solution doesn&#8217;t work for Chrome because it doesn&#8217;t have a <em>View Selection Source</em> option. We have to go about it another way.</p><p>Depending on what the javascript is designed to do and how it goes about that, you may be able to simply save the page as a file on your drive and open it in your editor.</p><p>In my test, the original javascript appeared, but below it was the code the javascript generated. You&#8217;ll probably have to do more digging around in your code, but if you copied your javascript into an otherwise blank webpage, it won&#8217;t a big deal.</p><h3>No Plugins Required</h3><p>The beauty of the above tips is that you don&#8217;t have to have any plugins or extensions installed in your browser to make them work.</p><h3>Other Browsers</h3><p>Safari and Internet Explorer don&#8217;t seem to be able to view processed javascript code without the use of plugins. At least not that I know about.</p> ]]></content:encoded> <wfw:commentRss>http://esdev.net/view-processed-javascript-in-firefox-and-chrome-no-plugins-required/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Built-in jQuery Support in ExpressionEngine 2.0</title><link>http://esdev.net/built-in-jquery-support-in-expressionengine-20/</link> <comments>http://esdev.net/built-in-jquery-support-in-expressionengine-20/#comments</comments> <pubDate>Mon, 19 Jan 2009 12:00:19 +0000</pubDate> <dc:creator>Shawn</dc:creator> <category><![CDATA[web design]]></category> <category><![CDATA[CMS]]></category> <category><![CDATA[code]]></category> <category><![CDATA[ExpressionEngine]]></category> <category><![CDATA[javascript]]></category><guid
isPermaLink="false">http://esdev.net/?p=1011</guid> <description><![CDATA[
The good folks at EllisLab have just reported some good news about the progress of ExpressionEngine 2.0. It seems that ExpressionEngine 2.0 has just achieved feature freeze. This means no new features are likely to be added to EE 2.0 before its final release.
More interesting news is that a new addition that will be included [...]]]></description> <content:encoded><![CDATA[<p><img
class="aligncenter size-medium wp-image-1018" title="ee-jquery-support-hd" src="http://esdev.net/wp-content/uploads/2009/01/ee-jquery-support-hd.png" alt="" width="560" height="130" /></p><p>The <a
title="EllisLab.com" href="http://ellislab.com">good folks at EllisLab</a> have just reported some <a
href="http://expressionengine.com/blog/entry/2.0_progess_update_lockdown/">good news about the progress of ExpressionEngine 2.0</a>. It seems that <a
title="ExpressionEngine.com" href="http://www.expressionengine.com/index.php?affiliate=esdev&amp;page=/overview/">ExpressionEngine</a> 2.0 has just achieved feature freeze. This means no new features are likely to be added to EE 2.0 before its final release.</p><p>More interesting news is that a new addition that will be included in all versions of ExpressionEngine 2.0—built-in <a
href="http://jquery.com/">jQuery</a> support.</p><h3>Built-In jQuery Support</h3><p>These questions get asked a lot: “How do you link to javascript in ExpressionEngine?” and “<a
href="http://esdev.net/javascript-speeding-up-page-loads-in-expressionengine/">What is the best way to link to javascript in ExpressionEngine?</a>”</p><p>Many wonder which way is best to link to external javascript files: link as an EE template file or link as an external, javascript file (.js) outside of a template?</p><p>With this latest news it looks like these questions won&#8217;t be much of an issue anymore (at least for those who use the jQuery library).</p><p>The ExpressionEngine jQuery module will be available in both Core and Licensed versions.</p><p><span
id="more-1011"></span></p><p>Leslie Camacho states in a <a
href="http://expressionengine.com/blog/entry/2.0_progess_update_lockdown/">recent post on the ExpressionEngine blog</a>:</p><blockquote><p>“The jQuery module will allow people to use jQuery and its plugins in their templates without worrying about the location of the jQuery files. This way developers have access to jQuery in a secure way from just about anywhere in EE’s template engine.”</p></blockquote><h3>CodeIgniter and jQuery</h3><p>There was a <a
href="http://expressionengine.com/blog/entry/expressionengine_20_fully_codeignited/">previous post about the new jQuery abilities in EE 2.0</a>. Since ExpressionEngine 2.0 is built on <a
href="http://codeigniter.com/">CodeIgniter</a>, this is going to be great for creating javascript functions.</p><p>Example:</p><pre><code>// Effect: fade a div into view
$this-&gt;javascript-&gt;fade_in("div");

// Event: set up a click to show a submenu
$this-&gt;javascript-&gt;click("#button",
    $this-&gt;javascript-&gt;hide(".submenu");
);

// Plugin: using a jQuery plugin
$this-&gt;jquery-&gt;tablesorter();
</code></pre><p><span
class="code_caption"><cite>Code example from <a
href="http://expressionengine.com/blog/entry/expressionengine_20_fully_codeignited/">ExpressionEngine 2.0: fully CodeIgnited!</a></cite></span></p><p>Personally, I&#8217;m excited to see the new EE, and the news of the addition of the built-in jQuery module just whets my appetite even more. I can&#8217;t wait to see how this is actually implemented.</p><p>Do you use jQuery as your javascript library of choice when working with ExpressionEngine? How do you think the added jQuery support will affect the way you code in ExpressionEngine and CodeIgniter? <a
title="Leave a comment" href="#postacomment">Tell us about it in our comments</a>.</p> ]]></content:encoded> <wfw:commentRss>http://esdev.net/built-in-jquery-support-in-expressionengine-20/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Javascript Templates in EE: Speeding Up Page Loads</title><link>http://esdev.net/javascript-speeding-up-page-loads-in-expressionengine/</link> <comments>http://esdev.net/javascript-speeding-up-page-loads-in-expressionengine/#comments</comments> <pubDate>Fri, 10 Oct 2008 19:40:43 +0000</pubDate> <dc:creator>Shawn</dc:creator> <category><![CDATA[web design]]></category> <category><![CDATA[ExpressionEngine]]></category> <category><![CDATA[javascript]]></category><guid
isPermaLink="false">http://localhost/?p=177</guid> <description><![CDATA[
When serving up dynamic information, you want your pages to load as fast as possible. In ExpressionEngine (EE), not only pages, but also code such as CSS and javascript can be served using templates. But when should you use an EE javascript template? How does the use of a JavaScript template affect page load speed?
The [...]]]></description> <content:encoded><![CDATA[<p><a
href="http://esdev.net/wp-content/uploads/2008/10/ee-js-template-screen02.png"><img
class="alignnone size-medium wp-image-185" title="ExpressionEngine Javascript Template Selection" src="http://esdev.net/wp-content/uploads/2008/10/ee-js-template-screen02.png" alt="Choosing a JavaScript template in ExpressionEngine" width="560" height="130" /></a></p><p>When serving up dynamic information, you want your pages to load as fast as possible. In <a
href="http://expressionengine.com/">ExpressionEngine</a> (EE), not only pages, but also code such as CSS and javascript can be served using templates. But when should you use an EE javascript template? How does the use of a JavaScript template affect page load speed?</p><blockquote><p>The choice whether or not to use javascript templates in EE can potentially have a huge effect on page load time in certain situations.</p></blockquote><h3>Javascript in EE Templates</h3><p>In ExpressionEngine, you have 6 types of templates you can choose from. If you&#8217;re using a template to include javascript code in your pages, you&#8217;ll want to choose either <em>JavaScript</em> or <em>Static</em>.</p><p>If your javascript file is compressed with the whitespace removed (such as the minimized version of jQuery), EE will not process it properly unless you use the <em>Static</em> template type. Otherwise, you can just use the regular <em>JavaScript</em> template type.</p><h3>Javascript as a Regular JS File</h3><p>ExpressionEngine also allows you to just upload an external javascript file to the server and link to it just as you would any other file in HTML, PHP or what have you.</p><p>The downside is that you have to go outside of EE&#8217;s control panel and use FTP to load the file and then use FTP to edit it if need be later on. You won&#8217;t be able to make changes from within EE as you would if you were using a template.</p><h3>Javascript Templates vs Static Files</h3><p>First off, why would you want to use templates to display javascript in EE?</p><p><span
id="more-177"></span></p><p>When putting javascript in a <em>JavaScript</em> template, you can use EE tags to pull in information from elsewhere in EE. This can be pretty handy at times; saving you from retyping extra info, or when information needs to change based on the page the javascript is being loaded. For these situations, using templates are great.</p><p>The catch with javascript in templates is that the code isn&#8217;t being cached. Each time a new page loads, EE treats the javascript template as a dynamic file and downloads it again; looking for EE tags it needs to process. Your browser doesn&#8217;t cache the javascript.</p><p>When dealing with larger javascript files—especially javascript frameworks, this can significantly increase your page load times.</p><p>Just linking from a page template to a regular old javascript file, on the other hand, means your browser can cache the file and then when a visitor goes to another page, wham-o, it&#8217;s already cached.</p><h3>Speed Impact</h3><p>I don&#8217;t have any benchmark tests for this, but from my personal experience, using javascript templates for serving multiple javascripts and/or large chunks of javascript code in EE can noticeably slow the loading of pages when compared to just linking to regular .js files. If you combine this with the time it takes to process the PHP and EE tags and the other templates for pages and pull in weblogs, this all adds up.</p><h3>Recap</h3><p>Using javascript templates in EE makes sense when:</p><ul><li>You need/want to use variables in your javascript</li><li>Dealing with smaller javascript files</li><li>You want to manage/organize/edit your javascript files through EE&#8217;s control panel</li></ul><p>Serving javascript files as just regular old .js files makes sense when:</p><ul><li>You don&#8217;t need EE to parse anything in your javascript code</li><li>You&#8217;re using a javascript framework such as Prototype, jQuery or MooTools</li><li>You&#8217;re using several small javascript files</li><li>Your pages are loading slower than you&#8217;d like</li></ul> ]]></content:encoded> <wfw:commentRss>http://esdev.net/javascript-speeding-up-page-loads-in-expressionengine/feed/</wfw:commentRss> <slash:comments>6</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (user agent is rejected)
Database Caching 150/171 queries in 0.103 seconds using disk

Served from: esdev.net @ 2010-07-30 14:28:17 -->