[jQuery] re: cf ajax example

[jQuery] re: cf ajax example

<style type="text/css">
body {font-family: Arial, Helvetica, sans-serif;}
#databox { border: 1px solid Gray;
margin:30px auto 0px auto;
padding: 10px;
width: 200px;}
#contentdiv { color:red; font-size: 30px; margin-top: 10px;}
</style>Ok found the problem...  <br /><br />You might want to put a disclaimer that this example will not work if you currently are sending <br />ColdFusion Debug to your screen....<br /><br />Thanks<br /><br />Craig<br /><br /><font face="Tahoma, Arial, Sans-Serif" size="2"><hr align="center" width="100%" size="2" />
Return-Path: <sales@arnettslaboutique.com> Wed Dec 12 18:41:55 2007<br />Received: from exprod7mx237.postini.com [64.18.2.238] by mail.arnettslaboutique.com with SMTP;<br />Wed, 12 Dec 2007 18:41:55 -0500<br />Received: from source ([64.233.184.240]) by exprod7mx237.postini.com ([64.18.6.14]) with SMTP;<br />Wed, 12 Dec 2007 18:41:49 EST<br />Received: by wr-out-0708.google.com with SMTP id 75so1480557wra<br />for <sales@arnettslaboutique.com>; Wed, 12 Dec 2007 15:41:48 -0800 (PST)<br />Received: by 10.100.189.10 with SMTP id m10mr321220anf.1197502903888; Wed, 12 <br />Dec 2007 15:41:43 -0800 (PST)<br />MIME-Version: 1.0<br />Message-ID: <a1e835cc-94a7-4c9f-a0ba-548f8466b4a8@d4g2000prg.googlegroups.com><br />Date: Wed, 12 Dec 2007 15:41:43 -0800 (PST)<br />X-IP: 193.18.92.131<br />User-Agent: G2/1.0<br />X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; <br />InfoPath.1; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe)<br />Subject: cf ajax example<br />From: interarnett <sales@arnettslaboutique.com><br />To: "jQuery (English)" <jquery-en@googlegroups.com><br />Content-Type: text/plain; charset=ISO-8859-1<br />Content-Transfer-Encoding: 7bit<br />X-pstn-levels: (S: 4.90091/99.90000 R:95.9108 P:95.9108 M:97.0282 C:98.6951 )<br />X-pstn-settings: 4 (1.5000:1.5000) s gt3 gt2 gt1 r p m c<br />X-pstn-addresses: from <sales@arnettslaboutique.com> [114/5]<br />X-Rcpt-To: <sales@arnettslaboutique.com></font><br /><br />I have created a simple app screen based off of the example/tutorial<br />on jquery website for coldfusion and ajax.<br /><br />I have firebug running and have stepped through the entire process.<br />All processes seem to be working correclty, I fill a value in a<br />formfield and onblur a query is invoked and dataset is returned.<br />(Which i can see in console in firebug...)<br /><br />I am just unable to get the values to display back on my screen in the<br />section defined via style sheet.<br /><br />There is a parameter for success in ajax call.<br />Success never happens it only comes back and says that there is an<br />error but do not know how to trap for error...<br /><br />Any help will be greatly appreciated....<br /><br />here is javascript<br />//
<script type="text/javascript"><br /><![CDATA[/ $(document).ready(function(){
// $("#idm").blur( function() {
// var formval = { idm:$(this) .val()};
// $.ajax({
// type: "POST",
// url: "req_processor_employee.cfm",
// dataType: "json",
// data: formval,
// success: function(response){
// $
('#contentdiv').empty().fadeIn(2000).append(response.rname);
}
});
});
});
// ]]></script><br /><br />sytle sheet<br /><br /><br />form field<br /><br /><td width="45%"><br /><div id="databox"><input name="EMPLID" /><br />id="idm" maxlength="6"><br /><br /><p id="contentdiv"><br /></div><br /></td><br /><br /><br /><br />