Welcome Guest, Not a member yet? Register   Sign In
Missing CI_Output::set_content_type()
#2

[eluser]InsiteFX[/eluser]
For cross domaains you have to use jsonp! json will not work.
Code:
// If you want to use $.getJSON() you can add the following before the call:
$.ajaxSetup({ scriptCharset: "utf-8" , contentType: "application/json; charset=utf-8"});

contentType : When sending data to the server, use this content-type. Default is "application/x-www-form-urlencoded", which is fine for most cases.

scriptCharset : Only for requests with 'jsonp' or 'script' dataType and GET type. Forces the request to be interpreted as a certain charset. Only needed for charset differences between the remote and local content.

You may need one or both ...

Also the first char of your Controller name is lowercase it should be uppercase!

InsiteFX


Messages In This Thread
Missing CI_Output::set_content_type() - by El Forum - 03-21-2011, 12:07 PM
Missing CI_Output::set_content_type() - by El Forum - 03-21-2011, 04:36 PM
Missing CI_Output::set_content_type() - by El Forum - 03-21-2011, 05:30 PM
Missing CI_Output::set_content_type() - by El Forum - 03-21-2011, 10:55 PM
Missing CI_Output::set_content_type() - by El Forum - 03-22-2011, 02:10 AM
Missing CI_Output::set_content_type() - by El Forum - 03-22-2011, 11:56 AM
Missing CI_Output::set_content_type() - by El Forum - 03-22-2011, 07:25 PM
Missing CI_Output::set_content_type() - by El Forum - 03-23-2011, 05:23 AM
Missing CI_Output::set_content_type() - by El Forum - 03-24-2011, 06:01 PM
Missing CI_Output::set_content_type() - by El Forum - 03-24-2011, 06:20 PM



Theme © iAndrew 2016 - Forum software by © MyBB