Welcome Guest, Not a member yet? Register   Sign In
AJAX with Application Folder Above the Webroot
#7

[eluser]Aken[/eluser]
Actually, that's not at all what I do. Not saying that your method is incorrect, though.

I use my actual URLs that can be viewed in the browser, and add logic to check for an ajax request. That way, depending on what type of request it was, either a normal page is output, or my Javascript-specific response is output. I'm big on making sure my sites work without JS, and this way I also don't have to worry about a bunch of <a href="#"> links on my page that go nowhere.

Btw, this is a default CI function:

Code:
$this->input->is_ajax_request()


Messages In This Thread
AJAX with Application Folder Above the Webroot - by El Forum - 01-23-2013, 04:04 PM
AJAX with Application Folder Above the Webroot - by El Forum - 01-23-2013, 07:06 PM
AJAX with Application Folder Above the Webroot - by El Forum - 01-23-2013, 09:07 PM
AJAX with Application Folder Above the Webroot - by El Forum - 01-24-2013, 03:24 AM
AJAX with Application Folder Above the Webroot - by El Forum - 01-24-2013, 12:08 PM
AJAX with Application Folder Above the Webroot - by El Forum - 01-25-2013, 01:06 AM
AJAX with Application Folder Above the Webroot - by El Forum - 01-25-2013, 01:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB