Are you using the MVC?
I usually have the AJAX call be an action of the controller that is calling it. So,
ajax.php?id=3&val=10
Seems wrong to me. The call would be something like:
/controller/ajax/id/3/val/10
and then you would treat the page like a normal page in the web app only the call to it would be an ajax call.
|