Welcome Guest, Not a member yet? Register   Sign In
Mootools ajax
#1

[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


Messages In This Thread
Mootools ajax - by El Forum - 02-02-2009, 08:45 AM
Mootools ajax - by El Forum - 02-02-2009, 09:26 AM
Mootools ajax - by El Forum - 02-02-2009, 09:41 AM
Mootools ajax - by El Forum - 02-02-2009, 01:48 PM
Mootools ajax - by El Forum - 02-02-2009, 07:24 PM



Theme © iAndrew 2016 - Forum software by © MyBB