This list is being phased out, you should move your JS questions to the new list here: http://groups.google.com/group/prototype-scriptaculous
To your question, this isn't really a JavaScript related question as it deals with the server responding to different content types. You should look into RESTful style coding practices, wikipedia: http://en.wikipedia.org/wiki/Representational_State_Transfer But basically, in Rails, it is dealing with different content types within a single action, such as: def show respond_to do |wants| wants.html do # HTML response goes here end wants.js do render :update do |page| page.alert "hello from javascript" end end end --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---