• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 17. Using JavaScript and ColdFus... > Calling CFCs from JavaScript

Calling CFCs from JavaScript

As you learned in Chapter 19, “Creating Advanced ColdFusion Components”, any CFC method that uses access="Remote" can be invoked via the Macromedia Flash player, as Web Services, via HTML forms, or via simple URL invocation. If you access a remote method via the URL, the value that the method returns will be automatically serialized as a WDDX packet. That means that you can call CFCs from JavaScript in much the same way that the robot page was called in Listing 17.9.

NOTE

This applies only to methods that return values via <cfreturn>, rather than generating HTML or some other type of ad-hoc output.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint