CF is server side.  Once the link gets to the browser its just HTML.
The browser cant execute ColdFusion.  Now, that said, you can do an
AJAX call to a CFC or a CFM page and return data.  This actually
generates another request to the CF server which returns HTML, XML,
JSON, etc to the browser.

Sean

On Nov 19, 8:21 am, BazD <[EMAIL PROTECTED]> wrote:
> Hi folks
>
> Does anyone know to trigger a coldfusion function from within <a
> href=""></a> ?
>
> What I have at the moment is a simple test script, but all this does
> is display "hello" when the page has loaded and not when the link has
> been clicked:
>
> <cfscript>
> function test() {
> writeOutput("hello");}
>
> writeOutput("<a href='##' onClick='#test()#'>click here</a>");
> </cfscript>
>
> What I want to create is a simple link on a page which triggers a
> coldfusion function. This all has to happen within the same page as
> the client dosnt want to jump from page to page.
>
> Im new to coldfusion components and stuff, not sure if they are they
> way to achieve the results I need.
>
> Any help much appreciated
>
> Thanks
> B
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"farcry-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/farcry-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to