Good call, I've got ColdFire running (Marc, check it out at http://coldfire.riaforge.org/ ) so I forget to tell people to turn off debugging.
Adam Haskell http://cfrant.blogspot.com On 11/3/07, Brian Kotek <[EMAIL PROTECTED]> wrote: > > Also make sure you disable any debugging output. And be sure that the > return > format is JSON or something that the client JavaScript can properly parse. > > On Nov 3, 2007 9:19 AM, Adam Haskell <[EMAIL PROTECTED]> wrote: > > > If you have an Applicaiton.cfm it could be generating whitespace as well > > try > > <cfcontent reset="true" /><cfoutput>#result#</cfoutput> > > > > See if that gets you closer. > > > > > > Adam Haskell > > http://cfrant.blogspot.com > > > > > > On 11/3/07, marc -- <[EMAIL PROTECTED]> wrote: > > > > > > Hi, > > > I installed the prototype (v1.5.1). With <body onload=...> it calls a > > > function that looks up 2 parameters in a db and returns true/false if > > > found/not found > > > > > > This is the Ajax request: > > > function doAjax(){ > > > var url = 'modules/login.cfc?method=logincheck'; > > > var pars = 'username=marc&password=123'; > > > var myAjax = new Ajax.Request( > > > url, > > > { > > > method: 'get', > > > parameters: pars, > > > onComplete: showResponse > > > }); > > > > > > } > > > > > > function showResponse(originalRequest){ > > > alert(originalRequest.responseText); > > > } > > > > > > It gives me a huge alert that is empty but too big to fit on the > screen. > > > > > > So I did this: > > > alert(originalRequest.responseText.replace(" ","")):made no diffrence. > > > > > > Maybe the cfc gave an error or something? To check I typed this in the > > > browser: > > > > > > > > > > > > http://irama.local/modules/login.cfc?method=logincheck&username=marc&password=123 > > > gave 'true' > > > > > > To check extra I typed > > > > > > > > > http://irama.local/modules/login.cfc?method=logincheck&username=marc&password=1233 > > > gave 'false' (is not in db) > > > > > > I put <cfsilesnt> around method logincheck(): no difference > > > I put <cfsetting enablecfoutputonly="yes">: no difference > > > > > > The page from which the call is made is /index.cfm > > > The cfc that is called in the Ajax request is located in: > > > /modules/login.cfc > > > > > > I'm out of options here. What am I overlooking? > > > > > > Thanks, > > > Marc > > > > > > CFMX 7 > > > apacha 2.059 > > > MySQL > > > Firefox 2.0.0.8 > > > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create robust enterprise, web RIAs. Upgrade to ColdFusion 8 and integrate with Adobe Flex http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292617 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

