Jump to content
xisto Community
Sign in to follow this  
kvarnerexpress

Call Function Through User Request

Recommended Posts

I am sure that this question is asked all of the time, but I didn't find it when I searched.How can I have a user push a link, or button, and then have a Coldfusion function recieve the call?For example, I have a form which has a variable number of records, each that I wan to be able to print a blow-up of. So, the user pushes button or link, "print" and I will loop through each record, sending it to a page that will format and print it.Any help is much appreciated.

Share this post


Link to post
Share on other sites

This might be kind of an overly-obvious, brute-force approach, but could you not simply pass a list from the form to the function on the action page? That is, the function accepts the list as a parameter (and I specify a list because on the face of it, a list seems the most likely structure to use in a case like this...though I could be wrong).

 

But if you're looking for a way for a CF function to actually accept the click event...I'm not sure that's possible. The function can, I beleive, only receive data as a result of an event.

 

Maybe I'm not understanding your question correctly...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.