• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Using jQuery to Submit a Form to a Method in a CFC

New Here ,
May 28, 2008 May 28, 2008

Copy link to clipboard

Copied

Is this possible? If so, how to you pass in the arguments? Something like this does not work:

TOPICS
Advanced techniques

Views

426

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 28, 2008 May 28, 2008

Copy link to clipboard

Copied

I don't know the answer to this specific question, but in many query languages, arguments are sent to functions like this:

x = somefunction(arg1,arg2, etc)
or
x = somefunction (arg1=val1 arg2=val2 etc)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 29, 2008 May 29, 2008

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 30, 2008 May 30, 2008

Copy link to clipboard

Copied

LATEST
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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation