So you're PUTting an attachment and getting a JavaScript error? Unless I'm forgetting something, wouldn't that have to come about from a validation function?
--- Keith Gable A+ Certified Professional Network+ Certified Professional Storage+ Certified Professional Web Developer On Wed, Feb 1, 2012 at 5:46 PM, Mark Hahn <[email protected]> wrote: > I don't have any validation function. > > On Wed, Feb 1, 2012 at 3:37 PM, Keith Gable <[email protected] > >wrote: > > > You pasted respStr = " ... - that part looks like CoffeeScript, and I > > assumed it was being spat at you by CouchDB. Rereading clarified that for > > me. > > > > I agree with others that the ReferenceError is being thrown at you from > > JavaScript, but I don't know why that is. Does your compiled CoffeeScript > > make sense if you read it? Maybe your validation function isn't valid > > JavaScript for one reason or another, or maybe it's valid but it's > > attempting to initialize options in a way that CouchDB isn't liking. > > > > --- > > Keith Gable > > A+ Certified Professional > > Network+ Certified Professional > > Storage+ Certified Professional > > Web Developer > > > > > > > > On Wed, Feb 1, 2012 at 5:24 PM, Mark Hahn <[email protected]> wrote: > > > > > What makes you think the error contains coffeescript? > > > > > > On Wed, Feb 1, 2012 at 3:16 PM, Keith Gable < > [email protected] > > > >wrote: > > > > > > > Right, but if you're getting an error from CouchDB that contains > > > > CoffeeScript, then clearly CouchDB is attempting to execute > > CoffeeScript > > > as > > > > JavaScript, which isn't valid. > > > > > > > > --- > > > > Keith Gable > > > > A+ Certified Professional > > > > Network+ Certified Professional > > > > Storage+ Certified Professional > > > > Web Developer > > > > > > > > > > > > > > > > On Wed, Feb 1, 2012 at 11:58 AM, Mark Hahn <[email protected]> wrote: > > > > > > > > > And technically, coffeescript isn't part of node. It is just > > > javascript > > > > > which runs anywhere, like the browser. I even write my couchdb > views > > > in > > > > > coffeescript. Works great. > > > > > > > > > > Think of it as complex editor macros. > > > > > > > > > > > > > > >
