As an addition, it seems to have a problem with the < at the start Anyone seen this before or know what causes it?
-----Original Message----- From: Douglas McKenzie [mailto:[EMAIL PROTECTED]] Sent: 31 January 2003 14:11 To: [EMAIL PROTECTED] Subject: RE: [ cf-dev ] cfc and flash authentication ps Dont mention the structure! Ive just spotted that -----Original Message----- From: Douglas McKenzie [mailto:[EMAIL PROTECTED]] Sent: 31 January 2003 14:07 To: CF-Dev Subject: [ cf-dev ] cfc and flash authentication Might be having a Friday moment here but can anyone see why this code throws an exception on line 12: Invalid CFML construct <cflogin> <cfif IsDefined("CFLOGIN")> <cfloginuser name="#CFLOGIN.name#" password="#CFLOGIN.password#" roles="Admin"> </cfif> <cfif #CFLOGIN.name# eq "bob" AND #CFLOGIN.password# eq "password"> <cfset msg="works"> <cfelse> <cfset msg="crap"> </cfif> </cflogin> <!---error is on line below ---> <cfcomponent displayname="test the authentication" hint="testing"> <cffunction name="getStructure" access="remote" output="false" returntype="struct" hint="Returns test data"> <cfscript> stMsg = StructNew(); stMenuInfo["msg"] = "#msg#"; </cfscript> <cfreturn stMsg> </cffunction> </cfcomponent> Using this to call it from Flash: gatewayConnection = NetServices.createGatewayConnection("http://127.0.0.1:8500/flashservices/gat eway"); gateway_conn.setCredentials("bob","password"); var server = gatewayConnection.getService("test.testcfc", this); server.getStructure(); Cheers, Douglas McKenzie ---------------------------------------- Internet Developer / Designer [EMAIL PROTECTED] 020 7267 6718 ---------------------------------------- -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED] -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED] -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
