Welcome Guest, Not a member yet? Register   Sign In
How to get value from controller with jquery
#3

Oh! I did not know that (set_content_type).

Is that important?

When I ajax with a json response in the controller I just json_encode the array and echo it. It has all worked fine up till now.

Should I be setting the content type as well?

Paul.

PS the gaps in my knowledge continue to amaze me :-)
Reply


Messages In This Thread
RE: How to get value from controller with jquery - by PaulD - 06-27-2017, 11:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB