954,585 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Cfinput Bind CFC SyntaxError: parseJSON

I am trying to Bind the value of Qty and Price to the Linetotal field but I'm get an error

window:global: uncaught exception: [Exception... "'SyntaxError: parseJSON' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "JS frame :: chrome://firebug/content/net/spy.js :: callPageHandler :: line 807" data: no] (, line 0)

I'm calling my cfc which does nothing but multiple Qty*Price

<cffunction name="GetLineTotal" access="remote">
        <cfargument name="Qty"> 
        <cfargument name="Price"> 
    <cfset Mytotal = DeserializeJSON(arguments.Qty) * DeserializeJSON(arguments.Price)>
            	
                <cfreturn Mytotal>


and here is my form .. Thanks

<cfform name="mycfform">
        <cfinput type="text" name="Qty"  size="10">

    <cfinput type="text" name="Price"  size="10">

    <cfinput type="text" name="Linetotal" value=""  size="10" bind="cfc:func.GetLineTotal({Qty@keyup},{Price@keyup})" >

</cfform>
jayst19143
Newbie Poster
8 posts since Aug 2010
Reputation Points: 10
Solved Threads: 2
 

Oh well I figured it out.. I used javascript instead

jayst19143
Newbie Poster
8 posts since Aug 2010
Reputation Points: 10
Solved Threads: 2
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You