<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Javascript on Web2Generators</title><link>https://www.web2generators.com/tags/javascript/</link><description>Recent content in Javascript on Web2Generators</description><generator>Hugo</generator><language>en</language><lastBuildDate>Fri, 20 Mar 2009 00:00:00 +0000</lastBuildDate><atom:link href="https://www.web2generators.com/tags/javascript/index.xml" rel="self" type="application/rss+xml"/><item><title>Monster: Javascript 3D Engine</title><link>https://www.web2generators.com/blog/monster-javascript-3d-engine/</link><pubDate>Fri, 20 Mar 2009 00:00:00 +0000</pubDate><guid>https://www.web2generators.com/blog/monster-javascript-3d-engine/</guid><description>&lt;p&gt;&lt;picture&gt;&lt;source type="image/webp" srcset="https://www.web2generators.com/blog/monster-javascript-3d-engine/images/monster-javascript-3d-engine_hu_3d71506fc78f640f.webp 300w" sizes="(max-width: 700px) min(calc(100vw - 32px), 300px), (max-width: 808px) min(calc(100vw - 48px), 300px), 300px"&gt;&lt;img src="https://www.web2generators.com/blog/monster-javascript-3d-engine/images/monster-javascript-3d-engine.png" alt="Javascript 3D Engine Screenshot" title="Javascript 3D Engine Screenshot" width="300" height="225" loading="lazy" decoding="async"&gt;&lt;/picture&gt;&lt;/p&gt;
&lt;p&gt;Chrome Experiments is &amp;ldquo;Not your mother&amp;rsquo;s JavaScript&amp;rdquo; as it was &amp;ldquo;created to showcase cool experiments for both JavaScript and web browsers&amp;rdquo;. And Dean McNamee proves it by providing &lt;a href="http://www.chromeexperiments.com/detail/monster/" class="link-external" target="_blank" rel="nofollow noopener"&gt;Monster&lt;span class="external-link-icon" aria-hidden="true"&gt;&amp;#160;&lt;span class="bi bi-arrow-up-right"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;, &lt;em&gt;&amp;ldquo;a demonstration of what can be done with browser web standards (without Flash). A square turns to a cube, a sphere, and a monster. Realtime procedural 3d in JavaScript&amp;rdquo;&lt;/em&gt;. Not happy to prove that Javascript can be a (fresh) contestant in the 3D world, Dean also provides a simpler, yet beautiful demo named &lt;a href="http://www.chromeexperiments.com/detail/colorscube/" class="link-external" target="_blank" rel="nofollow noopener"&gt;Colorscube&lt;span class="external-link-icon" aria-hidden="true"&gt;&amp;#160;&lt;span class="bi bi-arrow-up-right"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;. A must see for all Javascript graphics coders out there! Thanks to Niko of &lt;a href="http://www.irrlicht3d.org/pivot/entry.php?id=860" class="link-external" target="_blank" rel="nofollow noopener"&gt;Irrlicht3d&lt;span class="external-link-icon" aria-hidden="true"&gt;&amp;#160;&lt;span class="bi bi-arrow-up-right"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt; for the heads up.&lt;/p&gt;</description></item><item><title>Useful JavaScript Tools</title><link>https://www.web2generators.com/blog/useful-javascript-tools/</link><pubDate>Mon, 09 Feb 2009 00:00:00 +0000</pubDate><guid>https://www.web2generators.com/blog/useful-javascript-tools/</guid><description>&lt;p&gt;&lt;picture&gt;&lt;source type="image/webp" srcset="https://www.web2generators.com/blog/useful-javascript-tools/images/jquery_ui_theme_roller_hu_c866b5b3d881cc7a.webp 225w" sizes="(max-width: 700px) min(calc(100vw - 32px), 225px), (max-width: 808px) min(calc(100vw - 48px), 225px), 225px"&gt;&lt;img src="https://www.web2generators.com/blog/useful-javascript-tools/images/jquery_ui_theme_roller.png" alt="JQuery UI Theme Roller" title="JQuery UI Theme Roller" width="225" height="136" loading="lazy" decoding="async"&gt;&lt;/picture&gt;&lt;/p&gt;
&lt;p&gt;Starting a blog post with a number seems to be today&amp;rsquo;s obligation and after posting &lt;a href="http://www.smashingmagazine.com/2008/09/11/75-really-useful-javascript-techniques/" class="link-external" target="_blank" rel="nofollow noopener"&gt;75 (Really) Useful JavaScript Techniques&lt;span class="external-link-icon" aria-hidden="true"&gt;&amp;#160;&lt;span class="bi bi-arrow-up-right"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;, &lt;a href="http://www.smashingmagazine.com/2007/06/20/ajax-javascript-solutions-for-professional-coding/" class="link-external" target="_blank" rel="nofollow noopener"&gt;80+ AJAX-Solutions For Professional Coding&lt;span class="external-link-icon" aria-hidden="true"&gt;&amp;#160;&lt;span class="bi bi-arrow-up-right"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt; or &lt;a href="http://www.smashingmagazine.com/2007/01/19/53-css-techniques-you-couldnt-live-without/" class="link-external" target="_blank" rel="nofollow noopener"&gt;53 CSS-Techniques You Couldn’t Live Without&lt;span class="external-link-icon" aria-hidden="true"&gt;&amp;#160;&lt;span class="bi bi-arrow-up-right"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;, the nonetheless excellent Smashing Magazine does it again by providing a list of &lt;a href="http://www.smashingmagazine.com/2009/02/08/50-extremely-useful-javascript-tools/" class="link-external" target="_blank" rel="nofollow noopener"&gt;50 Useful JavaScript Tools&lt;span class="external-link-icon" aria-hidden="true"&gt;&amp;#160;&lt;span class="bi bi-arrow-up-right"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;. This list includes JavaScript/AJAX Authoring Tools, Documentation Tools, JavaScript Debugging Tools, JavaScript Testing and Validation Tools and Security Tools amongst other, well, useful tools.&lt;/p&gt;</description></item><item><title>The Shortest Way to Detect Internet Explorer in Javascript</title><link>https://www.web2generators.com/blog/the-shortest-way-to-detect-internet-explorer-in-javascript/</link><pubDate>Thu, 29 Jan 2009 00:00:00 +0000</pubDate><guid>https://www.web2generators.com/blog/the-shortest-way-to-detect-internet-explorer-in-javascript/</guid><description>&lt;p&gt;&lt;picture&gt;&lt;source type="image/webp" srcset="https://www.web2generators.com/blog/the-shortest-way-to-detect-internet-explorer-in-javascript/images/shortest_way_to_detect_internet_explorer_hu_51602631ca6c2057.webp 197w" sizes="(max-width: 700px) min(calc(100vw - 32px), 197px), (max-width: 808px) min(calc(100vw - 48px), 197px), 197px"&gt;&lt;img src="https://www.web2generators.com/blog/the-shortest-way-to-detect-internet-explorer-in-javascript/images/shortest_way_to_detect_internet_explorer.png" alt="The Shortest Way to Detect Internet Explorer" title="The Shortest Way to Detect Internet Explorer" width="197" height="42" loading="lazy" decoding="async"&gt;&lt;/picture&gt;&lt;/p&gt;
&lt;p&gt;Through &lt;a href="http://ajaxian.com/archives/ievv" class="link-external" target="_blank" rel="nofollow noopener"&gt;Ajaxian&lt;span class="external-link-icon" aria-hidden="true"&gt;&amp;#160;&lt;span class="bi bi-arrow-up-right"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;, the following 12 characters code seems to be the shortest way to detect any version of Internet Explorer, including IE 8. This is the result that came from a comment in a &lt;a href="http://webreflection.blogspot.com/2009/01/32-bytes-to-know-if-your-browser-is-ie.html" class="link-external" target="_blank" rel="nofollow noopener"&gt;post from the Web Reflection blog&lt;span class="external-link-icon" aria-hidden="true"&gt;&amp;#160;&lt;span class="bi bi-arrow-up-right"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;. Very interesting!&lt;/p&gt;</description></item><item><title>TV and Flash animated cartoons about to be replaced by Javascript animation ?</title><link>https://www.web2generators.com/blog/tv-and-flash-animated-cartoons-about-to-be-replaced-by-javascript-animation/</link><pubDate>Tue, 09 Dec 2008 00:00:00 +0000</pubDate><guid>https://www.web2generators.com/blog/tv-and-flash-animated-cartoons-about-to-be-replaced-by-javascript-animation/</guid><description>&lt;p&gt;&lt;picture&gt;&lt;source type="image/webp" srcset="https://www.web2generators.com/blog/tv-and-flash-animated-cartoons-about-to-be-replaced-by-javascript-animation/images/image-architecture-small_hu_b8f916cec04b3076.webp 300w" sizes="(max-width: 700px) min(calc(100vw - 32px), 300px), (max-width: 808px) min(calc(100vw - 48px), 300px), 300px"&gt;&lt;img src="https://www.web2generators.com/blog/tv-and-flash-animated-cartoons-about-to-be-replaced-by-javascript-animation/images/image-architecture-small.jpg" alt="Robot animation architecture small" width="300" height="153" loading="lazy" decoding="async"&gt;&lt;/picture&gt;&lt;/p&gt;
&lt;p&gt;That&amp;rsquo;s what I thought when I saw Anthony Calzadilla&amp;rsquo;s article &amp;ldquo;&lt;a href="http://css-tricks.com/jquery-robot/" class="link-external" target="_blank" rel="nofollow noopener"&gt;Building an Animated Cartoon Robot with jQuery&lt;span class="external-link-icon" aria-hidden="true"&gt;&amp;#160;&lt;span class="bi bi-arrow-up-right"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&amp;rdquo; article through &lt;a href="http://www.webappers.com/2008/12/09/building-an-animated-cartoon-robot-with-jquery/" class="link-external" target="_blank" rel="nofollow noopener"&gt;WebAppers&lt;span class="external-link-icon" aria-hidden="true"&gt;&amp;#160;&lt;span class="bi bi-arrow-up-right"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;. Just check the &lt;a href="http://robot.anthonycalzadilla.com/" class="link-external" target="_blank" rel="nofollow noopener"&gt;demo&lt;span class="external-link-icon" aria-hidden="true"&gt;&amp;#160;&lt;span class="bi bi-arrow-up-right"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt; to see how nice this is! &lt;em&gt;&amp;ldquo;This project was created by layering several empty divs over each other with transparent PNGs as background images. The backgrounds were animated at different speeds using a jQuery plug-in by Alexander Farkas. This effect simulates a faux 3-D animated background dubbed the “parallax effect” originating from old-school side scrolling video games. The robot is comprised similarly to the background animation scene by layering several DIVs together to create the different robot pieces. The final step, was animating the robot with some jQuery.&amp;rdquo;&lt;/em&gt;&lt;/p&gt;</description></item><item><title>Rails-like ActiveRecord in Aptana Jaxer to come</title><link>https://www.web2generators.com/blog/rails-like-activerecord-in-aptana-jaxer-to-come/</link><pubDate>Mon, 28 Jul 2008 00:00:00 +0000</pubDate><guid>https://www.web2generators.com/blog/rails-like-activerecord-in-aptana-jaxer-to-come/</guid><description>&lt;p&gt;&lt;picture&gt;&lt;source type="image/webp" srcset="https://www.web2generators.com/blog/rails-like-activerecord-in-aptana-jaxer-to-come/images/title_jaxer_hu_49d77002fdd3092e.webp 285w" sizes="(max-width: 700px) min(calc(100vw - 32px), 285px), (max-width: 808px) min(calc(100vw - 48px), 285px), 285px"&gt;&lt;img src="https://www.web2generators.com/blog/rails-like-activerecord-in-aptana-jaxer-to-come/images/title_jaxer.png" alt="title jaxer" width="285" height="32" loading="lazy" decoding="async"&gt;&lt;/picture&gt;&lt;/p&gt;
&lt;p&gt;We can read some interesting things about the future of &lt;a href="http://www.aptana.com/jaxer" class="link-external" target="_blank" rel="nofollow noopener"&gt;Aptana Jaxer&lt;span class="external-link-icon" aria-hidden="true"&gt;&amp;#160;&lt;span class="bi bi-arrow-up-right"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt; in a blog post from Paul Colton (CEO of Aptana) announcing the &lt;a href="http://www.aptana.com/node/414" title="Ajax gurus Greg Murray, Ryan Johnson join Aptana" class="link-external" target="_blank" rel="nofollow noopener"&gt;hiring of Ajax gurus Greg Murray and Ryan Johnson&lt;span class="external-link-icon" aria-hidden="true"&gt;&amp;#160;&lt;span class="bi bi-arrow-up-right"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;. Apart from the fact that the Jaxer 1.0 release candidate will be available in a matter of days, we also learn that Jaxer will support &lt;em&gt;&amp;ldquo;ActiveRecord-like JavaScript ORM for Jaxer that promises to make working with JavaScript data a pleasure&amp;rdquo;&lt;/em&gt;.&lt;/p&gt;</description></item><item><title>Add some DHTML to your OpenLaszlo exports</title><link>https://www.web2generators.com/blog/add-some-dhtml-to-your-openlaszlo-exports/</link><pubDate>Fri, 04 Jul 2008 00:00:00 +0000</pubDate><guid>https://www.web2generators.com/blog/add-some-dhtml-to-your-openlaszlo-exports/</guid><description>&lt;p&gt;&lt;img src="https://www.web2generators.com/blog/add-some-dhtml-to-your-openlaszlo-exports/images/logo_openlaszlo.gif" alt="OpenLaszlo Logo" title="OpenLaszlo Logo" loading="lazy" decoding="async"&gt;&lt;a href="http://ajaxian.com/archives/openlaszlo-41-dhtml-ready-for-primetime/trackback/" class="link-external" target="_blank" rel="nofollow noopener"&gt;Ajaxian&lt;span class="external-link-icon" aria-hidden="true"&gt;&amp;#160;&lt;span class="bi bi-arrow-up-right"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;, &lt;a href="http://www.antunkarlovac.com/blog/?p=79" class="link-external" target="_blank" rel="nofollow noopener"&gt;Antun Karlovac&lt;span class="external-link-icon" aria-hidden="true"&gt;&amp;#160;&lt;span class="bi bi-arrow-up-right"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt; and &lt;a href="http://semanticmemories.net/2008/07/02/openlaszlo-41-has-finally-been-released.xhtml" class="link-external" target="_blank" rel="nofollow noopener"&gt;Raju Bitter&lt;span class="external-link-icon" aria-hidden="true"&gt;&amp;#160;&lt;span class="bi bi-arrow-up-right"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt; report that the 4.1 version of OpenLaszlo has &lt;a href="http://weblog.openlaszlo.org/archives/2008/06/now-available-41-dhtml-recommended-release/trackback/" class="link-external" target="_blank" rel="nofollow noopener"&gt;finally been released&lt;span class="external-link-icon" aria-hidden="true"&gt;&amp;#160;&lt;span class="bi bi-arrow-up-right"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt; and can now generate DHTML in addition to the already existing SWF output format. The project started in &lt;a href="http://weblog.openlaszlo.org/archives/2006/03/openlaszlo-goes-dhtml/" class="link-external" target="_blank" rel="nofollow noopener"&gt;March 2006&lt;span class="external-link-icon" aria-hidden="true"&gt;&amp;#160;&lt;span class="bi bi-arrow-up-right"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt; and took the team behind this free Adobe Flex competitor more than two years of development&amp;hellip; but the wait was worth it !&lt;/p&gt;</description></item><item><title>JSON Diff Released</title><link>https://www.web2generators.com/blog/json-diff-released/</link><pubDate>Tue, 01 Jul 2008 00:00:00 +0000</pubDate><guid>https://www.web2generators.com/blog/json-diff-released/</guid><description>&lt;p&gt;The never ending source of information which is &lt;a href="http://ajaxian.com" class="link-external" target="_blank" rel="nofollow noopener"&gt;Ajaxian&lt;span class="external-link-icon" aria-hidden="true"&gt;&amp;#160;&lt;span class="bi bi-arrow-up-right"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt; is reporting the release of &lt;a href="http://ajaxian.com/archives/json-diff-released" class="link-external" target="_blank" rel="nofollow noopener"&gt;JSON Diff&lt;span class="external-link-icon" aria-hidden="true"&gt;&amp;#160;&lt;span class="bi bi-arrow-up-right"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;, a very handy tool to compare your JSON data. Just look at the following result screen shot to see the visual differences:&lt;/p&gt;
&lt;p&gt;&lt;picture&gt;&lt;source type="image/webp" srcset="https://www.web2generators.com/blog/json-diff-released/images/jsondiff_hu_40cb152a3fc2aee8.webp 320w, https://www.web2generators.com/blog/json-diff-released/images/jsondiff_hu_6b2c70d4c60b087b.webp 469w" sizes="(max-width: 700px) min(calc(100vw - 32px), 469px), (max-width: 808px) min(calc(100vw - 48px), 469px), 469px"&gt;&lt;img src="https://www.web2generators.com/blog/json-diff-released/images/jsondiff.png" alt="JSON Diff" title="JSON Diff" width="469" height="456" loading="lazy" decoding="async"&gt;&lt;/picture&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Changed portions are displayed in yellow. Additions are displayed in green. Deletions are displayed in red.&lt;/p&gt;</description></item><item><title>JavaScript language advanced tips and tricks</title><link>https://www.web2generators.com/blog/javascript-language-advanced-tips-and-tricks/</link><pubDate>Mon, 30 Jun 2008 00:00:00 +0000</pubDate><guid>https://www.web2generators.com/blog/javascript-language-advanced-tips-and-tricks/</guid><description>&lt;p&gt;The guys behind the &lt;a href="http://code.google.com/p/jslibs/" title="Standalone Javascript development environment with general purpose native libraries" class="link-external" target="_blank" rel="nofollow noopener"&gt;jslibs project&lt;span class="external-link-icon" aria-hidden="true"&gt;&amp;#160;&lt;span class="bi bi-arrow-up-right"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt; have created a nice wiki with great &lt;a href="http://code.google.com/p/jslibs/wiki/JavascriptTips" class="link-external" target="_blank" rel="nofollow noopener"&gt;JavaScript tips and tricks&lt;span class="external-link-icon" aria-hidden="true"&gt;&amp;#160;&lt;span class="bi bi-arrow-up-right"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;. Just see for yourself through the following samples. Some of them might not be available to all browsers but are worth a closer look&amp;hellip;&lt;/p&gt;
&lt;p&gt;Check if an object is not empty:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-javascript" data-lang="javascript"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nx"&gt;isNotEmpty&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;obj&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="nx"&gt;tmp&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nx"&gt;obj&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Transform the arguments object into an array:&lt;/p&gt;</description></item><item><title>Code documentation is all there is to happiness</title><link>https://www.web2generators.com/blog/code-documentation-is-all-there-is-to-happiness/</link><pubDate>Mon, 21 Apr 2008 00:00:00 +0000</pubDate><guid>https://www.web2generators.com/blog/code-documentation-is-all-there-is-to-happiness/</guid><description>&lt;p&gt;You might be tempted to think like I did when I coded older web sites: &amp;ldquo;why would I want to spend my time documenting some pretty easy lines of code instead of developing tons of greater and funnier features ? That&amp;rsquo;s pure nonsense and a huge waste of time for a simple web site!&amp;rdquo;&lt;/p&gt;
&lt;p&gt;I couldn&amp;rsquo;t be more wrong as there are a lot of benefits to documenting your code. It doesn&amp;rsquo;t take that long and it might even be fun if you use the right tools.&lt;/p&gt;</description></item></channel></rss>