[eluser]lanzd[/eluser]
I'm trying to use AJAX in my CI application and am running into some issues with my requests being flagged as Cross Server Scripting (CSS).
I have links which without Javascript enabled they will follow through the link and work fine. When I try to intercept the click event I am basing my AJAX request URL off of the href of the link.
After rendering the URL would be something like:
Code:
http://mywebsite.com/page/method
The issue with this is that my requests sometimes return a 500 not found error. Since this is only happening sometimes I believe this is due to being flagged as CSS.
If I omit the base_url() from my href then all of my requests would look like:
Code:
http://mywebsite.com/page/method/destination-page/destination-method
When I am really trying to get to:
Code:
http://mywebsite.com/destination-page/destination-method
I'm sure there is a simple way to by pass this, I'm just not aware of it. Everywhere I looked they seem to use one of either way or sometimes site_url() instead of base_url();
Can someone shed some insight on this?