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

CFC's and invoke,cfhttp,object call on event

New Here ,
Dec 19, 2006 Dec 19, 2006
Hello, thanks for looking!

Here is my situation, i have this simple cfc that does this: Query -> toXML -> Return
Works fine when i used invoke, cfhttp, and object on my index page.

The question i have is there ANY way to lets say not invoke the CFC until i hit a button or on an event.

Similar to AJAX when ya can on event (button , etc) it calls some javascript that invokes httprequest and pulls xml data with out refreshing the page.

My ideal solution would be some method of accessing CFC methods when i need them not when the page loads.

Because as of now when i place the invoke,cfhttp.. etc it executes on as the page loads.


~Peter
491
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
Guest
Dec 19, 2006 Dec 19, 2006
sounds like you answered your own question. use AJAX 🙂

in the http call just invoke the CFC and return the XML data.

(or did I overlook something...which is always a distinct possibility)
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
New Here ,
Jan 24, 2007 Jan 24, 2007
LATEST
In reply to CJ's comment:

sounds like you answered your own question. use AJAX 🙂

in the http call just invoke the CFC and return the XML data.

How would you invoke the cfc in the http call? How does this work with AJAX (prototype)?
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 19, 2006 Dec 19, 2006
Maybe an iframe is what you need.
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