[Dojo-interest] dojo and rails
Roberto Saccon
rsaccon at gmail.com
Fri Apr 28 18:33:17 MDT 2006
I just tried dojo.io.FormBind, and that seems to work well, as replacement
for the prototype.js based rails remote-forms.
On 4/27/06, Yi Tan <yi.tan.uk at gmail.com> wrote:
>
> 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
> (/(["'])\s*:\s*(['"0-9tfn\[{])/){"#{$1}=>#{$2}"})
>
> And there are a few better and safer parsers on the Internet, for more
> information, please check following sites.
> http://rubyforge.org/snippet/detail.php?type=snippet&id=29
> http://json.rubyforge.org/
> http://www.json.org/
>
> When you know better dojo and RoR solution, please let me know.
>
> Regards,
>
> Yi
>
> 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 ?
>
> regards
> --
> Roberto Saccon
>
> _______________________________________________
> Dojo FAQ: http://dojo.jot.com/FAQ
> Dojo-interest at dojotoolkit.org<http://dojo.jot.com/FAQDojo-interest@dojotoolkit.org>
> http://dojotoolkit.org/mailman/listinfo/dojo-interest
>
>
>
>
>
> --
> Regards,
>
> Yi
>
> _______________________________________________
> Dojo FAQ: http://dojo.jot.com/FAQ
> Dojo-interest at dojotoolkit.org
> http://dojotoolkit.org/mailman/listinfo/dojo-interest
>
>
>
--
Roberto Saccon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://dojotoolkit.org/pipermail/dojo-interest/attachments/20060428/85ae78a1/attachment.html
More information about the Dojo-interest
mailing list