<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Christophe Coenraets &#187; ajax</title>
	<atom:link href="http://coenraets.org/blog/tag/ajax/feed/" rel="self" type="application/rss+xml" />
	<link>http://coenraets.org/blog</link>
	<description>Rich Internet Applications, Flex, AIR, Java, Android</description>
	<lastBuildDate>Fri, 23 Jul 2010 14:45:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Interactive Bubble Pipeline: Another Hybrid (HTML/Flex) Example</title>
		<link>http://coenraets.org/blog/2007/11/interactive-bubble-pipeline-another-hybrid-htmlflex-example/</link>
		<comments>http://coenraets.org/blog/2007/11/interactive-bubble-pipeline-another-hybrid-htmlflex-example/#comments</comments>
		<pubDate>Tue, 13 Nov 2007 06:20:27 +0000</pubDate>
		<dc:creator>Christophe Coenraets</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[charts]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://coenraets.org/blog/2007/11/interactive-bubble-pipeline-another-hybrid-htmlflex-example/</guid>
		<description><![CDATA[A customer recently pointed out to me that many of our examples feature full-page Flex applications, and wanted to me to demonstrate how a Flex application can integrate with an HTML/Ajax application. Hybrid applications are definitely part of our vision for Flex, and there are many real-life examples of mixing Flash and HTML content out [...]]]></description>
			<content:encoded><![CDATA[<p>A customer recently pointed out to me that many of our examples feature full-page Flex applications, and wanted to me to demonstrate how a Flex application can integrate with an HTML/Ajax application. Hybrid applications are definitely part of our vision for Flex, and there are many real-life examples of mixing Flash and HTML content out there (see  <a href="http://finance.google.com/finance?q=adbe">http://finance.google.com/finance?q=adbe</a>). This customer wanted to look at the integration at the code level. Instead of the usual “Hello from Flex”/”Hello from JavaScript” message exchange example, I wanted to show something more meaningful that would also show “why” you would actually want to do this… </p>
<p><span id="more-56"></span></p>
<p>Click <a href="http://coenraets.org/samples/bubblepipeline/pipeline.html">here</a> to start the sample application.</p>
<p>I extracted this example from my Salesbuilder sample. The application is a simple sales pipeline. The X axis is a time axis, the Y axis represents the probability of closing deals (in percent), and the bubbles represent deals: the bigger the bubble, the bigger the deal.</p>
<p>The bubble chart features many “direct manipulation” options: </p>
<ol>
<li>Grab the background of the chart with your mouse and scroll it left and write to navigate along the time axis.</li>
<li>Grab a vertical grid line, and move it left and right to zoom-out/zoom-in.</li>
<li>To modify your pipeline, grab a bubble with your mouse and move it up and down or left and right to adjust the probability and the expected closing date respectively</li>
</ol>
<p><strong>Flex to JavaScript:</strong><br />
When you move bubbles, the Flex application invokes a JavaScript method to update the Projected Revenue which is displayed in plain HTML on the page. </p>
<p><strong>JavaScript to Flex:</strong><br />
You can also add opportunities (deals) using the HTML form at the bottom of the page.<br />
For example, specify “Adobe” as the account, “Big Deal” as the project name, 500000 as the expected revenue, “50” as the days to close, and “70” as the probability.<br />
When you click “Add Opportunity”, we use JavaScript to invoke the addOpportunity() method in the Flex application.</p>
<p>In this example, I use ExternalInterface to communicate between Flex and JavaScript. You can also use the Flex Ajax bridge which provides a higher level API and which is now integrated in FlexBuilder (version 3).</p>
<p>Click <a href="http://coenraets.org/samples/bubblepipeline/pipeline.zip">here</a> to download the source code.</p>
<p>No rocket science here… just another example of a hybrid application.</p>
]]></content:encoded>
			<wfw:commentRss>http://coenraets.org/blog/2007/11/interactive-bubble-pipeline-another-hybrid-htmlflex-example/feed/</wfw:commentRss>
		<slash:comments>35</slash:comments>
		</item>
	</channel>
</rss>
