Solved

Coldfusion 8 Bind fails

Posted on 2009-07-12
1
390 Views
Last Modified: 2013-12-24
This problem should have a simple answer, but I don't see it. I get the following error after I enter data in the 1st cfinput box. Why?

/cart.cfc?meth...clientid=5DBC8EFBC94F5B7538A1F69300B4CCC6&_cf_rc=0
http://127.0.0.1:8500/Chartingnature/cart.cfc?method=getImgid&returnFormat=json&argumentCollection=%7B%22area%22%3A%22fish%22%7D&_cf_nodebug=true&_cf_nocache=true&_cf_clientid=5DBC8EFBC94F5B7538A1F69300B4CCC6&_cf_rc=0


[Exception... "'SyntaxError: parseJSON' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "JS frame :: chrome://firebug/content/spy.js :: onHTTPSpyReadyStateChange :: line 497" data: no]
[Break on this error] return new ActiveXObject(_16[i]);
cfajax.js (line 103)

CFFORM name="b">
 

 Enter Area: <cfinput type="text" name="imgarea" id="iarea"> <br />

<cfinput type="text" name="number" label="email" bind="cfc:cart.getImgid({imgarea})">
 

</cfform>

------------------------------------

 <cfcomponent displayName="Miscellaneous">

<cffunction name="getImgid" access="remote">

<cfargument name="area" type="string" required="yes">	

<cfset rarea=area>

<cfreturn rarea>

</cffunction>
 

 </cfcomponent>

Open in new window

0
Comment
Question by:chartingnature
1 Comment
 

Accepted Solution

by:
chartingnature earned 0 total points
ID: 24842398
Dreamweaver CS3  is the problem.  Tried editing the code in notepad and I finally got it work.  Dreamweaver has a nasty habit of adding code that can cause error where there are none.   A great product, but can cause you a great deal of problems with coldfusion. A lot of people have had similar problems with dreamweaver. I don't understand why Adobe lets the problem continue.

Robert
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

A web service (http://en.wikipedia.org/wiki/Web_service) is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now