<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Ajithmanmu on Coldfusion,Web X.0</title>
	<atom:link href="http://ajithmanmadhan.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ajithmanmadhan.wordpress.com</link>
	<description>CF devigner..@Cochin</description>
	<lastBuildDate>Sun, 05 Jun 2011 06:27:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='ajithmanmadhan.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/99129166d18081f8761fde17f45c6378?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Ajithmanmu on Coldfusion,Web X.0</title>
		<link>http://ajithmanmadhan.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://ajithmanmadhan.wordpress.com/osd.xml" title="Ajithmanmu on Coldfusion,Web X.0" />
	<atom:link rel='hub' href='http://ajithmanmadhan.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Windows authentication for coldfusion 9 datasources</title>
		<link>http://ajithmanmadhan.wordpress.com/2010/12/25/windows-authentication-for-coldfusion-9-datasources/</link>
		<comments>http://ajithmanmadhan.wordpress.com/2010/12/25/windows-authentication-for-coldfusion-9-datasources/#comments</comments>
		<pubDate>Sat, 25 Dec 2010 18:02:46 +0000</pubDate>
		<dc:creator>ajithmanmu</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[coldfusion]]></category>
		<category><![CDATA[coldfusion9]]></category>
		<category><![CDATA[datasources]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://ajithmanmadhan.wordpress.com/?p=215</guid>
		<description><![CDATA[Let&#8217;s get into the topic right away. Simple and straight forward steps on how to setup a Coldfusion 9  datasource with SQL Server 2008 in Windows Authentication mode. Step 1:-  Go to Programs &#8211;&#62;  Microsoft SQL Server 2008 R2 &#8211;&#62;Configuration Tools &#8211;&#62;SQL Server Configuration Manager. Step 2: Enable the  TCP/IP protocol under SQL Server Configuration Manager [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajithmanmadhan.wordpress.com&amp;blog=4454903&amp;post=215&amp;subd=ajithmanmadhan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Let&#8217;s get into the topic right away.</p>
<p>Simple and straight forward steps on how to setup a Coldfusion 9  datasource with SQL Server 2008 in Windows Authentication mode.</p>
<p>Step 1:-  Go to Programs &#8211;&gt;  Microsoft SQL Server 2008 R2 &#8211;&gt;Configuration Tools &#8211;&gt;SQL Server Configuration Manager.</p>
<p><a href="http://ajithmanmadhan.files.wordpress.com/2010/12/sqlconfigpath.jpg"><img class="alignnone size-full wp-image-216" title="SQLConfigpath" src="http://ajithmanmadhan.files.wordpress.com/2010/12/sqlconfigpath.jpg?w=535&#038;h=351" alt="" width="535" height="351" /></a></p>
<p>Step 2: Enable the  TCP/IP protocol under SQL Server Configuration Manager &gt; SQL Server Network Configurations &gt; Protocols for SQLEXPRESS</p>
<p><a href="http://ajithmanmadhan.files.wordpress.com/2010/12/sql-step2.jpg"><img class="alignnone size-full wp-image-217" title="sql-step2" src="http://ajithmanmadhan.files.wordpress.com/2010/12/sql-step2.jpg?w=535&#038;h=256" alt="" width="535" height="256" /></a></p>
<p>Step 3: Now double-click the TCP/IP protocol to view the properties. Click on the IP Addresses tab and make sure that the TCP Port is set to 1433 for every IP type.</p>
<p><a href="http://ajithmanmadhan.files.wordpress.com/2010/12/sql-step3.jpg"><img class="alignnone size-full wp-image-218" title="sql-step3" src="http://ajithmanmadhan.files.wordpress.com/2010/12/sql-step3.jpg?w=535&#038;h=298" alt="" width="535" height="298" /></a></p>
<p>Step 4: Log in to CF9 Administrator and create a new datasource. While setting up the datasource give the Database name and datasource name the same. Give the server name as &#8220;localhost&#8221; and the port as your TCP/IP port.</p>
<p><a href="http://ajithmanmadhan.files.wordpress.com/2010/12/sql-step4.jpg"><img class="alignnone size-full wp-image-220" title="sql-step4" src="http://ajithmanmadhan.files.wordpress.com/2010/12/sql-step4.jpg?w=535&#038;h=189" alt="" width="535" height="189" /></a></p>
<p>Congratulations. You just  created a datasource that connects to a SQL Database with  Windows Authentication.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ajithmanmadhan.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ajithmanmadhan.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ajithmanmadhan.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ajithmanmadhan.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ajithmanmadhan.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ajithmanmadhan.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ajithmanmadhan.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ajithmanmadhan.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ajithmanmadhan.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ajithmanmadhan.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ajithmanmadhan.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ajithmanmadhan.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ajithmanmadhan.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ajithmanmadhan.wordpress.com/215/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajithmanmadhan.wordpress.com&amp;blog=4454903&amp;post=215&amp;subd=ajithmanmadhan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ajithmanmadhan.wordpress.com/2010/12/25/windows-authentication-for-coldfusion-9-datasources/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d1dcc778da3e6f6a38a794808752132d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ajithmanmu</media:title>
		</media:content>

		<media:content url="http://ajithmanmadhan.files.wordpress.com/2010/12/sqlconfigpath.jpg" medium="image">
			<media:title type="html">SQLConfigpath</media:title>
		</media:content>

		<media:content url="http://ajithmanmadhan.files.wordpress.com/2010/12/sql-step2.jpg" medium="image">
			<media:title type="html">sql-step2</media:title>
		</media:content>

		<media:content url="http://ajithmanmadhan.files.wordpress.com/2010/12/sql-step3.jpg" medium="image">
			<media:title type="html">sql-step3</media:title>
		</media:content>

		<media:content url="http://ajithmanmadhan.files.wordpress.com/2010/12/sql-step4.jpg" medium="image">
			<media:title type="html">sql-step4</media:title>
		</media:content>
	</item>
		<item>
		<title>Command Line API in Firebug</title>
		<link>http://ajithmanmadhan.wordpress.com/2010/11/08/command-line-api-in-firebug/</link>
		<comments>http://ajithmanmadhan.wordpress.com/2010/11/08/command-line-api-in-firebug/#comments</comments>
		<pubDate>Mon, 08 Nov 2010 16:06:18 +0000</pubDate>
		<dc:creator>ajithmanmu</dc:creator>
				<category><![CDATA[Browser]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[firebug]]></category>

		<guid isPermaLink="false">http://ajithmanmadhan.wordpress.com/?p=206</guid>
		<description><![CDATA[Long time since I have made a  post. This time it is on one of my fav web development tool Firebug. It has got a cool command line API console for writing JavaScript commands that can be executed on the fly. This is particularly important when we debug large JavaScript code. We need to reload the js file each time after [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajithmanmadhan.wordpress.com&amp;blog=4454903&amp;post=206&amp;subd=ajithmanmadhan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Long time since I have made a  post. This time it is on one of my fav web development tool <a href="http://getfirebug.com/" target="_blank">Firebug</a>. It has got a cool command line API console for writing JavaScript commands that can be executed on the fly. This is particularly important when we debug large JavaScript code. We need to reload the js file each time after making any changes &#8211; which can be quite time consuming. Here is where command lines can be of great help.</p>
<p>There are two type of Command lines API:-</p>
<ol>
<li>One Line Command Line &#8211; This is the default command line. We can write a single line of JavaScript code here. Also it supports auto complete feature (i.e by hitting the tab key you can complete your js code just like other well known editors). After writing your code press enter. The code gets executed and you can see the execution details under the  console window. See highlighted area below.</li>
</ol>
<p><span style="white-space:pre;"> <a href="http://ajithmanmadhan.files.wordpress.com/2010/11/singlecommandline_fb.jpg"><img class="alignnone size-full wp-image-207" title="SingleCommandLine_FB" src="http://ajithmanmadhan.files.wordpress.com/2010/11/singlecommandline_fb.jpg?w=535&#038;h=246" alt="" width="535" height="246" /></a></span></p>
<p>2. Multi Lines Command Line &#8211; Here we can write and excute multipe lines of code on the fly. Write your js code and click Run button. The code gets excuted and you can see the execution details under the  console window. Firebug also provides a <a href="http://getfirebug.com/wiki/index.php/Command_Line_API" target="_blank">list of APIs</a> to access the DOM element as well as to monitor and profile the javascript code that is getting executed. Typing these in the command line and executing helps us to  see what is the value of an HTML element,whether a function has been executed or not etc.</p>
<p><a href="http://ajithmanmadhan.files.wordpress.com/2010/11/multicommandline_fb.jpg"><img class="alignnone size-full wp-image-208" title="MultiCommandLine_FB" src="http://ajithmanmadhan.files.wordpress.com/2010/11/multicommandline_fb.jpg?w=535&#038;h=246" alt="" width="535" height="246" /></a></p>
<p>Firebug as always Roxx..  :-)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ajithmanmadhan.wordpress.com/206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ajithmanmadhan.wordpress.com/206/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ajithmanmadhan.wordpress.com/206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ajithmanmadhan.wordpress.com/206/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ajithmanmadhan.wordpress.com/206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ajithmanmadhan.wordpress.com/206/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ajithmanmadhan.wordpress.com/206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ajithmanmadhan.wordpress.com/206/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ajithmanmadhan.wordpress.com/206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ajithmanmadhan.wordpress.com/206/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ajithmanmadhan.wordpress.com/206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ajithmanmadhan.wordpress.com/206/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ajithmanmadhan.wordpress.com/206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ajithmanmadhan.wordpress.com/206/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajithmanmadhan.wordpress.com&amp;blog=4454903&amp;post=206&amp;subd=ajithmanmadhan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ajithmanmadhan.wordpress.com/2010/11/08/command-line-api-in-firebug/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d1dcc778da3e6f6a38a794808752132d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ajithmanmu</media:title>
		</media:content>

		<media:content url="http://ajithmanmadhan.files.wordpress.com/2010/11/singlecommandline_fb.jpg" medium="image">
			<media:title type="html">SingleCommandLine_FB</media:title>
		</media:content>

		<media:content url="http://ajithmanmadhan.files.wordpress.com/2010/11/multicommandline_fb.jpg" medium="image">
			<media:title type="html">MultiCommandLine_FB</media:title>
		</media:content>
	</item>
		<item>
		<title>CF Admin glitch while Updating Scheduled tasks?</title>
		<link>http://ajithmanmadhan.wordpress.com/2010/05/14/cf-admin-glitch-while-updating-scheduled-tasks/</link>
		<comments>http://ajithmanmadhan.wordpress.com/2010/05/14/cf-admin-glitch-while-updating-scheduled-tasks/#comments</comments>
		<pubDate>Fri, 14 May 2010 18:42:35 +0000</pubDate>
		<dc:creator>ajithmanmu</dc:creator>
				<category><![CDATA[cold fusion]]></category>
		<category><![CDATA[coldfusion]]></category>

		<guid isPermaLink="false">http://ajithmanmadhan.wordpress.com/?p=115</guid>
		<description><![CDATA[I faced an issue while working with scheduled tasks long back but though of blogging this now. If the interval specified while creating the task was more than 24 hours then we will not be able to update the task from Coldfusion Administrator. So here we are creating the schedule task through code. Take a note [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajithmanmadhan.wordpress.com&amp;blog=4454903&amp;post=115&amp;subd=ajithmanmadhan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I faced an issue while working with scheduled tasks long back but though of blogging this now. If the interval specified while creating the task was more than 24 hours then we will not be able to update the task from Coldfusion Administrator.</p>
<p>So here we are creating the schedule task through code. Take a note of the interval.</p>
<div id="_mcePaste"><span style="color:#ff0000;">&lt;cfschedule action = &#8220;update&#8221;</span></div>
<div id="_mcePaste"><span style="color:#ff0000;">task = &#8220;TaskName&#8221;</span></div>
<div id="_mcePaste"><span style="color:#ff0000;">operation = &#8220;HTTPRequest&#8221;</span></div>
<div id="_mcePaste"><span style="color:#ff0000;">url = &#8220;http://127.0.0.1/playpen/history.cfm&#8221;</span></div>
<div id="_mcePaste"><span style="color:#ff0000;">startDate = &#8220;8/7/98&#8243;</span></div>
<div id="_mcePaste"><span style="color:#ff0000;">startTime = &#8220;12:25 PM&#8221;</span></div>
<div id="_mcePaste"><span style="color:#0000ff;">interval = &#8220;360000&#8243;</span></div>
<div id="_mcePaste"><span style="color:#ff0000;">resolveURL = &#8220;Yes&#8221;</span></div>
<div id="_mcePaste"><span style="color:#ff0000;">publish = &#8220;Yes&#8221;</span></div>
<div id="_mcePaste"><span style="color:#ff0000;">file = &#8220;sample.html&#8221;</span></div>
<div id="_mcePaste"><span style="color:#ff0000;">path = &#8220;c:\inetpub\wwwroot\playpen&#8221;</span></div>
<div id="_mcePaste"><span style="color:#ff0000;">requestTimeOut = &#8220;600&#8243;&gt;</span></div>
<p>The interval 360000 is like 100 hours.</p>
<p>Now log into the CF Administrator and try to update the task by changing the frequency to One Time.</p>
<p><a href="http://ajithmanmadhan.files.wordpress.com/2010/05/scheduletask.jpg"><img class="alignnone size-full wp-image-197" title="scheduletask" src="http://ajithmanmadhan.files.wordpress.com/2010/05/scheduletask.jpg?w=500&#038;h=284" alt="" width="500" height="284" /></a></p>
<p>The Admin throws error message saying that the interval must be less than one day.</p>
<p>The only way i see to update this schedule task is through code.</p>
<p>Is this a glitch of CF admin? I don&#8217;t know.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ajithmanmadhan.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ajithmanmadhan.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ajithmanmadhan.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ajithmanmadhan.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ajithmanmadhan.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ajithmanmadhan.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ajithmanmadhan.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ajithmanmadhan.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ajithmanmadhan.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ajithmanmadhan.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ajithmanmadhan.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ajithmanmadhan.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ajithmanmadhan.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ajithmanmadhan.wordpress.com/115/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajithmanmadhan.wordpress.com&amp;blog=4454903&amp;post=115&amp;subd=ajithmanmadhan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ajithmanmadhan.wordpress.com/2010/05/14/cf-admin-glitch-while-updating-scheduled-tasks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d1dcc778da3e6f6a38a794808752132d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ajithmanmu</media:title>
		</media:content>

		<media:content url="http://ajithmanmadhan.files.wordpress.com/2010/05/scheduletask.jpg" medium="image">
			<media:title type="html">scheduletask</media:title>
		</media:content>
	</item>
		<item>
		<title>Security update for ColdFusion versions 9, 8.0.1, and 8 and a word of caution</title>
		<link>http://ajithmanmadhan.wordpress.com/2010/05/12/security-update-for-coldfusion-versions-9-8-0-1-and-8-and-a-word-of-caution/</link>
		<comments>http://ajithmanmadhan.wordpress.com/2010/05/12/security-update-for-coldfusion-versions-9-8-0-1-and-8-and-a-word-of-caution/#comments</comments>
		<pubDate>Wed, 12 May 2010 18:09:54 +0000</pubDate>
		<dc:creator>ajithmanmu</dc:creator>
				<category><![CDATA[cold fusion]]></category>
		<category><![CDATA[coldfusion]]></category>
		<category><![CDATA[coldfusion8]]></category>
		<category><![CDATA[coldfusion9]]></category>

		<guid isPermaLink="false">http://ajithmanmadhan.wordpress.com/?p=194</guid>
		<description><![CDATA[A new security update for ColdFusion versions 9, 8.0.1, and 8 is available now. Important vulnerabilities have been identified for these versions that could lead to cross-site scripting and information disclosure. So an update is highly recommended. http://www.adobe.com/support/security/bulletins/apsb10-11.html But after taking updates it was reported that the update killed the datasources in the CF admin. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajithmanmadhan.wordpress.com&amp;blog=4454903&amp;post=194&amp;subd=ajithmanmadhan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A new security update for ColdFusion versions 9, 8.0.1, and 8 is available now. Important vulnerabilities have been identified for these versions that could lead to cross-site scripting and information disclosure. So an update is highly recommended.</p>
<p><a title="http://www.adobe.com/support/security/bulletins/apsb10-11.html" href="http://www.adobe.com/support/security/bulletins/apsb10-11.html" target="_blank">http://www.adobe.com/support/security/bulletins/apsb10-11.html</a></p>
<p>But after taking updates it was reported that the update killed the datasources in the CF admin. After deleting shf8010001.jar from {CF_HOME}/lib/updates/ and restarting the ColdFusion service CF is up and running again. We are still waiting for Adobe to resolve this issue.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ajithmanmadhan.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ajithmanmadhan.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ajithmanmadhan.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ajithmanmadhan.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ajithmanmadhan.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ajithmanmadhan.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ajithmanmadhan.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ajithmanmadhan.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ajithmanmadhan.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ajithmanmadhan.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ajithmanmadhan.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ajithmanmadhan.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ajithmanmadhan.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ajithmanmadhan.wordpress.com/194/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajithmanmadhan.wordpress.com&amp;blog=4454903&amp;post=194&amp;subd=ajithmanmadhan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ajithmanmadhan.wordpress.com/2010/05/12/security-update-for-coldfusion-versions-9-8-0-1-and-8-and-a-word-of-caution/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d1dcc778da3e6f6a38a794808752132d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ajithmanmu</media:title>
		</media:content>
	</item>
		<item>
		<title>Google Chrome speed tests</title>
		<link>http://ajithmanmadhan.wordpress.com/2010/05/06/google-chrome-speed-tests/</link>
		<comments>http://ajithmanmadhan.wordpress.com/2010/05/06/google-chrome-speed-tests/#comments</comments>
		<pubDate>Thu, 06 May 2010 19:08:31 +0000</pubDate>
		<dc:creator>ajithmanmu</dc:creator>
				<category><![CDATA[Browser]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[speed]]></category>

		<guid isPermaLink="false">http://ajithmanmadhan.wordpress.com/?p=191</guid>
		<description><![CDATA[With the release of new Chrome,  Google has shown how much importance they are giving for speed and performance. In fact they have gone ahead and compared the browser&#8217;s speed with real life objects.  - Just to show how fast the web page is being rendered (Yes that&#8217;s right  - loading at 2,700 frames per [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajithmanmadhan.wordpress.com&amp;blog=4454903&amp;post=191&amp;subd=ajithmanmadhan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>With the release of new Chrome,  Google has shown how much importance they are giving for speed and performance. In fact they have gone ahead and compared the browser&#8217;s speed with real life objects.  - Just to show how fast the web page is being rendered (Yes that&#8217;s right  - loading at 2,700 frames per second!) . This is what Google has showed off:</p>
<span style="text-align:center; display: block;"><a href="http://ajithmanmadhan.wordpress.com/2010/05/06/google-chrome-speed-tests/"><img src="http://img.youtube.com/vi/nCgQDjiotG0/2.jpg" alt="" /></a></span>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ajithmanmadhan.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ajithmanmadhan.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ajithmanmadhan.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ajithmanmadhan.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ajithmanmadhan.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ajithmanmadhan.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ajithmanmadhan.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ajithmanmadhan.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ajithmanmadhan.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ajithmanmadhan.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ajithmanmadhan.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ajithmanmadhan.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ajithmanmadhan.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ajithmanmadhan.wordpress.com/191/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajithmanmadhan.wordpress.com&amp;blog=4454903&amp;post=191&amp;subd=ajithmanmadhan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ajithmanmadhan.wordpress.com/2010/05/06/google-chrome-speed-tests/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d1dcc778da3e6f6a38a794808752132d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ajithmanmu</media:title>
		</media:content>
	</item>
		<item>
		<title>FaceBook security hole&#8230;</title>
		<link>http://ajithmanmadhan.wordpress.com/2010/05/06/asd/</link>
		<comments>http://ajithmanmadhan.wordpress.com/2010/05/06/asd/#comments</comments>
		<pubDate>Thu, 06 May 2010 18:25:30 +0000</pubDate>
		<dc:creator>ajithmanmu</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://ajithmanmadhan.wordpress.com/?p=182</guid>
		<description><![CDATA[Yesterday witnessed a  major security flaw in the social networking site facebook that, with just a few mouse clicks, enables any user to view the live chats of their ‘friends’. Using what sounds like a simple trick, a user can also access their friends’ latest pending friend-requests and which friends they share in common. See by yourself how [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajithmanmadhan.wordpress.com&amp;blog=4454903&amp;post=182&amp;subd=ajithmanmadhan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Yesterday witnessed a  major security flaw in the social networking site facebook that, with just a few mouse clicks, enables any user to view the <em>live chats</em> of their ‘friends’. Using what sounds like a simple trick, a user can also access their friends’ latest pending friend-requests and which friends they share in common. See by yourself how &#8220;secure &#8221; are our social sites:-</p>
<span style="text-align:center; display: block;"><a href="http://ajithmanmadhan.wordpress.com/2010/05/06/asd/"><img src="http://img.youtube.com/vi/ny8ui4delEo/2.jpg" alt="" /></a></span>
<p>By the time I have finished this post  they would have fixed this bug(they better be!!!).</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ajithmanmadhan.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ajithmanmadhan.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ajithmanmadhan.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ajithmanmadhan.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ajithmanmadhan.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ajithmanmadhan.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ajithmanmadhan.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ajithmanmadhan.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ajithmanmadhan.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ajithmanmadhan.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ajithmanmadhan.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ajithmanmadhan.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ajithmanmadhan.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ajithmanmadhan.wordpress.com/182/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajithmanmadhan.wordpress.com&amp;blog=4454903&amp;post=182&amp;subd=ajithmanmadhan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ajithmanmadhan.wordpress.com/2010/05/06/asd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d1dcc778da3e6f6a38a794808752132d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ajithmanmu</media:title>
		</media:content>
	</item>
		<item>
		<title>Customizing Ckeditor and adding a new toolbar button</title>
		<link>http://ajithmanmadhan.wordpress.com/2009/12/16/customizing-ckeditor-and-adding-a-new-toolbar-button/</link>
		<comments>http://ajithmanmadhan.wordpress.com/2009/12/16/customizing-ckeditor-and-adding-a-new-toolbar-button/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 18:31:22 +0000</pubDate>
		<dc:creator>ajithmanmu</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[ckeditor]]></category>

		<guid isPermaLink="false">http://ajithmanmadhan.wordpress.com/?p=177</guid>
		<description><![CDATA[It&#8217;s been a long time since i have put a blog entry. This time i will discuss how to customize a Ckeditor and how to  add new plugins(buttons in the toolbar) to the ckeditor. I got little help while googling. Hope this would be helpful. Step 1: Download and install the Ckeditor js files. This [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajithmanmadhan.wordpress.com&amp;blog=4454903&amp;post=177&amp;subd=ajithmanmadhan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been a long time since i have put a blog entry. This time i will discuss how to customize a <a href="http://ckeditor.com/" target="_blank">Ckeditor</a> and how to  add new plugins(buttons in the toolbar) to the ckeditor. I got little help while googling. Hope this would be helpful.</p>
<p>Step 1: <a href="http://ckeditor.com/download" target="_blank">Download</a> and <a href="http://docs.cksource.com/CKEditor_3.x/Developers_Guide/Installation" target="_blank">install</a> the Ckeditor js files. This <a href="http://docs.cksource.com/CKEditor_3.x/Developers_Guide/Integration" target="_blank">link</a> would get you setup a sample ckeditor in your local machine.</p>
<p>Step 2 : Customizing the toolbar:</p>
<p>We can specify which all toolbar buttons needs to be shown in our ckeditor. You can refer <a href="http://docs.cksource.com/CKEditor_3.x/Developers_Guide/Toolbar" target="_blank">here</a> for the toolbar definition.</p>
<p>Now we need to add a new button with a user defined functionality to our Ckeditor toolbar. In this example we are creating a button that wraps an anchor tag around a selected text inside the Ckeditor(same functionality as existing anchor button in the ckeditor).</p>
<p>Each button in the ckeditor toolbar is a plugin and their definitions are stored in <strong>ckeditor\plugins\</strong> folder. In this folder we <strong>create a new folder</strong> with our plugin name. Here <span style="color:#3366ff;">linkbutton</span>. Inside the linkbutton folder we create a plugin.js file which contains the core functionality of the plugin/button.</p>
<p>It will contain the following code:-</p>
<div id="_mcePaste">
<div id="_mcePaste"><span style="color:#ff0000;">(function(){</span></div>
<div><span style="color:#ff0000;"> //Section 1 : <span style="color:#000000;"><span style="color:#ff0000;">Code to execute when the toolbar button is pressed</span></span></span></div>
<div id="_mcePaste"><span style="color:#ff0000;"> var a= {</span></div>
<div id="_mcePaste"><span style="color:#ff0000;"> exec:function(editor){</span></div>
<div id="_mcePaste"><span style="white-space:pre;"><span style="color:#ff0000;"> </span></span><span style="color:#ff0000;"> var theSelectedText = editor.getSelection().getNative();</span></div>
<div id="_mcePaste"><span style="white-space:pre;"><span style="color:#ff0000;"> </span></span><span style="color:#ff0000;"> CallCfWindow(theSelectedText);</span></div>
<div id="_mcePaste"><span style="color:#ff0000;"> }</span></div>
<div id="_mcePaste"><span style="color:#ff0000;"> },</span></div>
<div><span style="color:#ff0000;"> //Section 2 : Create the button and add the functionality to it</span></div>
<div id="_mcePaste"><span style="color:#ff0000;"> b=&#8217;linkbutton&#8217;;</span></div>
<div id="_mcePaste"><span style="color:#ff0000;"> CKEDITOR.plugins.add(b,{</span></div>
<div id="_mcePaste"><span style="color:#ff0000;"> init:function(editor){</span></div>
<div id="_mcePaste"><span style="color:#ff0000;"> editor.addCommand(b,a);</span></div>
<div id="_mcePaste"><span style="color:#ff0000;"> editor.ui.addButton(&#8216;linkbutton&#8217;,{</span></div>
<div id="_mcePaste"><span style="color:#ff0000;"> label:&#8217;Link Button&#8217;, </span></div>
<div id="_mcePaste"><span style="color:#ff0000;"> icon: this.path + &#8216;logo_ckeditor.png&#8217;,</span></div>
<div id="_mcePaste"><span style="color:#ff0000;"> command:b</span></div>
<div id="_mcePaste"><span style="color:#ff0000;"> });</span></div>
<div id="_mcePaste"><span style="color:#ff0000;"> }</span></div>
<div id="_mcePaste"><span style="color:#ff0000;"> }); </span></div>
<div id="_mcePaste"><span style="color:#ff0000;">})();</span></div>
</div>
<div>Note in the above code in Section 1  <strong>var a</strong> will contain the functionality to execute when the button is pressed. Here we are creating a coldfusion window and pass the selected text from the ckeditor.<span style="color:#ff0000;"><span style="color:#000000;"> In Section 2 we create the button and add the functionality to it. We also give the path of the image that needs to be shown in the toolbar for the button. Here it is <span style="color:#ff0000;">logo_ckeditor.png <span style="color:#000000;">and is inside the linkbutton folder.</span></span></span></span></div>
<div>Next open the <strong>ckeditor/ckeditor.js</strong> file and search for <span style="color:#993300;">&#8216;about</span>&#8216; in the file. It will find a place where all the plugins are registered. Add your plugin name(here linkbutton) here.</div>
<div></div>
<div><span style="color:#ff00ff;">UPDATE</span>: Actually you don&#8217;t need to edit the ckeditor.js file as this will not work when a newer version comes. You can instead edit the config.js and add the plugin name there.</div>
<div><span style="font-family:Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif;line-height:18px;font-size:14px;border-collapse:collapse;white-space:pre;"><span class="pln" style="font-size:14px;vertical-align:baseline;background-image:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;background-repeat:initial initial;border:0 initial initial;margin:0;padding:0;">config</span><span class="pun" style="font-size:14px;vertical-align:baseline;background-image:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;background-repeat:initial initial;border:0 initial initial;margin:0;padding:0;">.</span><span class="pln" style="font-size:14px;vertical-align:baseline;background-image:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;background-repeat:initial initial;border:0 initial initial;margin:0;padding:0;">extraPlugins </span><span class="pun" style="font-size:14px;vertical-align:baseline;background-image:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;background-repeat:initial initial;border:0 initial initial;margin:0;padding:0;">=</span><span class="pln" style="font-size:14px;vertical-align:baseline;background-image:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;background-repeat:initial initial;border:0 initial initial;margin:0;padding:0;"> </span><span class="str" style="font-size:14px;vertical-align:baseline;background-image:initial;background-attachment:initial;background-color:transparent;color:maroon;background-position:initial initial;background-repeat:initial initial;border:0 initial initial;margin:0;padding:0;">&#8216;pluginX,pluginY,yourPluginNameHere&#8217;</span><span class="pun" style="font-size:14px;vertical-align:baseline;background-image:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;background-repeat:initial initial;border:0 initial initial;margin:0;padding:0;">;</span><span class="pln" style="font-size:14px;vertical-align:baseline;background-image:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;background-repeat:initial initial;border:0 initial initial;margin:0;padding:0;"> </span></span></div>
<div>Go to this <a href="http://stackoverflow.com/questions/1957156/ckeditor-how-to-add-a-custom-button-to-the-toolbar-that-calls-a-javascript-funct" target="_blank">link </a>for more reference.</div>
<div></div>
<div>Now open the <strong>ckeditor/config.js</strong> file and add your plugin name (here linkbutton) to the toolbar definition.</div>
<div>Note: The name given for the plugin should be consistent everywhere. The folder structure will look as below:-</div>
<div><a href="http://ajithmanmadhan.files.wordpress.com/2009/12/ckeditorfolderstructure.jpg"><img class="alignnone size-full wp-image-178" title="ckeditorfolderstructure" src="http://ajithmanmadhan.files.wordpress.com/2009/12/ckeditorfolderstructure.jpg?w=439&#038;h=153" alt="" width="439" height="153" /></a></div>
<div>That&#8217;s it!! We created a new plugin for our Ckeditor. For wrapping the anchor tag around the selected text we use the following code:-</div>
<div>
<div><span style="color:#ff0000;">function FormatEditorText()</span></div>
<div><span style="white-space:pre;"><span style="color:#ff0000;"> </span></span><span style="color:#ff0000;">{</span></div>
<div><span style="white-space:pre;"><span style="color:#ff0000;"> </span></span><span style="color:#ff0000;"> </span></div>
<div><span style="white-space:pre;"><span style="color:#ff0000;"> </span></span><span style="color:#ff0000;">var myEditor = CKEDITOR.instances.editor1;</span></div>
<div><span style="white-space:pre;"><span style="color:#ff0000;"> </span></span></div>
<div><span style="white-space:pre;"><span style="color:#ff0000;"> </span></span><span style="color:#ff0000;">var theSelectedText = document.getElementById(&#8216;txtSelected&#8217;).value;</span></div>
<div><span style="white-space:pre;"><span style="color:#ff0000;"> </span></span><span style="color:#ff0000;">var theAnchorText = document.getElementById(&#8216;txtAnchor&#8217;).value;</span></div>
<div><span style="white-space:pre;"><span style="color:#ff0000;"> </span></span><span style="color:#ff0000;">var FormattedText = &#8216;&lt;a href=&#8221;&#8216;+theAnchorText+&#8217;&#8221;&gt;&#8217;+theSelectedText+&#8217;&lt;/a&gt;&#8217;;</span></div>
<div><span style="white-space:pre;"><span style="color:#ff0000;"> </span></span></div>
<div><span style="white-space:pre;"><span style="color:#ff0000;"> </span></span><span style="color:#ff0000;">myEditor.insertHtml(FormattedText);</span></div>
<div><span style="white-space:pre;"><span style="color:#ff0000;"> </span></span></div>
<div><span style="white-space:pre;"><span style="color:#ff0000;"> </span></span></div>
<div><span style="white-space:pre;"><span style="color:#ff0000;"> </span></span><span style="color:#ff0000;">}</span></div>
</div>
<div>Helpful links :</div>
<div><a href="http://cksource.com/forums/viewtopic.php?f=11&amp;t=16306&amp;hilit=+get+name+toolbar+button" target="_blank">http://cksource.com/forums/viewtopic.php?f=11&amp;t=16306&amp;hilit=+get+name+toolbar+button</a></div>
<div><a href="http://cksource.com/forums/viewtopic.php?f=11&amp;t=16149&amp;hilit=get+selected+text&amp;sid=ebf293139b6f0777b285369a136ae819" target="_blank">http://cksource.com/forums/viewtopic.php?f=11&amp;t=16149&amp;hilit=get+selected+text&amp;sid=ebf293139b6f0777b285369a136ae819</a></div>
<div><a href="http://blog.tommed.co.uk/2009/09/07/how-to-create-a-ckeditor-v3-plugin" target="_blank">http://blog.tommed.co.uk/2009/09/07/how-to-create-a-ckeditor-v3-plugin</a></div>
<div><a href="http://cksource.com/forums/viewtopic.php?f=11&amp;t=15539&amp;hilit=creating+a+custom+button" target="_blank">http://cksource.com/forums/viewtopic.php?f=11&amp;t=15539&amp;hilit=creating+a+custom+button</a></div>
<div><a href="http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.html" target="_blank">http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.html</a></div>
<div><a href="http://syrinx.ph/articles/CkEditorPluginGuide.aspx" target="_blank">http://syrinx.ph/articles/CkEditorPluginGuide.aspx</a></div>
<div>I will post a live sample soon <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> .</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ajithmanmadhan.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ajithmanmadhan.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ajithmanmadhan.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ajithmanmadhan.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ajithmanmadhan.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ajithmanmadhan.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ajithmanmadhan.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ajithmanmadhan.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ajithmanmadhan.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ajithmanmadhan.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ajithmanmadhan.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ajithmanmadhan.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ajithmanmadhan.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ajithmanmadhan.wordpress.com/177/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajithmanmadhan.wordpress.com&amp;blog=4454903&amp;post=177&amp;subd=ajithmanmadhan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ajithmanmadhan.wordpress.com/2009/12/16/customizing-ckeditor-and-adding-a-new-toolbar-button/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d1dcc778da3e6f6a38a794808752132d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ajithmanmu</media:title>
		</media:content>

		<media:content url="http://ajithmanmadhan.files.wordpress.com/2009/12/ckeditorfolderstructure.jpg" medium="image">
			<media:title type="html">ckeditorfolderstructure</media:title>
		</media:content>
	</item>
		<item>
		<title>A Simple Jquery Twitter Widget</title>
		<link>http://ajithmanmadhan.wordpress.com/2009/10/04/a-simple-jquery-twitter-widget/</link>
		<comments>http://ajithmanmadhan.wordpress.com/2009/10/04/a-simple-jquery-twitter-widget/#comments</comments>
		<pubDate>Sun, 04 Oct 2009 15:45:48 +0000</pubDate>
		<dc:creator>ajithmanmu</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[widget]]></category>

		<guid isPermaLink="false">http://ajithmanmadhan.wordpress.com/?p=157</guid>
		<description><![CDATA[Twitter is familiar for all of us now&#8230;Listing twitter feeds using Jquery will be fun as well&#8230;Let&#8217;s create a Jquery &#8211; Twitter widget that can be used in our website.  I have only started off with learning Jquery. So i guess  this might be easy for beginners of Jquery&#8230; Our Jquery-Twitter widget will have 3 tabs. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajithmanmadhan.wordpress.com&amp;blog=4454903&amp;post=157&amp;subd=ajithmanmadhan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Twitter is familiar for all of us now&#8230;Listing twitter feeds using Jquery will be fun as well&#8230;Let&#8217;s create a Jquery &#8211; Twitter widget that can be used in our website.  I have only started off with learning Jquery. So i guess  this might be easy for beginners of Jquery&#8230;</p>
<p>Our Jquery-Twitter widget will have 3 tabs. The first tab will show the public twitter timeline (means the 20 most recent statuses from non-protected users). The next tab shows the latest 5 tweets of the user and the final tab shows the Twitter profile info of the user.</p>
<p>The first step is to create the Jquery widget. Later we will call the Twitter feeds using inbuilt ajax functions of Jquery.</p>
<p>Step 1 : Creating the Jquery Widget</p>
<p>Creating a Jquery Widget have been wonderfully explained in Webitect. You can refer that tutorial <a href="http://webitect.net/tutorials/create-a-graceful-jquery-tabbed-widget-in-5-easy-steps/" target="_blank">here</a>.  Below is my version.</p>
<p>Create an HTML page with the following code:-</p>
<p><code> </code></p>
<p><code> </code></p>
<p><code> </code></p>
<p><code> </code></p>
<p><code></p>
<div style="background-color:#f5f5f5;">
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">&lt;head&gt;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">&lt;script src="js/jquery-1.3.2.min.js" type="text/javascript"&gt;&lt;/script&gt;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">&lt;/head&gt;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">&lt;body&gt;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">&lt;div id="sidebar"&gt;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">&lt;div&gt;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">&lt;h5&gt;Public&lt;/h5&gt;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">&lt;/div&gt;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">&lt;div&gt;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">&lt;h5&gt;Mine&lt;/h5&gt;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">&lt;/div&gt;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">&lt;div&gt;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">&lt;h5&gt;About Me&lt;/h5&gt;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">&lt;/div&gt;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">&lt;/div&gt;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">&lt;/body&gt;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">&lt;/html&gt;</div>
<div style="background-color:#f5f5f5;">&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt;</div>
<div style="background-color:#f5f5f5;">&lt;head&gt;</div>
<div style="background-color:#f5f5f5;">&lt;script src="js/jquery-1.3.2.min.js" type="text/javascript"&gt;&lt;/script&gt;</div>
<div style="background-color:#f5f5f5;">&lt;/head&gt;</div>
<div style="background-color:#f5f5f5;">&lt;body&gt;</div>
<div style="background-color:#f5f5f5;">&lt;div id="sidebar"&gt;</div>
<div style="background-color:#f5f5f5;">&lt;div class="widget"&gt;</div>
<div style="background-color:#f5f5f5;">&lt;h5&gt;Public&lt;/h5&gt;</div>
<div style="background-color:#f5f5f5;">&lt;/div&gt;</div>
<div style="background-color:#f5f5f5;">&lt;div class="widget"&gt;</div>
<div style="background-color:#f5f5f5;">&lt;h5&gt;Mine&lt;/h5&gt;</div>
<div style="background-color:#f5f5f5;">&lt;/div&gt;</div>
<div style="background-color:#f5f5f5;">&lt;div class="widget"&gt;</div>
<div style="background-color:#f5f5f5;">&lt;h5&gt;About Me&lt;/h5&gt;</div>
<div style="background-color:#f5f5f5;">&lt;/div&gt;</div>
<div style="background-color:#f5f5f5;">&lt;/div&gt;</div>
<div style="background-color:#f5f5f5;">&lt;/body&gt;</div>
<div style="background-color:#f5f5f5;">&lt;/html&gt;</div>
</div>
<p></code></p>
<p>Here we include the jquery library inside the script tag. We then create the skeletal structure of our widget. The three divs corresponds to three tabs. We give the title for each tab in the &lt;h5&gt; tag.</p>
<p>So the basic structure is ready. Now let&#8217;s use Jquery to create a tabbed appearence.<br />
<code><br />
<span style="font-family:0;"> </span></code></p>
<p><code> </code></p>
<p><code> </code></p>
<p><code> </code></p>
<p><code></p>
<div style="background-color:#f5f5f5;">$(document).ready(function(){</div>
<div style="background-color:#f5f5f5;">
<div style="background-color:#f5f5f5;">var newWidget="&lt;div class='widget-wrapper'&gt;&lt;ul class='tab-wrapper'&gt;&lt;/ul&gt;&lt;div class='new-widget'&gt;&lt;/div&gt;&lt;/div&gt;";</div>
<div style="background-color:#f5f5f5;">$(".widget").hide();</div>
<div style="background-color:#f5f5f5;">$(".widget:first").before(newWidget);</div>
<div style="background-color:#f5f5f5;">$(".widget &gt; ul").each(function(){</div>
<div style="background-color:#f5f5f5;">$(".tab-wrapper").append("&lt;li class='tab'&gt;"+this.id+"&lt;/li&gt;");</div>
<div style="background-color:#f5f5f5;">$(this).appendTo(".new-widget");</div>
<div style="background-color:#f5f5f5;"><span style="white-space:pre;"> </span>});</div>
<div style="background-color:#f5f5f5;">});</div>
</div>
<p></code></p>
<p>The above code runs as soon as the page runs. Here we are creating a main div (with class name <span style="font-family:0;">widget-wrapper<span style="font-family:Georgia;">) that holds the Widget. Inside this main div we create a unordered list with class <span style="font-family:0;">tab-wrapper <span style="font-family:Georgia;">that holds the tab name and then another div with class name <span style="font-family:0;">new-widget<span style="font-family:Georgia;"> that holds the content inside each tab. We create an html string for these and assigns to a variable <span style="font-family:0;">newWidget<span style="font-family:Georgia;">.  Next step is to  hide all elements with class name <span style="font-family:0;">widget </span>. Now, we’ll use the first widget as a reference point to insert our tabbed container, using the jQuery before() function. </span></span></span></span></span></span></span></span></p>
<p>Now we will loop thru each unordered lists inside a div with class widget and then append a list with class &#8220;tab&#8221; and the text inside the &lt;li&gt; as the id of each &lt;ul&gt;. Please note that the id of each &lt;ul&gt; will be shown as the tab header.</p>
<p>So our Jquery widget is created in  tabbed format with no content in it.  Let&#8217;s fill each tabs with twitter content while clicking the tab header. We use separate  twitter API methods to fill the content for each tab.  The code is as below:-<br />
<code><br />
<span style="font-family:monospace;"> </span></code></p>
<p><code></p>
<div style="background-color:#f5f5f5;">
<div style="background-color:#f5f5f5;">$(".tab").click(function(){</div>
<div style="background-color:#f5f5f5;"><span style="white-space:pre;"> </span></div>
<div style="background-color:#f5f5f5;">var obj = this;<span style="white-space:pre;"> </span></div>
<div style="background-color:#f5f5f5;"><span style="white-space:pre;"> </span></div>
<div style="background-color:#f5f5f5;">if($(obj).text() == 'public')</div>
<div style="background-color:#f5f5f5;">{</div>
<div style="background-color:#f5f5f5;">var url ="http://twitter.com/statuses/public_timeline.json?callback=?";</div>
<div style="background-color:#f5f5f5;">}</div>
<div style="background-color:#f5f5f5;">else if($(obj).text() == 'mine')</div>
<div style="background-color:#f5f5f5;">{</div>
<div style="background-color:#f5f5f5;">var url = "http://twitter.com/status/user_timeline/ajithmanmu.json?count=5&amp;callback=?";</div>
<div style="background-color:#f5f5f5;">}</div>
<div style="background-color:#f5f5f5;">else</div>
<div style="background-color:#f5f5f5;">{</div>
<div style="background-color:#f5f5f5;">var url = "http://twitter.com/users/show/ajithmanmu.json?callback=?";</div>
<div style="background-color:#f5f5f5;">}</div>
<div style="background-color:#f5f5f5;"><span style="white-space:pre;"> </span></div>
<div style="background-color:#f5f5f5;">$.getJSON(url,{obj:obj},</div>
<div style="background-color:#f5f5f5;">function(data){</div>
<div style="background-color:#f5f5f5;"><span style="white-space:pre;"> </span> <span style="white-space:pre;"> </span></div>
<div style="background-color:#f5f5f5;">$("#"+$(obj).text()).html('');</div>
<div style="background-color:#f5f5f5;">var mystr = '';</div>
<div style="background-color:#f5f5f5;">if($(obj).text() == 'about')</div>
<div style="background-color:#f5f5f5;">{</div>
<div style="background-color:#f5f5f5;">mystr = "&lt;li&gt;&lt;table&gt;&lt;tr&gt;&lt;td&gt;"+"&lt;img src='"+data.profile_image_url+"'&gt;"+"&lt;/td&gt;&lt;td&gt;"+data.friends_count+" following&lt;/td&gt;&lt;td&gt;"+data.followers_count+" followers&lt;/td&gt;&lt;/tr&gt;"</div>
<div style="background-color:#f5f5f5;">mystr = mystr + "&lt;tr&gt;&lt;td&gt;"+data.name+"&lt;/td&gt;&lt;/tr&gt;"</div>
<div style="background-color:#f5f5f5;">mystr = mystr + "&lt;tr&gt;&lt;td&gt;"+data.description+"&lt;/td&gt;&lt;/tr&gt;"</div>
<div style="background-color:#f5f5f5;">mystr = mystr + "&lt;tr&gt;&lt;td&gt;&lt;a href='"+data.url+ "' target='_blank'&gt;Website&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;"</div>
<div style="background-color:#f5f5f5;">mystr = mystr + "&lt;tr&gt;&lt;td&gt;&lt;img src='twitter-bird-2.png' height='60px' width='40px'/&gt;&lt;/td&gt;&lt;td&gt;&lt;a href='http://twitter.com/ajithmanmu'&gt;Follow Me&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/li&gt;"</div>
<div style="background-color:#f5f5f5;"><span style="white-space:pre;"> </span></div>
<div style="background-color:#f5f5f5;">}</div>
<div style="background-color:#f5f5f5;">else{</div>
<div style="background-color:#f5f5f5;"><span style="white-space:pre;"> </span></div>
<div style="background-color:#f5f5f5;">$(data).each(function(i,tweetobj)</div>
<div style="background-color:#f5f5f5;"><span style="white-space:pre;"> </span>{</div>
<div style="background-color:#f5f5f5;"><span style="white-space:pre;"> </span> if(mystr == '')</div>
<div style="background-color:#f5f5f5;"><span style="white-space:pre;"> </span> {mystr = "&lt;li&gt;"+"&lt;img src='"+tweetobj.user["profile_image_url"]+"'&gt;"+tweetobj.text+"&lt;/li&gt;"</div>
<div style="background-color:#f5f5f5;"><span style="white-space:pre;"> </span> }</div>
<div style="background-color:#f5f5f5;">else</div>
<div style="background-color:#f5f5f5;"><span style="white-space:pre;"> </span> {</div>
<div style="background-color:#f5f5f5;"><span style="white-space:pre;"> </span> mystr = mystr + "&lt;li&gt;"+"&lt;img src='"+tweetobj.user["profile_image_url"]+"'&gt;"+tweetobj.text+"&lt;/li&gt;"</div>
<div style="background-color:#f5f5f5;">}</div>
<div style="background-color:#f5f5f5;">})}</div>
<div style="background-color:#f5f5f5;">$("#"+$(obj).text()).append(mystr);</div>
<div style="background-color:#f5f5f5;">$(".new-widget &gt; ul").hide();</div>
<div style="background-color:#f5f5f5;">$('#'+$(obj).text()).show();</div>
<div style="background-color:#f5f5f5;">$(".tab").removeClass("active-tab");</div>
<div style="background-color:#f5f5f5;">$(obj).addClass("active-tab");</div>
<div style="background-color:#f5f5f5;"><span style="white-space:pre;"> </span>});</div>
<div style="background-color:#f5f5f5;">});</div>
</div>
<p></code><br />
The <span style="font-family:monospace;">getJSON function calls the required twitter method and then generates the html content inside its success function.</span></p>
<p>Also make sure that on page load one tab always needs to be  selected. For that just before the closing of the $(document).ready function give the following code:-<br />
<code><br />
<span style="font-family:monospace;"> </span></code></p>
<p><code></p>
<div style="background-color:#f5f5f5;">$(".tab:first").click();</div>
<p></code><br />
So we have created a simple Jquery-Twitter widget. I hope its not very confusing for u&#8230;.If you have any queries please feel free to get back in touch.</p>
<p>You can see a running example <a href="http://newcfexamples.ajithmanmu.staxapps.net/pages/jquerywidget.html" target="_blank">here</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ajithmanmadhan.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ajithmanmadhan.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ajithmanmadhan.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ajithmanmadhan.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ajithmanmadhan.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ajithmanmadhan.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ajithmanmadhan.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ajithmanmadhan.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ajithmanmadhan.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ajithmanmadhan.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ajithmanmadhan.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ajithmanmadhan.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ajithmanmadhan.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ajithmanmadhan.wordpress.com/157/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajithmanmadhan.wordpress.com&amp;blog=4454903&amp;post=157&amp;subd=ajithmanmadhan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ajithmanmadhan.wordpress.com/2009/10/04/a-simple-jquery-twitter-widget/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d1dcc778da3e6f6a38a794808752132d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ajithmanmu</media:title>
		</media:content>
	</item>
		<item>
		<title>Ajax call in ModelGlue without rendering a view</title>
		<link>http://ajithmanmadhan.wordpress.com/2009/08/10/ajax-call-in-modelglue-without-rendering-a-view/</link>
		<comments>http://ajithmanmadhan.wordpress.com/2009/08/10/ajax-call-in-modelglue-without-rendering-a-view/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 17:50:40 +0000</pubDate>
		<dc:creator>ajithmanmu</dc:creator>
				<category><![CDATA[cold fusion]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[Model Glue]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[coldfusion]]></category>
		<category><![CDATA[ModelGlue]]></category>

		<guid isPermaLink="false">http://ajithmanmadhan.wordpress.com/?p=149</guid>
		<description><![CDATA[Making an Ajax call is simple and straight forward in ModelGlue.  The concept is simple and is given in detail in Doug&#8217;s blog. Read the full tutorial. In ModelGlue(2) to call the Ajax call we need to have a view. i.e a page needs to be created to act as the view. This is in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajithmanmadhan.wordpress.com&amp;blog=4454903&amp;post=149&amp;subd=ajithmanmadhan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Making an Ajax call is simple and straight forward in <a href="http://www.model-glue.com/index.cfm?mode=entry&amp;entry=FA2A2669-E081-2BAC-6979D3478AEDC219" target="_blank">ModelGlue</a>.  The concept is simple and is given in detail in Doug&#8217;s blog. <a href="http://www.dougboude.com/blog/1/2007/03/Using-Ajax-with-ModelGlue--its-really-quite-simple.cfm" target="_blank">Read the full tutorial</a>.</p>
<p>In ModelGlue(2) to call the Ajax call we need to have a view. i.e a page needs to be created to act as the view. This is in need if we are using the Ajax call to dynamically load HTML content. The Javascript receives the rendered view and does whatever it was told to do with it. But however there are times when we do not want to have a view rendered for our event(i.e our Ajax call). We simply want to return a value from server(it can even be a mere checking..!!) and assign it to a Javascript variable. For this simple purpose we do not want to create a new page/view.</p>
<p>In order to accomplish this we will have to break the ModelGlue architecture (till now..i couldn&#8217;t find any other suitable methods). Anyone who is familiar to ModelGlue architecture will find it easy to understand the below code.</p>
<p>My ModelGlue event:</p>
<pre style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:#f5f5f5;font-family:Consolas, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New';width:auto;max-height:600px;background-position:initial initial;border:0 initial initial;margin:0 0 10px;padding:5px;"><code style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;font-family:Consolas, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New';background-position:initial initial;border:0 initial initial;margin:0;padding:0;"><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">&lt;</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:maroon;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">event-handler</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;"> </span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:red;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">name</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">=</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:blue;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">"test.testFunction"</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">&gt;          </span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">
     </span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">&lt;</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:maroon;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">broadcasts</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">&gt;</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">
          </span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">&lt;</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:maroon;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">message</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;"> </span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:red;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">name</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">=</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:blue;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">"testFunction"</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;"> </span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">/&gt;</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">
     </span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">&lt;/</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:maroon;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">broadcasts</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">&gt;</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">
</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">&lt;/</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:maroon;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">event-handler</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">&gt;                    </span></code></pre>
<p>Please note that i am not using a view in this event.</p>
<p>And my controller function:-</p>
<pre style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:#d9f5d9;font-family:Consolas, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New';width:auto;max-height:600px;background-position:initial initial;border:0 initial initial;margin:0 0 10px;padding:5px;">
<pre style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:#d9f5d9;font-family:Consolas, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New';width:auto;max-height:600px;background-position:initial initial;border:0 initial initial;margin:0 0 10px;padding:5px;"><code style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;font-family:Consolas, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New';background-position:initial initial;border:0 initial initial;margin:0;padding:0;"><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">&lt;</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:maroon;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">cffunction</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;"> </span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:red;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">name</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">=</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:blue;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">"testFunction"</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;"> </span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:red;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">returnType</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">=</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:blue;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">"any"</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;"> </span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:red;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">output</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">=</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:blue;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">"true"</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;"> </span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">&gt;</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">    
</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">&lt;</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:maroon;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">cfargument</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;"> </span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:red;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">name</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">=</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:blue;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">"event"</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;"> </span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:red;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">type</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">=</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:blue;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">"any"</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;"> </span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:red;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">required</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">=</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:blue;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">"true"</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">&gt;</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">        

</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">&lt;</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:maroon;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">cfset</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;"> </span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:red;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">justtest</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;"> </span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">=</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;"> </span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:blue;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">1</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">&gt;</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">

</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">&lt;</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:maroon;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">CFCONTENT</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;"> </span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:red;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">TYPE</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">=</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:blue;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">"text"</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;"> </span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:red;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">RESET</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">=</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:blue;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">"Yes"</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">&gt;&lt;</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:maroon;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">CFOUTPUT</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">&gt;</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">#serializeJSON(justTest)#
</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">&lt;</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:maroon;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">cfset</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;"> </span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:red;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">request</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">.</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:red;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">modelGlueSuppressDebugging</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;"> </span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">=</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;"> </span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:blue;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">true</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;"> </span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">/&gt;</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">
</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">&lt;</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:maroon;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">cfsetting</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;"> </span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:red;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">showdebugoutput</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">=</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:blue;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">"false"</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;"> </span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">/&gt;&lt;/</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:maroon;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">CFOUTPUT</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">&gt;&lt;</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:maroon;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">cfabort</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">&gt;</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">

</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">&lt;/</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:maroon;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">cffunction</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;background-position:initial initial;border:0 initial initial;margin:0;padding:0;">&gt;</span></code></pre>
</pre>
<p>Here we are converting the justtest variable in JSON format and outputting via cfcontent. Here cfcontent acts as the rendered view and returns justtest in JSON format. Here aborting at the end of controller function can be considered as breaking the ModelGlue archi , but this is one way around to solve the problem.</p>
<p>By the way here is my Ajax call:-</p>
<pre style="font:normal normal normal 12px/18px Consolas, Monaco, 'Courier New', Courier, monospace;font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:#f5f5f5;font-family:Consolas, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New';width:auto;max-height:600px;margin:0 0 10px;padding:5px;"><code style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;font-family:Consolas, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New';margin:0;padding:0;"><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:#00008b;margin:0;padding:0;">new</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;margin:0;padding:0;"> </span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:#2b91af;margin:0;padding:0;">Ajax</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;margin:0;padding:0;">.</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:#2b91af;margin:0;padding:0;">Request</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;margin:0;padding:0;">(</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;margin:0;padding:0;">root</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;margin:0;padding:0;">+</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:maroon;margin:0;padding:0;">'test.testFunction'</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;margin:0;padding:0;">,{</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;margin:0;padding:0;">
  method</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;margin:0;padding:0;">:</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;margin:0;padding:0;"> </span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:maroon;margin:0;padding:0;">'post'</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;margin:0;padding:0;">,</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;margin:0;padding:0;">
  parameters</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;margin:0;padding:0;">:</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;margin:0;padding:0;"> </span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;margin:0;padding:0;">{</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;margin:0;padding:0;">param1</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;margin:0;padding:0;">:</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;margin:0;padding:0;">paramval</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;margin:0;padding:0;">},</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;margin:0;padding:0;">
  onSuccess</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;margin:0;padding:0;">:</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;margin:0;padding:0;"> </span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:#00008b;margin:0;padding:0;">function</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;margin:0;padding:0;">(</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;margin:0;padding:0;">response</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;margin:0;padding:0;">){</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;margin:0;padding:0;">
    alert</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;margin:0;padding:0;">(</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;margin:0;padding:0;">response</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;margin:0;padding:0;">.</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;margin:0;padding:0;">responseText</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;margin:0;padding:0;">);</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;margin:0;padding:0;">
    </span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:#00008b;margin:0;padding:0;">var</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;margin:0;padding:0;"> myresult </span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;margin:0;padding:0;">=</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;margin:0;padding:0;"> response</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;margin:0;padding:0;">.</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;margin:0;padding:0;">responseText</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;margin:0;padding:0;">;</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;margin:0;padding:0;">
  </span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;margin:0;padding:0;">}</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;margin:0;padding:0;">
</span><span style="font-size:14px;vertical-align:baseline;background-image:initial;background-repeat:initial;background-attachment:initial;background-color:transparent;color:black;margin:0;padding:0;">});</span></code></pre>
<p>I am making use of <a href="http://www.prototypejs.org/" target="_blank">prototype</a> library for this.</p>
<p>We will get 1 if we alert the responseText call back from the server.</p>
<p>This is only applicable to ModelGlue2. If you are using ModelGlue3 then you would also need to check out <a href="http://docs.model-glue.com/wiki/HowTos/Formats" target="_blank">how to use fomats in MG3</a>. Thanks Ray Camdon for sharing this link.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ajithmanmadhan.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ajithmanmadhan.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ajithmanmadhan.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ajithmanmadhan.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ajithmanmadhan.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ajithmanmadhan.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ajithmanmadhan.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ajithmanmadhan.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ajithmanmadhan.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ajithmanmadhan.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ajithmanmadhan.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ajithmanmadhan.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ajithmanmadhan.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ajithmanmadhan.wordpress.com/149/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajithmanmadhan.wordpress.com&amp;blog=4454903&amp;post=149&amp;subd=ajithmanmadhan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ajithmanmadhan.wordpress.com/2009/08/10/ajax-call-in-modelglue-without-rendering-a-view/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d1dcc778da3e6f6a38a794808752132d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ajithmanmu</media:title>
		</media:content>
	</item>
		<item>
		<title>Removing viewstate values in ModelGlue</title>
		<link>http://ajithmanmadhan.wordpress.com/2009/08/05/removing-viewstate-values-in-modelglue/</link>
		<comments>http://ajithmanmadhan.wordpress.com/2009/08/05/removing-viewstate-values-in-modelglue/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 17:38:02 +0000</pubDate>
		<dc:creator>ajithmanmu</dc:creator>
				<category><![CDATA[cold fusion]]></category>
		<category><![CDATA[Model Glue]]></category>
		<category><![CDATA[coldfusion]]></category>
		<category><![CDATA[ModelGlue]]></category>
		<category><![CDATA[viewstate]]></category>

		<guid isPermaLink="false">http://ajithmanmadhan.wordpress.com/?p=147</guid>
		<description><![CDATA[A quick blog post on removing viewstate values in Model Glue&#8230;everyone knows  about this, but i didn&#8217;t find any useful reference while googling this&#8230;also for my reference as well just in case i forget&#8230; Removing a value from the viewstate: &#60;!--- Here key is the name of the value you want to remove---&#62; viewstate.removeValue('key')<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajithmanmadhan.wordpress.com&amp;blog=4454903&amp;post=147&amp;subd=ajithmanmadhan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A quick blog post on removing viewstate values in Model Glue&#8230;everyone knows  about this, but i didn&#8217;t find any useful reference while googling this&#8230;also for my reference as well just in case i forget&#8230;</p>
<p>Removing a value from the viewstate:</p>
<pre style="width:auto;font-size:14px;float:left;clear:both;font-style:normal;font-variant:normal;font-weight:normal;line-height:18px;vertical-align:baseline;background-color:#f5f5f5;font-family:Consolas, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New';max-height:600px;margin:0 0 10px;padding:5px;"><span style="color:#00008b;margin:0;padding:0;"><span style="color:#808080;margin:0;padding:0;">&lt;!--- Here key is the name of the value you want to remove---&gt;</span>
viewstate.removeValue('<span style="color:#ff0000;">key</span>')</span><span style="color:#00008b;margin:0;padding:0;">
</span></pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ajithmanmadhan.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ajithmanmadhan.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ajithmanmadhan.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ajithmanmadhan.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ajithmanmadhan.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ajithmanmadhan.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ajithmanmadhan.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ajithmanmadhan.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ajithmanmadhan.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ajithmanmadhan.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ajithmanmadhan.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ajithmanmadhan.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ajithmanmadhan.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ajithmanmadhan.wordpress.com/147/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajithmanmadhan.wordpress.com&amp;blog=4454903&amp;post=147&amp;subd=ajithmanmadhan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ajithmanmadhan.wordpress.com/2009/08/05/removing-viewstate-values-in-modelglue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d1dcc778da3e6f6a38a794808752132d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ajithmanmu</media:title>
		</media:content>
	</item>
	</channel>
</rss>
