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:292609
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4