www.myowndb.com - javascript http://www.myowndb.com/taxonomy/term/6/0 en Fault tolerant loading remote javascript with YUI http://www.myowndb.com/node/67 <p>The <a href="http://app.myowndb.com/app/authentication/signup">registration form</a> of the MyOwnDB app was simplified this week, but an information I wanted to keep is the country where registered people are located, notably to know which translation of the UI to provide next (currently, it looks like it will be spanish).</p> <p>I decided to use the Geoplugin.com service, but it appears it's unreachable at this time, making for a less than engaging experience when loading the sign-up page.</p> <p><a href="http://www.myowndb.com/node/67" target="_blank">read more</a></p> http://www.myowndb.com/node/67#comments howto javascript javascript yui Mon, 05 Apr 2010 13:49:59 +0000 rb 67 at http://www.myowndb.com CSV import and API: 2 news features! http://www.myowndb.com/blog/p/45 Two new features have been rolled out, both having to do with getting data in and out of MyOwnDB. We're very excited about this! It is now possible to import data from a CSV file through a very simple procedure: <ol> <li>upload your CSV file</li> <li>link columns in the CSV file to fields in your database table</li> <li>get an overview of the import: number of rows imported and number of rows rejected</li> </ol> Rows can be rejected due to data validation exceptions, for example: <ul> <li>trying to import text in an integer field</li> <li>trying to import an invalid email add<p><a href="http://www.myowndb.com/blog/p/45" target="_blank">read more</a></p> http://www.myowndb.com/blog/p/45#comments code dedomenon feature javascript News webservices Thu, 26 Mar 2009 15:26:22 +0000 rb 42 at http://www.myowndb.com YUI-ext grid and context menus http://www.myowndb.com/blog/p/30 I recently had the opportunity to use YUI-Ext for a little application. I'll focus on the creation of the context menus for the grid. If you're discovering YUI-Ext's layout approach, more information is available from Jack Slockum's blog in <a href="http://www.jackslocum.com/blog/2006/10/19/cross-browser-web-20-layouts-with-yahoo-ui/">Exploring Cross-browser Web 2.0 Layouts with Yahoo!<p><a href="http://www.myowndb.com/blog/p/30" target="_blank">read more</a></p> http://www.myowndb.com/blog/p/30#comments javascript yui-ext Mon, 26 Feb 2007 16:36:33 +0000 rb 29 at http://www.myowndb.com Understanding javascript's prototype member http://www.myowndb.com/blog/p/26 After looking Douglas Crockford's talks about javascript, I started experimenting to really understand javascript's prototype. If you have downloaded the presentation's <a href="http://yuiblog.com/assets/crockford/advancedjavascript.zip">slides</a>, this is an illustration of slide 27. I've worked with the javascript interpreter included in the JDK6, based on <a href="http://www.mozilla.org/rhino/">Rhino</a>. If you do this, just run $JAVA_HOME/bin/jrunscript and you get a prompt of the javascript interpreter. Each javascript function is given a prototype member when it is created.<p><a href="http://www.myowndb.com/blog/p/26" target="_blank">read more</a></p> http://www.myowndb.com/blog/p/26#comments javascript Tue, 06 Feb 2007 20:40:02 +0000 rb 26 at http://www.myowndb.com Enhance your javascript knowledge online! http://www.myowndb.com/blog/p/25 Until now I've been using javascript as a simple language to get Ajax features, but as I used it I discovered interesting features and got really interested to know more. As the JDK 6 has rhino included, you can also use javascript and get access too all Java libraries, which makes javascript knowledge even more interesting. A really great resource to know more about the power of javascript and how to use it effectively is the series of presentations by Douglas Crockford made available online by Yahoo.<p><a href="http://www.myowndb.com/blog/p/25" target="_blank">read more</a></p> http://www.myowndb.com/blog/p/25#comments javascript Sat, 03 Feb 2007 10:04:51 +0000 rb 25 at http://www.myowndb.com Javascript closures illustration http://www.myowndb.com/blog/p/24 <strong><em><a href="http://www.jackslocum.com/yui/">Jack Slocum</a> mentioned in a comment the problem comes from the creation of a global variable. When you create a local variable, you don't get the problematic behaviour. Thanks Jack for taking the time to correct me.</em> </strong> <h2>Intro</h2> Here is the illustration of a bug that was present in version 0.1 of the <a href="http://www.myowndb.com/slideshow/">yui slideshow</a>.<p><a href="http://www.myowndb.com/blog/p/24" target="_blank">read more</a></p> http://www.myowndb.com/blog/p/24#comments code javascript Sat, 30 Sep 2006 17:07:40 +0000 rb 24 at http://www.myowndb.com YUI based slideshow http://www.myowndb.com/blog/p/23 As I wanted to add a slideshow on the <a href="/">MyOwnDB</a> homepage, I started looking for a ready made solution, but as I didn't find exactly what I wanted, but also because I was curious of how it could be done, I started coding one based on <a href="http://developer.yahoo.com/yui/">YUI</a>.<p><a href="http://www.myowndb.com/blog/p/23" target="_blank">read more</a></p> http://www.myowndb.com/blog/p/23#comments ajax code javascript Sat, 30 Sep 2006 13:58:51 +0000 rb 23 at http://www.myowndb.com Remember to reset the YUI listeners on updated content http://www.myowndb.com/blog/p/22 I had event listeners set on elements added dynamically to the page not working: <pre> <div id="c">my original content <a href="#" id="test_link">Click here to replace content</a></div> <script type="text/javascript"> YAHOO.namespace("raphinou"); YAHOO.raphinou.new_content = '<a href="#" id="undo_link">Click here to display original content</a>'; YAHOO.util.Event.addListener("test_link",'click',change_content); YAHOO.util.Event.addListener("undo_link",'click',reverse_content); </script> </pre> When you click on the <em>test_link</em>, the content of the div is <p><a href="http://www.myowndb.com/blog/p/22" target="_blank">read more</a></p> http://www.myowndb.com/blog/p/22#comments ajax code javascript Fri, 01 Sep 2006 21:13:17 +0000 rb 22 at http://www.myowndb.com File uploads to Amazon S3 the AJAX way thanks to Dojo http://www.myowndb.com/blog/p/16 File uploads are finally deployed! You can now specify in MyOwnDB that a detail of your entity is of the type "file". This will let you attach a file to an entry, and subsequently replace or delete it. This required some changes in the application, more specifically in the way the forms are submitted back to the server. For a file upload to work fine, you have to send it with the enctype attribute set to "multipart/form-data". But that's not all! You cannot just serialize the form in javascript like you can do with other input types because you cannot access the file from Javascript.<p><a href="http://www.myowndb.com/blog/p/16" target="_blank">read more</a></p> http://www.myowndb.com/blog/p/16#comments ajax code javascript rails Wed, 19 Jul 2006 18:41:27 +0000 rb 17 at http://www.myowndb.com Use of Yahoo UI's tooltip and overlay http://www.myowndb.com/blog/p/15 Monday has seen a big update of the signup code, with, amongst other changes, the use of the <a href="http://developer.yahoo.com/yui/">Yahoo UI</a> libs. Although prototype is well integrated with rails, Yahoo's extensive documentation and the praise it got from some <a href="http://www.dustindiaz.com/">leading javascript developers</a> got me interested, and I must say I wasn't disappointed. When you <a href="http://sourceforge.net/projects/yui">download</a> the distribution and uncompress it, you get a directory structure.<p><a href="http://www.myowndb.com/blog/p/15" target="_blank">read more</a></p> http://www.myowndb.com/blog/p/15#comments code javascript Wed, 07 Jun 2006 19:16:16 +0000 rb 16 at http://www.myowndb.com