[jQuery] Adding AJAX(?) functionality to existing site... do I make new server files?

[jQuery] Adding AJAX(?) functionality to existing site... do I make new server files?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16441" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=096250523-12062007><FONT face=Arial
size=2>Hello,</FONT></SPAN></DIV>
<DIV><SPAN class=096250523-12062007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=096250523-12062007><FONT face=Arial size=2>What's the standard
method for fitting an existing site with AJAX functionality?</FONT></SPAN></DIV>
<DIV><SPAN class=096250523-12062007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=096250523-12062007><FONT face=Arial size=2>Currently all my
server side files that process requests, like deleting rows from a database
(e.g. customers, products, etc.), automatically redirect the user to another
page with a status message (e.g. success/failure).</FONT></SPAN></DIV>
<DIV><SPAN class=096250523-12062007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=096250523-12062007><FONT face=Arial size=2>But now that I'm
trying to add some AJAX functionality to this existing site I'm not sure how to
handle the server side of it.</FONT></SPAN></DIV>
<DIV><SPAN class=096250523-12062007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=096250523-12062007><FONT face=Arial size=2>1. Is it a better
practice to create totally new AJAX specific server files?</FONT></SPAN></DIV>
<DIV><SPAN class=096250523-12062007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=096250523-12062007><FONT face=Arial size=2>2. Or is it a better
practice to modify the existing files to know that an AJAX request is being made
and that they should (1) not redirect and (2) return the data in a different
format?</FONT></SPAN></DIV>
<DIV><SPAN class=096250523-12062007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=096250523-12062007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=096250523-12062007><FONT face=Arial size=2>I'm opting for #1
but I can see this might also be an issue because of the need to maintain
multiple files.</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV align=left>
<P style="FONT-SIZE: 8pt; FONT-FAMILY: Arial,sans-serif" align=left><SPAN
style="FONT-WEIGHT: bold; FONT-STYLE: italic">Chris Parker</SPAN><BR>Aardvark
Tactical, Inc.<BR>IT Manager<BR><SPAN style="COLOR: rgb(107,116,42)">1002 W
Tenth St. Azusa, CA 91702<BR>phone: 800.997.3773 x131 fax:
626.334.6860<BR>cparker@swatgear.com</SPAN></P><IMG
src="http://www.swatgear.com/sig_logo_rsml.gif"> </DIV>
<DIV> </DIV></BODY></HTML>