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>
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!