[Dojo-interest] dojo and rails
yi.tan.uk at gmail.com
Thu Apr 27 07:41:31 MDT 2006
Hey, we are facing the same problem. I'm very new to both dojo and RoR. I
haven't got a clue how to completely replace prototype by dojo. And in my
current application. I got a JSON parser in ruby to deal with all rpc calls.
The simplest ruby JSON parser could be
null=nil; jsonobj = eval(json.gsub
And there are a few better and safer parsers on the Internet, for more
information, please check following sites.
When you know better dojo and RoR solution, please let me know.
On 4/27/06, Roberto Saccon <rsaccon at gmail.com> wrote:
> Hi all
> my first post here. I am trying to put dojo into a rails project. Google
> was not very helpful to point me to tutorial and howtos. What I did so far
> is to get rid of scriptaculous, most of th effects can easily be done in
> dojo, and I am very pleased with the results so far.
> But what gives me headache is dojo.io.bind. I would like it it use for
> AJAX calls to my rails app, so I can get rid of prototype and make the my
> webpages a few KBs lighter. Just replacing the forum submission calls did
> not work, I guess dojo serializes different. Has anybody experiences, hints
> recommendations or whatever on how to do it ? Would it make sense to
> serialize a form into a JSON object (rails can handle JSON) ? If yes, how
> can I serialize the form into a JSON string, does there exist already some
> ready-to-use function for that or do I need to build it by myself ?
> Roberto Saccon
> Dojo FAQ: http://dojo.jot.com/FAQ
> Dojo-interest at dojotoolkit.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Dojo-interest