The getData definition is put together on the server. There I know
everything about what I'm sending to the client.
So I trying not to do the same work twice once on the server, once on
the client side.

On Jan 15, 6:57 pm, "Justin Perkins" <[EMAIL PROTECTED]> wrote:
> Instead of redefining the getData function on every request why not
> just make getData return a dynamic object instead of one with
> hardcoded values?
I don't quite see what you mean by dynmaic object. I wanted, with this
construct, to avoid pulling the data out of the DOM piece I just
included: As I know it before hand on the server. It 's like a data
accessor on the html snippset.
>
> What you're probably running into is the function is not getting
> redefined until after the request is completed, so when you call
> getData, you'll always be one step behind.

As I call it after completion with the callback it should be alright.
I'm still perplex!!!

>
> -justin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to