[jQuery] Best way to do AJAX... CF or jQuery?

[jQuery] Best way to do AJAX... CF or jQuery?

<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<title>Best way to do AJAX... CF or jQuery?</title>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="place"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
p
{mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman";}
pre
{margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.EmailStyle18
{mso-style-type:personal;
font-family:Arial;
color:navy;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 77.95pt 1.0in 77.95pt;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>Rick,<o:p></o:p></span></font>
<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><o:p> </o:p></span></font>
<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>You need both.  You use jQuery to send requests to a server side
scripting language like CF (or php, asp, cgi, etc) .<o:p></o:p></span></font>
<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>Perhaps the simplest way to introduce yourself to an “<st1:City
w:st="on"><st1:place w:st="on">ajax</st1:place></st1:City>” activity
would be to use jQuery’s load() function.<o:p></o:p></span></font>
<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><o:p> </o:p></span></font>
<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>Try this:<o:p></o:p></span></font>
<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><o:p> </o:p></span></font>
<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>$("##displaycfoutput").load("mycfpage.cfm?param1=#something#&param2=#somethingelse#");<o:p></o:p></span></font>
<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><o:p> </o:p></span></font>
<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>On your mycfpage.cfm, put a database query using the URL vars your
passed.<o:p></o:p></span></font>
<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><o:p> </o:p></span></font>
<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>Hope that helps.<o:p></o:p></span></font>
<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><o:p> </o:p></span></font>
<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>Michael<o:p></o:p></span></font>
<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><o:p> </o:p></span></font>
<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><o:p> </o:p></span></font>
<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>________________________________________<o:p></o:p></span></font>
<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On
Behalf Of Rick Faircloth<o:p></o:p></span></font>
<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>Sent: Thursday, February 22, 2007 5:22 PM<o:p></o:p></span></font>
<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>To: '<st1:PersonName w:st="on">jQuery Discussion.</st1:PersonName>'<o:p></o:p></span></font>
<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>Subject: [jQuery] Best way to do <st1:City w:st="on"><st1:place w:st="on">AJAX</st1:place></st1:City>...
CF or jQuery?<o:p></o:p></span></font>
<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><o:p> </o:p></span></font>
<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>A question for you CF & jQuery coders…<o:p></o:p></span></font>
<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>What’s the best (easiest) way to work with <st1:City w:st="on"><st1:place
w:st="on">AJAX</st1:place></st1:City>?<o:p></o:p></span></font>
<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>ColdFusion or jQuery?<o:p></o:p></span></font>
<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>Why?<o:p></o:p></span></font>
<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>I would appreciate your insights…I haven’t used <st1:City
w:st="on"><st1:place w:st="on">AJAX</st1:place></st1:City>, yet,<o:p></o:p></span></font>
<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>but I’m really interested in trying to figure it out.  It
would<o:p></o:p></span></font>
<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>be especially useful in some of the web-based apps that I’m<o:p></o:p></span></font>
<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>building that would be used in place of traditional software.<o:p></o:p></span></font>
<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>Being able to avoid page changes and page refreshes would<o:p></o:p></span></font>
<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>go a long way in helping me sell people on the apps.<o:p></o:p></span></font>
<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>Rick<o:p></o:p></span></font>
</div>
</body>
</html>
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/