This is straight off the Adobe CF9 page. We're running CF8 but the docs there 
are so sparse they tell you nothing so we can't tell if this is a version 
problem or what.

The .cfm file (we added the cftry stuff):

<cftry>
<cfform name="mycfform">
    First Name: <cfinput type="text" name="firstname" value=""><br>
    Last Name: <cfinput type="text" name="lastname" value=""><br>
    Domain: <cfinput type="text" name="domain" value=""><br>
    E-mail: <cfinput type="text" name="email"
        bind="cfc:bindFcns.getEmailId({firstn...@keyup},{lastn...@keyup},
        {dom...@keyup})"> 
        


        
        
</cfform>
<cfcatch type = "application">
<!--- display your message --->
   <h3>You've Thrown an <b>Error</b></h3>
<cfoutput>
   <!--- and the diagnostic feedback from the application server --->
  <p>#cfcatch.message#</p>
   <p>The contents of the tag stack are:</p>
   <cfloop 
      index = i 
      from = 1 to = #ArrayLen(cfcatch.tagContext)#>
          <cfset sCurrent = #cfcatch.tagContext[i]#>
             <br>#i# #sCurrent["ID"]#
            (#sCurrent["LINE"]#,#sCurrent["COLUMN"]#)
            #sCurrent["TEMPLATE"]#
   </cfloop>
</cfoutput>
</cfcatch>

</cftry>



The cfc file:

<cfcomponent>
    <cffunction name="getEmailId" access="remote">
                <cfargument name="firstname"> 
        <cfargument name="lastname"> 
        <cfargument name="domain"> 
                <cfreturn 
"#left(arguments.firstname,1)#.#arguments.lastna...@#lcase(arguments.domain)#">
    </cffunction>
</cfcomponent>

This throws an error in cfajax.js file (visible in IE Developer Tools) throw 
new SyntaxError("parseJSON");


What is going wrong?


Larry Stephens

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336622
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to