Don’t use array as argument for AJAX call with Prototype
Posted on March 31, 2008 - Filed Under AJAX, JavaScript, RubyOnRails | 3 Comments
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] [...]
Popularity: 8% [?]
Read More..>>How to write DSL (with Acts As Tree in background)
Posted on March 26, 2008 - Filed Under howto, Ruby, RubyOnRails | Leave a Comment
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 [...]
Popularity: 14% [?]
Read More..>>NetManiac – reloaded
Posted on March 23, 2008 - Filed Under Other, Personal | Leave a Comment
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 [...]
Popularity: 4% [?]
Read More..>>

