Ajax From CI Controllers?

I was thinking about writing my own ajax library. I was wondering if it is possible to display ajax data from CI Controllers? For example, if the url you called in the javascript ajax function led to a function within a controller class within a CI installation.


If you mean, can you make an ajax request to a CI controller/method and receive data back...yes.
Its not really any different than any other request to the server...you are just sending a request like /controller/method/p1/... and capturing the response back and doing something with it, like display it or alter the DOM or something.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.