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

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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v =
"urn:schemas-microsoft-com:vml" 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:ns0 =
"http://schemas.microsoft.com/office/2004/12/omml"><HEAD><TITLE>Best way to do AJAX... CF or jQuery?</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16414" name=GENERATOR><!--[if !mso]>
<STYLE>v\:* {
BEHAVIOR: url(#default#VML)
}
o\:* {
BEHAVIOR: url(#default#VML)
}
w\:* {
BEHAVIOR: url(#default#VML)
}
.shape {
BEHAVIOR: url(#default#VML)
}
</STYLE>
<![endif]--><o:SmartTagType name="City"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType
name="place"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType
name="PersonName"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><!--[if !mso]>
<STYLE>st1\:* {
BEHAVIOR: url(#default#ieooui)
}
</STYLE>
<![endif]-->
<STYLE>@font-face {
font-family: Tahoma;
}
@font-face {
font-family: Calibri;
}
@font-face {
font-family: Consolas;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 77.95pt 1.0in 77.95pt; }
P.MSONORMAL {
mso-style-unhide: no; mso-style-qformat: yes
}
LI.MSONORMAL {
mso-style-unhide: no; mso-style-qformat: yes
}
DIV.MSONORMAL {
mso-style-unhide: no; mso-style-qformat: yes
}
A:link {
mso-style-priority: 99
}
SPAN.MSOHYPERLINK {
mso-style-priority: 99
}
A:visited {
mso-style-priority: 99
}
SPAN.MSOHYPERLINKFOLLOWED {
mso-style-priority: 99
}
P.MSOPLAINTEXT {
mso-style-priority: 99
}
LI.MSOPLAINTEXT {
mso-style-priority: 99
}
DIV.MSOPLAINTEXT {
mso-style-priority: 99
}
P {
mso-style-priority: 99
}
PRE {
mso-style-priority: 99
}
SPAN.HTMLPREFORMATTEDCHAR {
mso-style-unhide: no; mso-style-priority: 99
}
SPAN.PLAINTEXTCHAR {
mso-style-unhide: no; mso-style-priority: 99
}
SPAN.EMAILSTYLE22 {
mso-style-unhide: no
}
SPAN.EMAILSTYLE23 {
mso-style-unhide: no
}
.MSOCHPDEFAULT {
mso-default-props: yes
}
TABLE.MSONORMALTABLE {
mso-style-qformat: yes; mso-style-priority: 99
}
P.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
COLOR: purple; TEXT-DECORATION: underline
}
P.MsoPlainText {
FONT-SIZE: 10pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Courier New"
}
LI.MsoPlainText {
FONT-SIZE: 10pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Courier New"
}
DIV.MsoPlainText {
FONT-SIZE: 10pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Courier New"
}
P {
FONT-SIZE: 12pt; MARGIN-LEFT: 0in; MARGIN-RIGHT: 0in; FONT-FAMILY: "Times New Roman"; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto
}
PRE {
FONT-SIZE: 10pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Courier New"
}
SPAN.HTMLPreformattedChar {
FONT-FAMILY: Consolas
}
SPAN.PlainTextChar {
FONT-FAMILY: Consolas
}
SPAN.EmailStyle22 {
COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal
}
SPAN.EmailStyle23 {
COLOR: #1f497d; FONT-FAMILY: Arial; mso-style-type: personal
}
SPAN.EmailStyle24 {
COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal-reply
}
DIV.Section1 {
page: Section1
}
</STYLE>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV dir=ltr align=left><SPAN class=510311414-23022007><FONT face=Arial
color=#0000ff size=2>Michael...</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=510311414-23022007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=510311414-23022007><FONT face=Arial
color=#0000ff size=2>You probably shouldn't be using cfdump on your output page.
That includes loads of javascript, extra styles and lots of HTML crap. You'd be
better off using cfoutput or calling your CFC directly.</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> discuss-bounces@jquery.com
[mailto:discuss-bounces@jquery.com] <B>On Behalf Of </B>Michael E.
Carluen<BR><B>Sent:</B> Friday, February 23, 2007 12:51 AM<BR><B>To:</B> 'jQuery
Discussion.'<BR><B>Subject:</B> Re: [jQuery] Best way to do AJAX... CF or
jQuery?<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Rick,<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">So, lets crawl before
we walk here. This should help you understand using load() with CF
basics.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">-----------------------------------<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">On your form
page:<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><script
src="js/jquery.js"
type="text/javascript"></script><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><script
type="text/javascript"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">           
$(function(){<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">                       
$("#realtor").change( function() {<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">                                   
var realtor_id = $(this).val();<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">                                   
$("#mycfpagecontent").load("mycfpage.cfm?realtor=" +
realtor_id);<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">                       
});<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">           
});<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></script><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><select
id="realtor"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">           
<option value="1">Matt</option><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">           
<option value="2">Jacqui</option><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">           
<option value="3">Julie</option><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></select><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><div
id="mycfpagecontent"></div><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">-----------------------------------<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Then on your query
page: mycfpage.cfm<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><cfquery
name="get_realtor_info"
datasource="myrealtordata"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">           
SELECT            fname,
lname<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">           
FROM   realtorsdb<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">           
WHERE            id =
#URL.realtor#<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></cfquery><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><cfdump
var="#get_realtor_info#"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">-----------------------------------<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Once you get this, then
your doing <st1:place w:st="on"><st1:City w:st="on">Ajax</st1:City></st1:place>
on CF.  <o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Then go to <A
href="http://www.365labs.net/cf_jquery/jquery_coldfusion_quickstart.htm">http://www.365labs.net/cf_jquery/jquery_coldfusion_quickstart.htm</A><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">After that, your to Rob
Gonda’s ajaxCFC…. Then you’re all set!<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Hope that
helps!<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Michael<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<DIV
style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: medium none; PADDING-LEFT: 4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: blue 1.5pt solid; PADDING-TOP: 0in; BORDER-BOTTOM: medium none">
<DIV>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT
face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">
<HR tabIndex=-1 align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<P class=MsoNormal><B><FONT face=Tahoma size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT
face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">
discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] <B><SPAN
style="FONT-WEIGHT: bold">On Behalf Of </SPAN></B>Rick Faircloth<BR><B><SPAN
style="FONT-WEIGHT: bold">Sent:</SPAN></B> Thursday, February 22, 2007 7:49
PM<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> '<st1:PersonName
w:st="on">jQuery Discussion.</st1:PersonName>'<BR><B><SPAN
style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [jQuery] Best way to do
<st1:City w:st="on"><st1:place w:st="on">AJAX</st1:place></st1:City>... CF or
jQuery?</SPAN></FONT><o:p></o:p></P></DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#1f497d size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: #1f497d; FONT-FAMILY: Arial">Hmmm… trying to put
this into action, but I’m not straight on how to do
it.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#1f497d size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: #1f497d; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#1f497d size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: #1f497d; FONT-FAMILY: Arial">I figured what you
meant was to create two pages… one page would have<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#1f497d size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: #1f497d; FONT-FAMILY: Arial">the <st1:City
w:st="on"><st1:place w:st="on">ajax</st1:place></st1:City> line you wrote out
and the other would the mycfpage.cfm<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#1f497d size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: #1f497d; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#1f497d size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: #1f497d; FONT-FAMILY: Arial">I have a query on
the mycfpage.cfm…<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#1f497d size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: #1f497d; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#1f497d size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: #1f497d; FONT-FAMILY: Arial"><CFQUERY
Name=”Get_Data” Datasource=”Bodaford”
MaxRows=”1”><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#1f497d size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: #1f497d; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#1f497d size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: #1f497d; FONT-FAMILY: Arial">    
Select Title, Text<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#1f497d size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: #1f497d; FONT-FAMILY: Arial">      
from announcements<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#1f497d size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: #1f497d; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#1f497d size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: #1f497d; FONT-FAMILY: Arial"></CFQUERY><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#1f497d size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: #1f497d; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#1f497d size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: #1f497d; FONT-FAMILY: Arial">…along with the page
HTML, body, head tags, etc… (or should it just have<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#1f497d size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: #1f497d; FONT-FAMILY: Arial">the
query?)<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#1f497d size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: #1f497d; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#1f497d size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: #1f497d; FONT-FAMILY: Arial">Now I’m not sure how
you want me to put the jQuery code on a page that<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#1f497d size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: #1f497d; FONT-FAMILY: Arial">I called
ajax_test.cfm.  Should the line you wrote out go in the body “as
is”<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#1f497d size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: #1f497d; FONT-FAMILY: Arial">or should it be
written out in the head section with the $(document).ready(function() {,
etc<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#1f497d size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: #1f497d; FONT-FAMILY: Arial">around
it?<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#1f497d size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: #1f497d; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#1f497d size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: #1f497d; FONT-FAMILY: Arial">You can tell, I’m
new to both jQuery and <st1:City w:st="on"><st1:place
w:st="on">ajax</st1:place></st1:City>!<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#1f497d size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: #1f497d; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#1f497d size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: #1f497d; FONT-FAMILY: Arial">I appreciate your
help!<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#1f497d size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: #1f497d; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#1f497d size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: #1f497d; FONT-FAMILY: Arial">Rick<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#1f497d size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: #1f497d; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#1f497d size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: #1f497d; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<DIV>
<DIV
style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<P class=MsoNormal style="MARGIN-LEFT: 0.5in"><B><FONT face=Tahoma size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT
face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">
discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] <B><SPAN
style="FONT-WEIGHT: bold">On Behalf Of </SPAN></B>Michael E. Carluen<BR><B><SPAN
style="FONT-WEIGHT: bold">Sent:</SPAN></B> Thursday, February 22, 2007 9:01
PM<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> '<st1:PersonName
w:st="on">jQuery Discussion.</st1:PersonName>'<BR><B><SPAN
style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [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></DIV></DIV>
<P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman"
size=3><SPAN style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoPlainText style="MARGIN-LEFT: 0.5in"><FONT face="Courier New"
size=2><SPAN style="FONT-SIZE: 10pt">Rick,<o:p></o:p></SPAN></FONT></P>
<P class=MsoPlainText style="MARGIN-LEFT: 0.5in"><FONT face="Courier New"
size=2><SPAN style="FONT-SIZE: 10pt"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoPlainText style="MARGIN-LEFT: 0.5in"><FONT face="Courier New"
size=2><SPAN style="FONT-SIZE: 10pt">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>
<P class=MsoPlainText style="MARGIN-LEFT: 0.5in"><FONT face="Courier New"
size=2><SPAN style="FONT-SIZE: 10pt">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>
<P class=MsoPlainText style="MARGIN-LEFT: 0.5in"><FONT face="Courier New"
size=2><SPAN style="FONT-SIZE: 10pt"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoPlainText style="MARGIN-LEFT: 0.5in"><FONT face="Courier New"
size=2><SPAN style="FONT-SIZE: 10pt">Try this:<o:p></o:p></SPAN></FONT></P>
<P class=MsoPlainText style="MARGIN-LEFT: 0.5in"><FONT face="Courier New"
size=2><SPAN style="FONT-SIZE: 10pt"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoPlainText style="MARGIN-LEFT: 0.5in"><FONT face="Courier New"
size=2><SPAN
style="FONT-SIZE: 10pt">$("##displaycfoutput").load("mycfpage.cfm?param1=#something#&param2=#somethingelse#");<o:p></o:p></SPAN></FONT></P>
<P class=MsoPlainText style="MARGIN-LEFT: 0.5in"><FONT face="Courier New"
size=2><SPAN style="FONT-SIZE: 10pt"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoPlainText style="MARGIN-LEFT: 0.5in"><FONT face="Courier New"
size=2><SPAN style="FONT-SIZE: 10pt">On your mycfpage.cfm, put a database query
using the URL vars your passed.<o:p></o:p></SPAN></FONT></P>
<P class=MsoPlainText style="MARGIN-LEFT: 0.5in"><FONT face="Courier New"
size=2><SPAN style="FONT-SIZE: 10pt"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoPlainText style="MARGIN-LEFT: 0.5in"><FONT face="Courier New"
size=2><SPAN style="FONT-SIZE: 10pt">Hope that
helps.<o:p></o:p></SPAN></FONT></P>
<P class=MsoPlainText style="MARGIN-LEFT: 0.5in"><FONT face="Courier New"
size=2><SPAN style="FONT-SIZE: 10pt"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoPlainText style="MARGIN-LEFT: 0.5in"><FONT face="Courier New"
size=2><SPAN style="FONT-SIZE: 10pt">Michael<o:p></o:p></SPAN></FONT></P>
<P class=MsoPlainText style="MARGIN-LEFT: 0.5in"><FONT face="Courier New"
size=2><SPAN style="FONT-SIZE: 10pt"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoPlainText style="MARGIN-LEFT: 0.5in"><FONT face="Courier New"
size=2><SPAN style="FONT-SIZE: 10pt"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoPlainText style="MARGIN-LEFT: 0.5in"><FONT face="Courier New"
size=2><SPAN
style="FONT-SIZE: 10pt"><o:p> </o:p></SPAN></FONT></P></DIV></DIV></BODY></HTML>
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/





























































































































































































































































































































































































































































































    • Topic Participants

    • lists