Nov 6, 2009

Call Function Through User Request

free web hosting
Open Discussion > MODERATED AREA > Computers > Programming Languages > ColdFusion Programming

Call Function Through User Request

kvarnerexpress
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.

Comment/Reply (w/o sign-up)

mcfly
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...

Comment/Reply (w/o sign-up)



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Similar Topics

Keywords : Function User Request


    Looking for call, function, user, request

Searching Video's for call, function, user, request
See Also,
advertisement


Call Function Through User Request

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com