Hi,
Is there simple way to call cffunction using cf component- button or link, or whatever.
I have list with multiple documents and in the end of each line i need component which user can click, and on click i need to call cffunction.

Recommended Answers

All 2 Replies

As mentioned by danarashad, you need to use AJAX to communicate with server. You may use $.ajax and request the method to get your work done.

For Ex. if you have a method named myMethod() in myCFC component then you can set ajax url as mycfc.cfc?method=myMethod.

Let me know if this helps.

Regards,
Dipak

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.