Wednesday, April 22, 2009

Very First Steps in Flex Refcard

Today I found this gem from dzone.com

Very First Steps in Flex

Rich Internet Applications and Flex are taking off. Many developers need to learn Flex fast. This refcard will help readers get started learning Flex. Firstly, a simple “Hello, World” application which will help familiarize readers with the Flex Builder tool and programming model. Secondly, we'll go into depth about how to connect Flex applications to back-end data through RESTful XML and SOAP. And lastly, “Remoting and Messaging with Java” walks through how to easily connect to a Java back-end with the open source BlazeDS product.

Features include Hello, World, Web Services, Remoting and Messaging with Java, Hot Tips and more.

Download it here (PDF)!

I think it is nice.

Wednesday, April 15, 2009

Dear CFDUMP, why don’t you HtmlEditFormat() your output!?

Today I finally tried using <cfxml> for the first time.  However, when I tried using an element from the xml, it always have an empty space in front. Hmm…

<cfoutput>’#value#’</cfoutput>

At first I thought it is some CF quirks, so I tried

<cfprocessingdirective suppressWhiteSpace=”true”>

but the white space is still there somehow…

Then I tried putting a Trim() around the value, but the white space still there!!! What!?

Finally, I highlight the non-removable space, right-click, “view selection source” in Firefox, and THERE IT IS!

‘<myElement>xxx</myElement>’

Lesson learned.  I needed to reference myElement.XmlText to get ‘xxx’.

If <cfdump> does a HtmlEditFormat() for the browser output… I guess I’ll have nothing to blog about today.  :)