I am attempting to use the ajaxCFC and trying this out, I am getting the
error: Invalid Reply from Server. Any ideas to look at first?
I have the paths as:
 
root:   
----- query.cfc
----- ajax.cfc
----- index.cfm (this calls the functions and has the return call also)
----- /js  (this contains all the js files)
 
 
BTW:  ajaxCFC is easier to use than CFAJAX (IMHO). Atleast it has some
debugging steps.
 
<script type='text/javascript'>_ajaxConfig =
{'_cfscriptLocation':'query.cfc', '_jsscriptFolder':'/js'};</script>
<script type='text/javascript' src='/js/ajax.js'></script>
 
<script type="text/javascript">
 function doQuery(id) {
  alert("Value = " + id);
  // send data to CF
  DWRUtil.useLoadingMessage();
  DWREngine._execute(_ajaxConfig._cfscriptLocation, null, 'doQuery', id,
doQueryResults);
 }
 
 // call back function
 function doQueryResults (r) {
  document.forms[0].txt2Row1.value = r.manf[0];
  document.forms[0].txt3Row1.value = r.model_num[0];
  document.forms[0].txt4Row1.value = r.serial_num[0];
 
 }
 
 </script>



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244195
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to