NYCPHP Meetup

NYPHP.org

[nycphp-talk] Ajax 101: what to return from a POST

David Mintz vtbludgeon at gmail.com
Thu May 3 15:17:18 EDT 2007


Not sure I follow completely. Are you saying send back 412 and otherwise do
it the way I'm doing it, i.e., iterate through a returned Javascript object
stuffing the errors into the DIVs? Is it "wrong" to send back the whole HTML
form with the error messages?

On 5/3/07, Jon Baer <jonbaer at jonbaer.com> wrote:
>
> Send back a 412 (precondition failed) error and evaluate the <script>
> on return w/ all the errors is the only way I can think of unless you
> went w/ your own scheme of parsing + displaying the response ...


[...]



-- 
David Mintz
http://davidmintz.org/

Just a spoonful of sugar helps the medicine go down
In the most delightful way.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20070503/4eb58111/attachment.html>


More information about the talk mailing list