For the life of me I can't figure out why this default responder won't work,
but it stops right after it sends the data. I get all the traces up to the 2
variables being sent... but it never gets to trace("trouble"), which didn't
surprise me since it obviously wasn't running _result and retrieving the query.
I've been over it a 100 + times tonight and I can't find anything wrong with
the code... PLEASE some one help
Thanks
Here's the Action Script"
function getLogin() {
if (uname_l == null) {
Selection.setFocus("_root.uname_l");
login_e = ("user name is a required field.");
}
else if (passw_l == null) {
Selection.setFocus("_root.passw_l");
login_e = ("password is a required field.");
}
else {
login.getAuth(uname_l,passw_l);
login_e = ("");
trace ("gets here");
trace (uname_l);
trace (passw_l);
}
}
function getAuth_Result(result){
trace ("trouble");
if (reslut == null){
login_e = ("user name password combo is invalid. try again.");
}
else {
getURL("chat.swf?uid="+result.items[0].userid, this);
trace (result.items[0].userid);
}
}
and here's the CF component (I stipped it down to a bare minimum trying to
debug this, and tested the query in a cfm page with an html form submission
using the same variable names... it works fine):
<cfcomponent>
<cffunction name="getAuth" access="remote" returntype="query">
<cfquery name="q_loginQuery" dataSource="poetry_users">
SELECT userid, user_name
FROM user
WHERE
user_name='#uname_l#'
AND password='#passw_l#'
</cfquery>
<cfreturn q_loginQuery>
</cffunction>
</cfcomponent>
Anyone have any ideas... I don't get any errors from NetServices. It seems to
connects to the CF Component fine. Did I miss a bracket or something stupid...
I've looked at all of that more for hours now, and checked the syntax against
tutorials and documentaion... it looks like it should work to me... the same
syntax works perfectly in the registration part of this app.!?
Thanks again! for any help