Welcome Guest, Not a member yet? Register   Sign In
Return data to Ajax call
#3

[eluser]CroNiX[/eluser]
return only works with php. You need to echo out the json response from the controller. You might try telling your jQuery $.post() that json is the expected format for returned data. Also, what is firebug telling you about what is getting transmitted, where it's getting sent to and what data is being returned?

When you send the data to the alert function in your callback, try using $(data).message instead of just data.


Messages In This Thread
Return data to Ajax call - by El Forum - 02-18-2012, 06:50 AM
Return data to Ajax call - by El Forum - 02-18-2012, 11:01 AM
Return data to Ajax call - by El Forum - 02-18-2012, 11:10 AM
Return data to Ajax call - by El Forum - 02-18-2012, 11:18 AM
Return data to Ajax call - by El Forum - 09-10-2013, 01:26 AM
Return data to Ajax call - by El Forum - 03-27-2014, 09:03 AM



Theme © iAndrew 2016 - Forum software by © MyBB