Try making a header call in your PHP script that explicitly sets an HTTP
error code. For example:
header("HTTP/1.0 403 Forbidden");
Then, when the client sees that, it knows things have failed. I've used
this trick when making sure that people are logged in and haven't been
timed out.
-- Dash --
mikewilson wrote:
> If I give Ajax.Updater a first arg like{ success: 'replies', failure:
> 'errors'}, how do I return an error from a php script so the message
> goes in 'errors' rather than 'replies'?
>
>
> >
>
>
--~--~---------~--~----~------------~-------~--~----~
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 [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-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---