View Single Post
  #13 (permalink)  
Old 03-12-2008, 04:14 PM
notrub225 notrub225 is offline
Senior Member
 
Join Date: Jan 2008
Location: chicago
Posts: 101
Default

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.
Reply With Quote