Embed a javascript in the return from the database page that redirects to
the login page  (location.href = login.php, or something like that).  Make
sure that evalScripts is set to true for the Ajax.updater.  I'm fairly new
to prototype dev, but I think something along those lines would work.

On Sat, May 17, 2008 at 3:36 PM, Scott Phillips <[EMAIL PROTECTED]>
wrote:

>
> I am using Ajax.Updater to update a div on my page. The page that
> Ajax.Updater  calls (that does all the database work) needs to somehow
> direct the user to a login page if they aren't already logged in, but
> right now when it redirects them it displays the login page  inside
> the div, as opposed to breaking out of the page. Is there anyway to
> fix this?
>
> Thanks!
> >
>

--~--~---------~--~----~------------~-------~--~----~
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