Re: Sortable List, Serializing and Parsing with Ruby

Justin Perkins
Wed, 30 Jan 2008 19:45:12 -0000

On Jan 30, 2008 1:38 PM, OmenKing
<omen.king-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:
>
> That would be the simpler solution but it may not be practical for my
> me.
> I''ll moving this code over to an asp classic system.
> I was just using it in ruby for simple testing and showing purposes.

Since this list is to discuss the Rails-spinoffs, mainly prototype and
scriptaculous, whatever you do on the backend is something to discuss
somewhere else. I try to help people if they''re using the built-in
Rails helpers to generate their JavaScript for them, but generally
server-side talk is best taken to other lists that specialize in the
technology you are using. Especially if we''re talking about old school
ASP ;)

> When should I use JSON over send requests with Ajax?

I''m not sure I understand your question. Are you asking when is it
appropriate to use JSON to send data over Ajax? If so, the answer is
really up to you. Some people use JSON exclusively for Ajax
communication, and other people may use it rarely, if ever. It''s up to
what works best for your environment/style.

Since you mentioned switching to ASP, then maybe most of the questions
you have in this thread are irrelevant since ASP will unescape
parameters for you *and* have the methods in place to extract the
values you are looking for in the Request object, like:
Request("tasks[0]").

-justin