On Feb 24, 10:49 pm, Me <[email protected]> wrote:
> I am baffled because in the view I do this:
>
> $('shelfcards').update(<%= render :partial => 'turin2000' %>);
>
> Gives me nothing in the div.
>
Think about what actually ends up in the page:
$('shelfcards').update(<fieldset>....</fieldset>)
Clearly that isn't legal javascript because you've just dumped in a
chunk of html, whereas you need a string containing html
$('shelfcards').update('<%= render :partial => 'turin2000' %>');
would be a start, but would also be invalid if what you rendered
contained a '
Fred
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" 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-talk?hl=en
-~----------~----~----~----~------~----~------~--~---