lilmer 1 Posted March 13, 2014 Share Posted March 13, 2014 I am using a 1.7 codeigniter and I have a problem using GET request. I use GET because I'm doing a cross browsing ajax with dataType JSONP. When doing a direct access to a method with GET paramater it says 404 error. Here's my sample http://www.site.com/class/method?callback=sample&email=example@mail.com 404 ERROR but when doing this http://www.site.com/class/method/?callback=sample&email=example@mail.com WORKING page loaded but no GET request found. I've been debugging the the framework but still can't find why the page is getting 404 when doing the first sample. By the way the CI framework was modify by someone I don't know. By the way the query string is enable already, but I don't understand the Russian language comment on top // При активации этой возможности вызов контроллеров и методов производится через QueryString (www.site.com/index.php?c=controller&m=method) $config['enable_query_strings'] = TRUE; $config['allow_get_array'] = TRUE; Can anyone help me to process a AJAX request using JSONP. Thanks Link to post Share on other sites
mhmazrooei 0 Posted April 14, 2014 Share Posted April 14, 2014 always update to the latest stable version. Whould you post your config.php file ? there may be a problem with your config file for security issues. Link to post Share on other sites
Recommended Posts
Archived
This topic is now archived and is closed to further replies.