Month: March 2008
-
Don’t use array as argument for AJAX call with Prototype
I’m using Prototype JavaScript library and today I have learned one thing. To make Your life easier do not use JavaScript Arrays as arguments for AJAX calls. I’m talking about parameters option in Ajax objects (Ajax.Request, Ajax.Updater, etc). Let’s take simple HTML snippet (public/test.html): <div id=”out”></div> <script src=”/javascripts/prototype.js” type=”text/javascript”></script> <script type=”text/javascript”> addr = [] addr[1]…
-
How to write DSL (with Acts As Tree in background)
Acts As Tree is useful plugin providing abstract layer for Your models to form tree structures. I was using it recently to store some document structures in DB. Plugin works as a charm and there is not too much to write about. Just follow README ;) But I needed to create documents somehow, and provide…
-
NetManiac – reloaded
This year have stared for me with permanent lack of time. In January I was finishing Ruby project, which was started over one year ago. And last six weeks I was involved in creation of prototype application (Rails of course) for some Germany startup. It seems that this stage is over and I did not…