Skip to main content
Known Participant
December 17, 2008
Question

calling a coldfusion page with an ajax link?

  • December 17, 2008
  • 1 reply
  • 284 views
Is there a way to do call a cfm page (or cfc) directly from a link like this

onClick="ajax(url:'myPage.cfm?myVariable=#myVariable)"


Cheers,

H
    This topic has been closed for replies.

    1 reply

    Inspiring
    December 17, 2008
    that should work, as long as you add the closing # and ' after
    myVariable and make sure that it is inside a <cfoutput> block:
    <cfoutput>
    <a href="##"
    onclick="ajax(url:'myPage.cfm?myVariable=#myVariable#')">...</a>
    </cfoutput>

    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com/