www.myowndb.com - ajax http://www.myowndb.com/fr/taxonomy/term/1/0 fr YUI based slideshow http://www.myowndb.com/fr/node/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/fr/node/23" target="_blank">read more</a></p> http://www.myowndb.com/fr/node/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/fr/node/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/fr/node/22" target="_blank">read more</a></p> http://www.myowndb.com/fr/node/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/fr/node/17 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/fr/node/17" target="_blank">read more</a></p> http://www.myowndb.com/fr/node/17#comments ajax code javascript rails Wed, 19 Jul 2006 18:41:27 +0000 rb 17 at http://www.myowndb.com