Category: AJAX

  • AJAX.MUD

    Response to my thoughts over MUD with AJAX, and in general number of queries AJAX and MUD from google, made me to change my plans. Now I will finish ASAP my first public RoR project (will be placed here) and I start DiesIrae 2.0 – web based MUD with AJAX. So I want to make…

  • Google Maps scale – cheat sheet

    In my efforts to learn JavaScript I ran on issue of scale Google Maps. Task is: choose right zoom level to put two known points on map. Right zoom – most close, which covers both points. So I’ve wrote simple script which calculates how many lat/lng degrees are for 100 pixels of map. Following table…

  • Data for AJAX req in Rails on the fly – solution

    There is solution with Rails helper to issue from my last post. Simple use :with to pass JavaScript variable name. remote_function (:update => ‘results’, :url => {:action => search_points}, :with => ‘dataForSearch’) gives exactly what is needed: new Ajax.Updater(‘results’, ‘/route/search_points’, {asynchronous:true, evalScripts:true, parameters:dataForSearch});

  • Generating data for AJAX req in Rails on the fly

    UPDATE It is possible – read in next post. Well… I’m starting with AJAX, and my first impressions are very positive. I was skeptical to JS but more I try more I like it. Maybe I don’t like troubles with debugging (like – does know anyone if Venkmann can set breakpoint in JS code embedded…