Render a whole HTML page after an Ajax request: possible?

Hi there,

Suppose: ‘action A’ was launched by an Ajax request

Question: Is it possible to

  • somehow render a whole HTML page (not only return a part of the page),
    or
  • redirect (within ‘action A’) to an ‘action B’ (which then could render
    a whole HTML page)

Thanks a lot!
Tom

Question: Is it possible to

  • somehow render a whole HTML page (not only return a part of the page),

render :update do |page|
page.redirect_to :action => ‘name’
end

Sijo

On Fri, Jul 10, 2009 at 12:36 PM, Tom Ha
[email protected] wrote:

Thanks a lot!
Tom

You can return an entire HTML page via ajax (Just the contents of the

tags) and just replace that.

If you’re going to redirect, don’t bother with the Ajax

Andrew T.
http://ramblingsonrails.com

http://MyMvelope.com - The SIMPLE way to manage your savings

And I’d been starting to think I had to call McGyver…

Great! Thanks, Sijo!

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs