Below is the exact code I am using in production. The
RemoteAccountService.cfc is a remote proxy generated by ColdSpring.
The updateAccessLevel method will either promote or demote the
username depending on the direction parameter. The remote proxy has
some code to return the result of the method, or the exception that
is thrown, in JSON so we parse that out and pull out the error
message and detail. getALInfo() updates the page with the new data.
JonWorks, how do you access the username and direction in
that cfc? Do those parameters come in the url scope? I'd rather not
have to have the cfc looks for the variables in the url. scope. Is
there anyway for these variables to be passed into the method in
the arguments. scope automatically?