is_ajax_request does not recognized XMLHttpRequest |
10-04-2018, 02:58 AM
(This post was last modified: 10-04-2018, 06:41 AM by ciadmin. Edit Reason: Edited formatting )
Dear All,
I got issue, below php code is in controller, when i do jquery ajax requests it works but when i make a call with JS Code mentioned below it wont work. if remove (!$this->input->is_ajax_request()) check. below js code work. please anyone can suggest me what i am doing wrong or what i should do to keep (!$this->input->is_ajax_request())check, this check is important. PHP Code: if (!$this->input->is_ajax_request()) { Javascript Code: var ajax = new XMLHttpRequest(); |
Messages In This Thread |
is_ajax_request does not recognized XMLHttpRequest - by tecthon - 10-04-2018, 02:58 AM
RE: is_ajax_request does not recognized XMLHttpRequest - by InsiteFX - 10-04-2018, 10:02 AM
RE: is_ajax_request does not recognized XMLHttpRequest - by dave friend - 10-04-2018, 09:15 PM
RE: is_ajax_request does not recognized XMLHttpRequest - by jreklund - 10-04-2018, 10:38 AM
|