[eluser]elmystica[/eluser]
I'm transforming a classic php/mysql-app to CI
It works out good, so far.
Now I want to make some AJAX-calls from the front-end to the dbase.
The old way:
- A javascript event-handler triggers a JS confirm_delete(id) function.
- If confirmed, it calls a JS do_delete(id) function.
- That function makes (thanks to the Mootools framework) an ajax call to a php-file called do_functions.php.
- The php-file returns a value which to the do_delete() functions' callback reciever.
- the callback function then executes whatever has to happen or display ..
How do apply this into CI?
The javascript would be the "easy" part, but how do you make the call to the php-file? Where should that file be? A controller?
Thanks in advance