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 > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Check out the new features and enhancements in the latest product release - download the "What's New PDF" now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292610 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

