SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Mar 2010
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to call a coldfusion function using jquery on clicking a hyperlink

    I have a cfm file that has a url that directs the page to another cfm page
    I would like on clicking the url to call a coldfusion function befor going to the next page
    example
    I have a component mycomponent
    <cfcomponent>
    <cffunction name="increaseviews">.
    <cfargument arg1..>
    ...</cffunction></cfcomponent>

    I have a cfm
    mypage.cfm
    <a href="mysecondpage.cfm">go to second page</a>

    secondpage.cfm
    I am the second page

    I want the user on clicking on the url the jquery will call the function increaseviews then go to secondpage.cfm

    Thanks in advance

  2. #2
    SitePoint Wizard bronze trophy Black Max's Avatar
    Join Date
    Apr 2007
    Posts
    4,029
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    You received an answer to this same question in another forum:

    http://www.sitepoint.com/forums/showthread.php?t=698252

    Thread closed. Please do not post the same question in multiple forums. Thanks.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •