Welcome Guest, Not a member yet? Register   Sign In
Controller echo response to Ajax request. Wrong?


Is it wrong to have a controller method which has been invoked by an Ajax request respond with a straight echo? Then the success function in the Ajax request shoves this into a user message div somewhere.

A tiny bit of background - am trying to mould Ion Auth's password change facilities into an Ajax context. Although the question is obviously general in nature.

Thanks in advance for any input.

is safer than an echo and the proper way of doing it!

Ahh much more elegant. I should have worked that out for myself.


Theme © iAndrew 2016 - Forum software by © MyBB