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] …

Google Maps API as debugger tool

AJAX applications can get hard to debug. Recently developing FriendsFeedMe I got to the point, where I had three AJAX calls called in sequence (by onScuccess callback). More, this could happen in multiple instances in parallel. Well… it was messy, but was just working, so I did not clean up it without need (don’t fix …

Google Maps API setImage or no more events redefinition

Before Google Maps API in version 2.75 changing icon for GMarker was not so easy. Why? Deleting old marker and creating new one is quite straightforward. But deleting marker means delete events associated with this particular marker. And recreating them for new one makes things much more complicated. Especially when events are added during application …

MUD, AJAX and real world

Before I have left for Internet free zone (Easter!) I have found this site http://www.ajaxmud.com/. It is somehow realization of my idea from almost year ago. This MUD sucks ;-) even if subtitle says it does not, but hey! this early development stage. But I don’t think ajaxmud.com will move out of this stage, since …

Calories calculation – fix

Today new Run-N-Share release (version 0.187). I made several fixes, as You can expect. Most important was issue with calories counting – there was a real mess. First there was mixed units in display. But not only for display also for calculations. Part was for metric, and part for US standards. So results were wrong, …