<?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>Ali Aman Jalbani</title>
	<atom:link href="http://aliamanjalbani.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://aliamanjalbani.wordpress.com</link>
	<description></description>
	<lastBuildDate>Wed, 13 Jul 2011 18:56:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='aliamanjalbani.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Ali Aman Jalbani</title>
		<link>http://aliamanjalbani.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://aliamanjalbani.wordpress.com/osd.xml" title="Ali Aman Jalbani" />
	<atom:link rel='hub' href='http://aliamanjalbani.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Jquery textarea maximum character limit</title>
		<link>http://aliamanjalbani.wordpress.com/2011/07/13/jquery-textarea-maximum-character-limit/</link>
		<comments>http://aliamanjalbani.wordpress.com/2011/07/13/jquery-textarea-maximum-character-limit/#comments</comments>
		<pubDate>Wed, 13 Jul 2011 18:56:27 +0000</pubDate>
		<dc:creator>Ali Aman</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[linkedin]]></category>

		<guid isPermaLink="false">http://aliamanjalbani.wordpress.com/?p=47</guid>
		<description><![CDATA[Simple $layout.brandtext.keyup(function(){ var maxchar=50; $(this).prev(&#8216;div.limit&#8217;).html(($(this).val().length&#62;=maxchar)?&#8217;cannot be greater than &#8216;+maxchar+&#8217; characters&#8217;:&#8221;); $(this).val($(this).val().substr(0, maxchar)); });<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aliamanjalbani.wordpress.com&amp;blog=20617500&amp;post=47&amp;subd=aliamanjalbani&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Simple</p>
<p>$layout.brandtext.keyup(function(){<br />
var maxchar=50;<br />
$(this).prev(&#8216;div.limit&#8217;).html(($(this).val().length&gt;=maxchar)?&#8217;cannot be greater than &#8216;+maxchar+&#8217; characters&#8217;:&#8221;);<br />
$(this).val($(this).val().substr(0, maxchar));<br />
});</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aliamanjalbani.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aliamanjalbani.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aliamanjalbani.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aliamanjalbani.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/aliamanjalbani.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/aliamanjalbani.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/aliamanjalbani.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/aliamanjalbani.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aliamanjalbani.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aliamanjalbani.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aliamanjalbani.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aliamanjalbani.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aliamanjalbani.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aliamanjalbani.wordpress.com/47/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aliamanjalbani.wordpress.com&amp;blog=20617500&amp;post=47&amp;subd=aliamanjalbani&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://aliamanjalbani.wordpress.com/2011/07/13/jquery-textarea-maximum-character-limit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2db73b3faecb13371f1b2ff9364058dc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aliamanjalbani</media:title>
		</media:content>
	</item>
		<item>
		<title>Corss domain ajax style file upload with easyXDM</title>
		<link>http://aliamanjalbani.wordpress.com/2011/06/23/corss-domain-ajax-style-file-upload-with-easyxdm/</link>
		<comments>http://aliamanjalbani.wordpress.com/2011/06/23/corss-domain-ajax-style-file-upload-with-easyxdm/#comments</comments>
		<pubDate>Thu, 23 Jun 2011 22:34:39 +0000</pubDate>
		<dc:creator>Ali Aman</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[linkedin]]></category>

		<guid isPermaLink="false">http://aliamanjalbani.wordpress.com/?p=37</guid>
		<description><![CDATA[the use case is to upload a file across different domains without refreshing the window(ajax style) this is accomplished by the http://easyxdm.net/wp/ plugin. Client Code ============================================== &#60;form id="frmUpload" action="https://someurl/xdmupload" method="post" name="corporatebranding" enctype="multipart/form-data" target="upload_target"&#62; &#60;input type="hidden" name="MAX_FILE_SIZE" value="{{max_file_size}}" /&#62;&#60;!--2MB--&#62; &#60;input type="hidden" name="mode" value="save" /&#62; &#60;input id="btnSubmit" class="cancel buttonsprite" type="submit" value="" /&#62; &#60;/form&#62; &#60;script type="text/javascript"&#62; _XDM = [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aliamanjalbani.wordpress.com&amp;blog=20617500&amp;post=37&amp;subd=aliamanjalbani&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre>the use case is to upload a file across different domains without refreshing the window(ajax style)
this is accomplished by the <a title="easyXDM" href="http://easyxdm.net/wp/">http://easyxdm.net/wp/</a> plugin.

Client Code
==============================================
&lt;form id="frmUpload" action="https://someurl/xdmupload" method="post" name="corporatebranding" enctype="multipart/form-data" target="upload_target"&gt;
  &lt;input type="hidden" name="MAX_FILE_SIZE" value="{{max_file_size}}" /&gt;&lt;!--2MB--&gt;
  &lt;input type="hidden" name="mode" value="save" /&gt;
  &lt;input id="btnSubmit" class="cancel buttonsprite" type="submit" value="" /&gt;
&lt;/form&gt;
&lt;script type="text/javascript"&gt;
_XDM = function(){
    var btn;
    var remote = new easyXDM.Rpc({
        remote: baseurl+"/xdmupload",
        swf: baseurl+"/en_US/js/easyxdm/easyxdm.swf",
        onReady: function(){
            //display the upload form
            var frm = document.getElementById("frmUpload");
            frm.action = baseurl+"/xdmupload";

            $layout.frmUpload.submit(function(){
                $layout.btnSubmit.attr('disabled', 'disabled');
                document.body.style.cursor = 'wait';
            });
        }
    }, {
        local: {
            returnUploadResponse: function(response){
                document.body.style.cursor = 'default';
                $layout.btnSubmit.removeAttr("disabled");
                $layout.previewimg.attr('src', response.filename);
                if($layout.filecontrol.val()!=""){
                    //$layout.response.css({'display':'none','opacity':'1'}).html(response.msg).slideDown(1000 , function(){}).animate({opacity: 0.1},8000,function(){$layout.response.slideUp('slow',function(){});});
                    $layout.brndresponse.html(response.msg);
                }
                $layout.filecontrol.val('');
                fonts();
            }
        }
    });
}
&lt;/script&gt;

Server Side Code
===============================================
&lt;html&gt;
    &lt;body&gt;
        &lt;script type="text/javascript"&gt;
            // the `rpc` object will be referenced by the upload handler
            var rpc = new easyXDM.Rpc({
                swf: "https://someurl/en_US/js/easyxdm/easyxdm.swf"
            }, {
                remote: {
                    returnUploadResponse: {}
                }
            });
        &lt;/script&gt;
        &lt;iframe name="upload_target" src="about:blank"&gt;
        &lt;/iframe&gt;
        &lt;script&gt;
            parent.rpc.returnUploadResponse({
                status: "&lt;?= $successmsg['success'] ?&gt;",
                filename: "&lt;?= $successmsg['filename'] ?&gt;",
                msg: "&lt;?= $successmsg['msg'] ?&gt;"
            });
        &lt;/script&gt;
    &lt;/body&gt;
&lt;/html&gt;
ACTION
=============================================================================
class xdmuploadComponent extends PageComponents {
    public function execute($request) {
        try{
            $file = $_FILES;
            $fileH = new ImageUpload($file, 'logo' ,BRAND_IMAGES_FOLDER, true);
            $successmsg = $fileH-&gt;uploadFile();
            $this-&gt;successmsg = $successmsg;
        }catch(Exception $e){
            print_r($e);
        }
    }
}</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aliamanjalbani.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aliamanjalbani.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aliamanjalbani.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aliamanjalbani.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/aliamanjalbani.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/aliamanjalbani.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/aliamanjalbani.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/aliamanjalbani.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aliamanjalbani.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aliamanjalbani.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aliamanjalbani.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aliamanjalbani.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aliamanjalbani.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aliamanjalbani.wordpress.com/37/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aliamanjalbani.wordpress.com&amp;blog=20617500&amp;post=37&amp;subd=aliamanjalbani&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://aliamanjalbani.wordpress.com/2011/06/23/corss-domain-ajax-style-file-upload-with-easyxdm/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2db73b3faecb13371f1b2ff9364058dc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aliamanjalbani</media:title>
		</media:content>
	</item>
		<item>
		<title>Jquery cool Flashmessage</title>
		<link>http://aliamanjalbani.wordpress.com/2011/06/21/jquery-cool-flashmessage/</link>
		<comments>http://aliamanjalbani.wordpress.com/2011/06/21/jquery-cool-flashmessage/#comments</comments>
		<pubDate>Tue, 21 Jun 2011 21:27:50 +0000</pubDate>
		<dc:creator>Ali Aman</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[linkedin]]></category>

		<guid isPermaLink="false">http://aliamanjalbani.wordpress.com/?p=32</guid>
		<description><![CDATA[Just one line of code and you have a brilliant message that slidesDown.. and then fades and slidesUp $('#somediv').css({'display':'none','opacity':'1'}).html('some text').slideDown(1000 , function(){}).animate({opacity: 0.1},5000,function(){$layout.response.slideUp('slow',function(){});});<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aliamanjalbani.wordpress.com&amp;blog=20617500&amp;post=32&amp;subd=aliamanjalbani&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Just one line of code and you have a brilliant message that slidesDown.. and then fades and slidesUp</p>
<p><code><br />
$('#somediv').css({'display':'none','opacity':'1'}).html('some text').slideDown(1000 , function(){}).animate({opacity: 0.1},5000,function(){$layout.response.slideUp('slow',function(){});});<br />
</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aliamanjalbani.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aliamanjalbani.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aliamanjalbani.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aliamanjalbani.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/aliamanjalbani.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/aliamanjalbani.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/aliamanjalbani.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/aliamanjalbani.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aliamanjalbani.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aliamanjalbani.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aliamanjalbani.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aliamanjalbani.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aliamanjalbani.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aliamanjalbani.wordpress.com/32/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aliamanjalbani.wordpress.com&amp;blog=20617500&amp;post=32&amp;subd=aliamanjalbani&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://aliamanjalbani.wordpress.com/2011/06/21/jquery-cool-flashmessage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2db73b3faecb13371f1b2ff9364058dc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aliamanjalbani</media:title>
		</media:content>
	</item>
		<item>
		<title>Cool Fonts! with cufon&#8230;</title>
		<link>http://aliamanjalbani.wordpress.com/2011/06/13/cool-fonts-with-cufon/</link>
		<comments>http://aliamanjalbani.wordpress.com/2011/06/13/cool-fonts-with-cufon/#comments</comments>
		<pubDate>Mon, 13 Jun 2011 18:45:04 +0000</pubDate>
		<dc:creator>Ali Aman</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[linkedin]]></category>

		<guid isPermaLink="false">http://aliamanjalbani.wordpress.com/?p=26</guid>
		<description><![CDATA[I&#8217;ve tried various font engines and font rendering engines. This one (cufon) is by far the best. It translates each letter to an html canvas tag and renders a very rich look and top notch UE. No fret its compatible with IE5+ and all browsers.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aliamanjalbani.wordpress.com&amp;blog=20617500&amp;post=26&amp;subd=aliamanjalbani&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve tried various font engines and font rendering engines. This one (<a href="http://cufon.shoqolate.com/generate/" title="cufon" target="_blank">cufon</a>) is by far the best.</p>
<p>It translates each letter to an html canvas tag and renders a very rich look and top notch UE. No fret its compatible with IE5+ and all browsers.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aliamanjalbani.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aliamanjalbani.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aliamanjalbani.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aliamanjalbani.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/aliamanjalbani.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/aliamanjalbani.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/aliamanjalbani.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/aliamanjalbani.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aliamanjalbani.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aliamanjalbani.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aliamanjalbani.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aliamanjalbani.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aliamanjalbani.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aliamanjalbani.wordpress.com/26/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aliamanjalbani.wordpress.com&amp;blog=20617500&amp;post=26&amp;subd=aliamanjalbani&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://aliamanjalbani.wordpress.com/2011/06/13/cool-fonts-with-cufon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2db73b3faecb13371f1b2ff9364058dc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aliamanjalbani</media:title>
		</media:content>
	</item>
		<item>
		<title>JsonP with Mustache templating engine and JQuery.</title>
		<link>http://aliamanjalbani.wordpress.com/2011/06/13/jsonp-with-mustache-templating-engine-and-jquery/</link>
		<comments>http://aliamanjalbani.wordpress.com/2011/06/13/jsonp-with-mustache-templating-engine-and-jquery/#comments</comments>
		<pubDate>Mon, 13 Jun 2011 18:36:57 +0000</pubDate>
		<dc:creator>Ali Aman</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[linkedin]]></category>

		<guid isPermaLink="false">http://aliamanjalbani.wordpress.com/?p=17</guid>
		<description><![CDATA[Recently discovered Mustache templating engine. I think its really neat and should replace inline server-side scripts whenever possible. Here is a sample code to use jsonp and Mustache to fetch and iterate over the returned dataset. Server Side: private function _getInitContent(){ $init = array( 'title' =&#62; 'Administrator Dashboard!!!', 'menu' =&#62; array( array( 'title' =&#62; 'Menu#1', [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aliamanjalbani.wordpress.com&amp;blog=20617500&amp;post=17&amp;subd=aliamanjalbani&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Recently discovered <a title="Mustache" href="http://mustache.github.com/" target="_blank">Mustache templating engine</a>.<br />
I think its really neat and should replace inline server-side scripts whenever possible.</p>
<p>Here is a sample code to use jsonp and Mustache to fetch and iterate over the returned dataset.</p>
<p>Server Side:</p>
<pre>    private function _getInitContent(){
        $init =
        array(
            'title' =&gt; 'Administrator Dashboard!!!',
            'menu'  =&gt;
            array(
                array(
                    'title'     =&gt; 'Menu#1',
                    'submenu'   =&gt;
                        array(
                            array(
                                'title'     =&gt; 'Menu#1.1',
                                'link'   =&gt; '/abc'
                             ),
                            array(
                                'title'     =&gt; 'Menu#1.2',
                                'link'   =&gt; '/abc'
                            )
                        )
                    ),
                array(
                    'title'     =&gt; 'Menu#2',
                    'submenu'   =&gt;
                        array(
                            array(
                                'title' =&gt; 'Menu#2.1',
                                'link'  =&gt; '/abc'
                                 ),
                            array(
                                'title' =&gt; 'Menu#2.2',
                                'link'   =&gt; '/abc'
                                )
                            )
                        )
                    )
                );
        $val = $this-&gt;_params['callback'].'('.json_encode($init).')';
        return $val;
    }</pre>
<p>Javascript Code:</p>
<pre>_init = function(){
    $.jsonp({
      "url": 'https://someurl/login?callback=?',
      "data": {
          "phi_action": "app/adminDashboard",
          "subAction":  "_getInitContent"
      },
      "success":
        function(dat){
            var rend = Mustache.to_html($layout.wrapper.html(), dat);
            $layout.wrapper.html(rend);
            fonts();
            $layout.wrapper.css('visibility', 'visible');

        }
    });
}</pre>
<p>This is the markup with the mustache script</p>
<pre>&lt;div id="wrapper" class="mustachetpl"&gt;
    &lt;h1 class='tgbf'&gt; {{title}} &lt;/h1&gt;
    {{#menu}}
        &lt;div class='tgf'&gt;{{title}}&lt;/div&gt;
        &lt;ul&gt;
            {{#submenu}}
                &lt;li class='tgf'&gt;{{title}}&lt;/li&gt;
            {{/submenu}}
        &lt;/ul&gt;
    {{/menu}}
 &lt;/div&gt;</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aliamanjalbani.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aliamanjalbani.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aliamanjalbani.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aliamanjalbani.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/aliamanjalbani.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/aliamanjalbani.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/aliamanjalbani.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/aliamanjalbani.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aliamanjalbani.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aliamanjalbani.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aliamanjalbani.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aliamanjalbani.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aliamanjalbani.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aliamanjalbani.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aliamanjalbani.wordpress.com&amp;blog=20617500&amp;post=17&amp;subd=aliamanjalbani&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://aliamanjalbani.wordpress.com/2011/06/13/jsonp-with-mustache-templating-engine-and-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2db73b3faecb13371f1b2ff9364058dc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aliamanjalbani</media:title>
		</media:content>
	</item>
		<item>
		<title>JQuery phone format</title>
		<link>http://aliamanjalbani.wordpress.com/2011/02/28/jquery-phone-format/</link>
		<comments>http://aliamanjalbani.wordpress.com/2011/02/28/jquery-phone-format/#comments</comments>
		<pubDate>Mon, 28 Feb 2011 22:11:45 +0000</pubDate>
		<dc:creator>Ali Aman</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[linkedin]]></category>

		<guid isPermaLink="false">http://aliamanjalbani.wordpress.com/?p=6</guid>
		<description><![CDATA[Here is something that I just worked on today. The class of your container will be &#8216;phone&#8217; and the rest is formatted. var plugins = { formatphone: function(){ window.layout = { phone   : $('.phone') };         layout.phone.each(function(){             var numb = $(this).html().match(/\d/g).join('');             $(this).html('(' + [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aliamanjalbani.wordpress.com&amp;blog=20617500&amp;post=6&amp;subd=aliamanjalbani&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here is something that I just worked on today.<br />
The class of your container will be &#8216;phone&#8217; and the rest is formatted.</p>
<pre>var plugins = {
 formatphone: function(){
   window.layout = { phone   : $('.phone') };        
   layout.phone.each(function(){            
   var numb = $(this).html().match(/\d/g).join('');            
   $(this).html('(' + numb.slice(0, 3) + ') ' + numb.slice(3, 6) + '-' + numb.slice(6, 10));        });
 }};</pre>
<p>call this method:</p>
<pre>plugins.formatphone();</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aliamanjalbani.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aliamanjalbani.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aliamanjalbani.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aliamanjalbani.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/aliamanjalbani.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/aliamanjalbani.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/aliamanjalbani.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/aliamanjalbani.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aliamanjalbani.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aliamanjalbani.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aliamanjalbani.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aliamanjalbani.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aliamanjalbani.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aliamanjalbani.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aliamanjalbani.wordpress.com&amp;blog=20617500&amp;post=6&amp;subd=aliamanjalbani&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://aliamanjalbani.wordpress.com/2011/02/28/jquery-phone-format/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2db73b3faecb13371f1b2ff9364058dc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aliamanjalbani</media:title>
		</media:content>
	</item>
		<item>
		<title>Welcome&#8230;</title>
		<link>http://aliamanjalbani.wordpress.com/2011/02/28/hello-world/</link>
		<comments>http://aliamanjalbani.wordpress.com/2011/02/28/hello-world/#comments</comments>
		<pubDate>Mon, 28 Feb 2011 21:53:10 +0000</pubDate>
		<dc:creator>Ali Aman</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://aliamanjalbani.wordpress.com/?p=1</guid>
		<description><![CDATA[So I start blogging. I welcome you here.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aliamanjalbani.wordpress.com&amp;blog=20617500&amp;post=1&amp;subd=aliamanjalbani&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So I start blogging.</p>
<p>I welcome you here.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aliamanjalbani.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aliamanjalbani.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aliamanjalbani.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aliamanjalbani.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/aliamanjalbani.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/aliamanjalbani.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/aliamanjalbani.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/aliamanjalbani.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aliamanjalbani.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aliamanjalbani.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aliamanjalbani.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aliamanjalbani.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aliamanjalbani.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aliamanjalbani.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aliamanjalbani.wordpress.com&amp;blog=20617500&amp;post=1&amp;subd=aliamanjalbani&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://aliamanjalbani.wordpress.com/2011/02/28/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2db73b3faecb13371f1b2ff9364058dc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aliamanjalbani</media:title>
		</media:content>
	</item>
	</channel>
</rss>
