Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

calling a coldfusion page with an ajax link?

Explorer ,
Dec 16, 2008 Dec 16, 2008
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
282
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 16, 2008 Dec 16, 2008
LATEST
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/
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources