The reason I turned off the htmlResponse was cuz the try{...} catch(e)
{...} javascript was being displayed where the updated value is
supposed to be.

I got the "Saving . . . . ." to be updated with the box color by
adding $('edit_field').update('[EMAIL PROTECTED]');  For some reason $
('edit_field').value = ..... wasn't working but .update did do the
trick.

So my RJS looks like:

page << "set_box_properties('[EMAIL PROTECTED]','#{ @box.color}', [EMAIL 
PROTECTED],
[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]);$
('edit_field').update('[EMAIL PROTECTED]')"

> render :update do |page|
>   page.replace_html 'edit_field', 'the new value'
> end

Ahh... I think this is what I was looking for..... This goes in the
RJS file right?
Thanks a lot!

> Lastly, with your respond_to block, the format.html call needs to be
> first. You will have issues in IE if you don't do this. Like:

Thanks for that tip!

David :)

--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-spinoffs@googlegroups.com
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