Thursday, July 24, 2008    
Home My Books Blog ColdFusion About Me Back    

Calendar
<< Oct 2007 >>
S M T W T F S
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      

Search

Categories
 • Adobe (63) [RSS]
 • AdobeMAX06 (45) [RSS]
 • AdobeMAX07 (59) [RSS]
 • AdobeMAX08 (14) [RSS]
 • AIR (116) [RSS]
 • Appearances (115) [RSS]
 • Books (67) [RSS]
 • CFEclipse (14) [RSS]
 • ColdFusion (1120) [RSS]
 • Data Services (8) [RSS]
 • Flash (95) [RSS]
 • Flex (345) [RSS]
 • Jobs (88) [RSS]
 • JRun (12) [RSS]
 • Labs (27) [RSS]
 • LiveCycle (17) [RSS]
 • MAX (149) [RSS]
 • Regular Expressions (12) [RSS]
 • SQL (36) [RSS]
 • Stuff (498) [RSS]
 • Tips (CF Studio) (80) [RSS]
 • Tips (CF) (795) [RSS]
 • Tips (Dreamweaver) (91) [RSS]
 • Tips (Flex Builder) (2) [RSS]
 • Using CF (133) [RSS]
 • Wireless (97) [RSS]

Other BLOGs
 • Charlie Arehart
 • Lee Brimelow
 • Ray Camden
 • Christophe Coenraets
 • Sean Corfield
 • Mihai Corlan
 • Cornel Creanga
 • John Dowdell
 • Danny Dura
 • Enrique Duvos
 • Steven Erat
 • Kevin Hoyt
 • Serge Jespers
 • Adam Lehman
 • Duane Nickull
 • Miti Pricope
 • Andrew Shorten
 • Ryan Stewart
 • James Ward
 • Greg Wilson
 • Full As A Goog

RSS Feeds
 • Feed
 • Subscribe

Join my mailing list and find out about new books and other topics of interest.

Thoughts, ideas, tips, musings, and pontifications (not necessarily in that order) by Ben Forta ...
NOTE: This is my personal blog, and the opinions and statements voiced here are my own.

Viewing By Day : October 15, 2007 / Main
October 15, 2007

Using POST For ColdFusion Ajax Calls

A ColdFusion user asked me (at MAX) how to get ColdFusion's Ajax calls to use POST instead of the default GET. The answer, courtesy of ColdFusion team member Rakshith, is to use <CFAJAXPROXY> to define the proxy CFC, and then use the setHTTPMethod() method to set the method type. Here is Rakshith's example:

<html>

<head>

<script type="text/javascript">
function test()
{
   Var abccfc = new abc();
   abccfc.setHTTPMethod("POST");
   // All method calls on this instance will henceforth use POST instead of GET
   abccfc.somemethod();
}
</script>

</head>

<body>
   <cfajaxproxy cfc="abc">
   <cfinput type="button" name="test" onclick="test();">
</body>

</html>


European Keynote About To Start

MAX Europe started this morning, and it's great to see the crowd and feel the enthusiasm, especially as this is the first MAX here (prior attempts never materialized). The opening keynote here starts at 11:30am local time (any minute) - the stage is ready (and massive), the room is full, the music is blaring, lights are dimming, the intro video is starting to roll ... wow, is it just two weeks since we did this in Chicago? Definite sense of déjà vu!

  © Copyright 1997-2008 Ben Forta, All Rights Reserved