• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

cfajaxproxy

New Here ,
May 26, 2011 May 26, 2011

Copy link to clipboard

Copied

I am getting coldfusion 8 ERROR using cfajaxproxy:

  • "The path to the CFC must be specified as a full path, or as a relative path from the current template, without the use of mappings."
  • "The specified CFC vindexer_server_ver3 could not be found. "
  • at line 2, in template="C:\ColdFusion8\wwwroot\dei-ideas_org\wwwroot\chapter0-2\vindexer_client.cfm"

Any idea on how to fix this error?
Also, in another thread, someone mentioned turning on "extended error information".  How do I turn this on?

FACTS:

  • I do NOT want to add a CFC mapping using coldfusion administrator because I am on a shared coldfusion hosting site (hostek.com).
  • I can NOT change hosts at this time.
  • Tested using firefox 3.6.17 and IE8
  • I use jrun on my  "ColdFusion Server Standard 8,0,1,195765" test server
  • In my test coldfusion server, I have "/dei-ideas_org" mapped to "C:\ColdFusion8\wwwroot\dei-ideas_org\wwwroot"
  • In application.cfc I have the following;
        <!--- application.cfc mappings START --->
        THIS.mappings= {};
        THIS.mappings["/CFC_CustomTags"]= GetDirectoryFromPath( GetCurrentTemplatePath() ) & "inc\CFC_CustomTags";
        THIS.customTagPaths = getDirectoryFromPath(getCurrentTemplatePath()) & "inc\CFC_CustomTags" ;
        THIS.customtagpaths=ListAppend(THIS.customtagpaths, "inc\CFC_CustomTags");
        <!--- application.cfc mappings END --->

  •   

<!--- file: "/chapter0-2/vindexer_client.cfm" --->
<cfajaxproxy cfc="chapter0-2.vindexer_server_ver3" jsclassname="vindexer_proxy_ver3" >
<script>
var myProxy_ver3=  new vindexer_proxy_ver3();
function processClick() {
  var myArgStr_ver3= document.getElementById('form_arg_ver3').value;
  var result= myProxy_ver3.serverfn_ver3( myArgStr_ver3 );
  alert("the result from the server was" + result );
}
</script>
<cfform>
<p>Enter form_arg_ver3:<cfinput type="text" name="form_arg_ver3" id="form_arg_ver3"></p>
<p><cfinput type="button" name="f_btn_ver3" id="f_btn_ver3" onClick="processClick()" value="Get Data From Server"></p>
</cfform>

</body></html>

<!--- file: "/chapter0-2/vindexer_server.cfc" ---><cfcomponent output="no">
<cffunction name="serverfn_ver3" access="remote" returntype="string">
  <cfargument name="arg_ver3" type="string" required="false" default="Error No arg_ver3 Supplied" >         
  <cfset var retStr= "returned_data">
  <cfreturn retStr >
</cffunction>
</cfcomponent>

  • /chapter0-2/vindexer_server.cfc source code:
  • TOPICS
    Advanced techniques

    Views

    452

    Translate

    Translate

    Report

    Report
    Community guidelines
    Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
    community guidelines
    New Here ,
    May 31, 2011 May 31, 2011

    Copy link to clipboard

    Copied

    LATEST

    SOLVED: if Coldfusion 8, and have OnRequest() in application.cfc, this will not work --it is a  known cf8 bug.  For a workaround, see
    http://www.coldfusionjedi.com/index.cfm/2008/3/19/Ask-a-Jedi-Ajaxbound-requests-and-onRequest

    Votes

    Translate

    Translate

    Report

    Report
    Community guidelines
    Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
    community guidelines
    Resources
    Documentation