0
comm

Every CFAJAX example I’ve seen thus far has only shown the transmission of simple datatypes from Javascript to a CFAJAX handler Coldfusion file. I wanted to go a step further and bring a completely native Javascript JSON object into Coldfusion.
Make sure you have the newest implementations of the following:

json.js version ‘2007-01-10′ or later from http://www.json.org/js.html [...]

0
comm

The scenario is having an externally accessible Apache 2.2.4 server providing a clustered proxy for Flash Remoting. The problem I encountered every time I tried to access http://www.myhost.com/_api/flashservices/gateway/ it would access the appropriate clustered proxy node - but that node would immediately send back a 302:Location Redirect which would resolve to a private-network IP address [...]

0
comm

This is simple to do - and horrifically useful when using Coldfusion in line with Unix servers and other Unix-based scripting languages…
<cfset jDate = createObject("java", "java.util.Date")>
<cfdump var="#jDate.getTime()#">
Download this code: cfmx-unix-timestamp
This should be self-explanitory - and useful. The Java core saves Coldfusion in the end AGAIN.

1
comm

We found the need to have dynamic PDFs generated, displayed to the user, then a copy stored version of the PDF in binary format in a MySQL database.
This is great for PDF-based invoices, confirmation letters, etc that need to be generated and stored. In our case - writing the PDF to a web-accessible directory made [...]

0
comm

I’ve been developing around CFAJAX automatically instantiating any coldfusion struct in Javascript as an array of KEY:VALUE pairs. I fell victim to several traps in CFAJAX when there were ever a KEY:VALUE pair with the VALUE being an empty string.
The more I dug around the cfajax code the more I figured it would be best [...]

0
comm

Seeing as XMLHTTPRequest.open() is limited to only working on URI’s on the same domain:port pair as the page was originally loaded from - I had a problem trying to access an AJAX handler on a different host.
I solved this problem with Apache’s mod_proxy. This caused another issue with the client authentication functionality in CFAJAX.
First off, [...]

5
comm

To go on my other article, I added two lines to my onRequestEnd function as set in the Application.cfc. These lines will parse out preceding and trailing whitespace for all CFAJAX responses if your CF server is still having trouble doing proper “whitespace management”.
<cffunction name="onRequestEnd" output="Yes"><cfsetting enablecfoutputonly="Yes">
    <!— forceful strip of whitespaces from CFMX [...]

category: UNIX
5
comm

UPDATE 10/10/2007 - Put together a very simple Coldfusion script that can control a camera by connecting directly to the cam, taking control of it, and sending binary control data. Here’s the example source:
<!— Access the Java Thread class (for sleep) —>
<cfset thread = createObject("java", "java.lang.Thread")>
<!— Create a default TCP socket connection to the [...]

category: UNIX
27
comm

UPDATE 10/01/2007 found out that if the input from the cam is 6FPS and the output to SWF via FFSERVER is 4FPS - there’s no lag in camera controls. The scripts below have been changed to pull the MJPEG images from the camera at 6FPS and keep the flash SWF output as 4FPS.
The controllable IP [...]

4
comm

Ladies and gents, the sexiest AS2.0 pulldown component you’ve seen:

placeholder for flash movie

Newer Posts
monetary contributions are always accepted $
1.614s