Wednesday, November 9, 2011

New Experts Exchange Look - Beta

Small Experts Exchange VIP Badge

Friday, July 15, 2011

Wednesday, April 13, 2011

Consuming Webservice using ColdFusion and SOAP

This is something that has been killing me for sometime, a while back I got a webserive which was required to be called by ColdFusion. All the methods in the webservice used COMPLEX type and it was a pain to use CFINVOKE to consume it, just too much of JAVACAST and other checks, still did not work.

Then I got a post which said to use CFHTTP with SOAP. But the issue was how to generate the SOAP headers ??

Found link, here you can just give the WSDL url and the method name, it will generate the required SOAP header that needs to be send to consume it.. sweet.. that is what I wanted.

Then you can do

<cfsavecontent variable="soap"> 
<cfhttp url="http://YourWebServiceURL(do not include ?wsdl)" method="post">
  <cfhttpparam type="header" name="content-type" value="text/xml"> 
    <cfhttpparam type="header" name="SOAPAction" value=""> 
    <cfhttpparam type="header" name="content-length" value="#len(soap)#"> 
    <cfhttpparam type="header" name="charset" value="utf-8"> 
    <cfhttpparam type="xml" name="message" value="#trim(soap)#">  

Monday, March 14, 2011

HTML 5 - Video

My First experience with HTML5, a client came back and said that he cannot see his flash video on iPad, of course, you can't watch flash on ipad, iphone, ipods.. because Apple says that it's buggy and in past has caused lot of Apple system to crash. So what's the solution - HTML 5.

Well, HTML5 is still in development and there is no standard per say and IE has only added support to it in IE9, that too it does not ship the codes, you need to download them. Basically you will need to convert your .swf to .ogg(for FF and Chrome) and .mp4 (for Apple).

Then, add code which allows flash fall back for IE.

Below is the code

<video id="movie" width="700" height="467" preload controls>
  <source src="cassic.ogv" type='video/ogg; codecs="theora, vorbis"' />
  <source src="cassic.mp4" />
  <object width="700" height="467" type="application/x-shockwave-flash"
    <param name="movie" value="cassic.swf" /> 
    <param name="allowfullscreen" value="true" /> 
    <param name="flashvars" value='config={"clip": {"url": "", "autoPlay":false, "autoBuffering":true}}' /> 
    <p>Download video as <a href="pr6.mp4">MP4</a>.</p> 
  var v = document.getElementById("movie");
  v.onclick = function() {
    if (v.paused) {;
    } else {

Wednesday, March 9, 2011

WordPress - Adding Events Page

I have been working with Open Source PHP based CMS systems recently, WordPress and Joomla and to be frank they are NOT very user friendly, most of the simple setting require someone with programming knowledge.

The client asked for an events page. Here is how you can add it.

1. Download the events-page plugin, I used Download it and install it using wp-admin and activate the plugin after installing.

2. Then create an events.php file, instructions are there on the page, but this is what I had, a very simple one

Template Name: Events

<?php get_header(); ?>
<?php get_footer(); ?>

3. Add the events.php to your /wp-contents/theme/your-theme directory.

4. Create a new post, lets call it events, and assign it to the template call events (this will appear on right hand side under templates).

5. Done !

Friday, March 4, 2011

cfchart - flash format with cfwindow

Question - "The IE 8 Specific issue is that the pie chart stays on top so that it blocks that portion of the cfwindow screen and its contents"

The issue here is that if you are using flash format in cfchart and have a cfwindow, it does NOT show the contents of the window, but FLASH chart is shown, below is how to resolve this issue.

<!--- Do some preprocessing --->
     <cfchart pieslicestyle="solid" format="flash" showborder="no" name="data">
     <cffile action="write" file="#expandPath('./cfchart.swf')#" output="#data#">
<!--- End of saving chart as Binary --->

<!--- EMBED It as OBJECT and use wmode as transparent --->
<cfajaximport tags="cfform">

<cfpod title="My Work Load" height="700" width="900">
    <cfdiv id="MyWorkLoad">

        <cfform name="myform">
            <cfinput type="button" name="mybutton3" value="Add Experience" onclick="'ProjectReviewWindow')">
        <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=",0,40,0" width="300" height="300" id="mymoviename">
        <param name="movie" value="cfchart.swf" /> 
        <param name="quality" value="high" />
        <param name="bgcolor" value="#ffffff" />
        <param name="wmode" value="transparent" />
        <embed src="cfchart.swf" quality="high" bgcolor="#ffffff" width="300" height="300" name="mymoviename" wmode="transparent" align="" type="application/x-shockwave-flash" pluginspage="">


<cfwindow name="ProjectReviewWindow" center="True" modal="true" draggable="true" closable="true" resizable="true" initShow="false">
    Project Details