<?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>zimar™ » &#187; Javascript</title>
	<atom:link href="http://zimar.wordpress.com/category/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://zimar.wordpress.com</link>
	<description>» Desenvolvimento de sistemas web</description>
	<lastBuildDate>Wed, 26 Aug 2009 18:51:17 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>pt-br</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='zimar.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/8b7da7089e881d92547767399216cf3e?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>zimar™ » &#187; Javascript</title>
		<link>http://zimar.wordpress.com</link>
	</image>
			<item>
		<title>Menu Accordion com JQuery</title>
		<link>http://zimar.wordpress.com/2008/07/11/menu-accordion-com-jquery/</link>
		<comments>http://zimar.wordpress.com/2008/07/11/menu-accordion-com-jquery/#comments</comments>
		<pubDate>Fri, 11 Jul 2008 16:08:06 +0000</pubDate>
		<dc:creator>zimar™</dc:creator>
				<category><![CDATA[Browser's]]></category>
		<category><![CDATA[DOM]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Mundo]]></category>
		<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[DOM HTML]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[menu accordion]]></category>
		<category><![CDATA[menu vertical]]></category>

		<guid isPermaLink="false">http://zimar.wordpress.com/?p=31</guid>
		<description><![CDATA[Bem pessoas, o fato qual me levou a desenvolver este menu foi a necessidade de manter um controle no mesmo, podendo fechar e abrir o mesmo item do submenu, tudo isso usando ul li, direto ao ponto.
Primeira coisa a fazer, como verificar qual menu estava aberto antes do reload?
A solução para isso foi gravar o [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zimar.wordpress.com&blog=1876517&post=31&subd=zimar&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Bem pessoas, o fato qual me levou a desenvolver este menu foi a necessidade de manter um controle no mesmo, podendo fechar e abrir o mesmo item do submenu, tudo isso usando ul li, direto ao ponto.</p>
<p>Primeira coisa a fazer, como verificar qual menu estava aberto antes do reload?<br />
A solução para isso foi gravar o menu em cookie para verificação, segue abaixo as funções para criar e recuperar o cookie.</p>
<p>Função para recuperar o cookie:</p>
<pre>
/**
 * Retorna o valor do cookie
 * @autor Deusimar Ferreira
 * @param string name
 */
getCookie = function(Name){
	var re=new RegExp(Name+"=[^;]+", "i");
	if (document.cookie.match(re))
		return document.cookie.match(re)[0].split("=")[1];
	return null;
}
</pre>
<p>Função para criar e setar o valor do cookie:</p>
<pre>
/**
 * Define cookie
 * @autor Deusimar Ferreira
 * @param string name
 * @param string|int value
 */
setCookie = function(name, value){
	document.cookie = name + "=" + value;
}
</pre>
<p>Cirei um atributo para meu submenu chamado de menuIndex.</p>
<pre>
// Pega submenus
var subContents = $('#menu li ul');

// Percorre o menu e adiciona indice
$("#menu li div a").each(function(index) {
	subContents.eq(index).attr({menuIndex: index + 'c'});
})
</pre>
<p>Este script contém os eventos accordion do menu, ele faz a verificação de qual submenu esta aberto e chama o evento, caso o item clicado esteja aberto ele será fechado ou inverso, caso seja outro item ele abre o item clicado e fecha os outros itens.</p>
<pre>
$("div a").click(function() {
	//$("#menu li ul:visible").slideUp("slow"); // Esocnde menu item que visivel
	//$(this).parent().next().slideToggle("slow"); // Mostra o menu item que recebeu o evento click		

	// Criar objeto gobal do parent span a
	var _this = $(this).parent().next();

	// Percorre o menu para verificar as ações que deve ser executada
	// Verifica qual submenu deve ser fechado e qual será aberto
	$("div a").each(function(index){
		if ($('#menu li ul:eq(' + index + ')').attr('menuIndex') != _this.attr('menuIndex')) {
			// Verifica se exite algum submenu que não seja o que recebeu o evento do click aberto
			if ($('#menu li ul:eq(' + index + ')').is(':visible'))
				$('#menu li ul:eq(' + index + ')').slideUp("slow"); // Esocnde submenu item que visivel
		} else {
			(_this.is(':visible')) ? _this.slideUp("slow") // Esocnde submenu item que visivel
					       : _this.slideDown("slow"); // Mostra o submenu item que recebeu o evento click
		}
	})

	// Retorna falso funciona como um pause
	return false;
})
</pre>
<p>Neste outro script ao fechar a página ele recuperar o índice do menu e cria um cookie com seu valor.</p>
<pre>
// Evento window unload
$(window).bind('unload', function(){
	$('#menu li ul').unbind(); // Remove eventos
	var expandeIndices = []; // Array indice

	$("#menu li ul:visible").each(function(index){
		// Insere o valor do menuindex no array
		expandeIndices.push($(this).attr('menuIndex'));
	})

	expandeIndices = (expandeIndices.length == 0) ? '-1c' : expandeIndices;
	setCookie('menuIndex', expandeIndices); // Seta o cookie e seu respectivo valor
})
</pre>
<p>Pega o valor do cookie e mantém o respectivo submenu aberto.</p>
<pre>
// Verifica o cookie para ver qual submenu deve ser mostrado
$("#menu li ul").each(function(){
        // Mostra o submenu
	if ($(this).attr('menuIndex') == getCookie('menuIndex')) {
		$(this).show();
	} else { // Esconde o restante
		$(this).hide();
	}
})
</pre>
<p>Eis o script completo:</p>
<pre>
$(document).ready(function() {
	/**
	 * Retorna o valor do cookie
	 * @autor Deusimar Ferreira
	 * @param string name
	 */
	getCookie = function(Name){
		var re=new RegExp(Name+"=[^;]+", "i");
		if (document.cookie.match(re))
			return document.cookie.match(re)[0].split("=")[1];
		return null;
	}

	/**
	 * Define cookie
	 * @autor Deusimar Ferreira
	 * @param string name
	 * @param string|int value
	 */
	setCookie = function(name, value){
		document.cookie = name + "=" + value;
	}

	/**
	 * Accordion Menu
	 * @autor Deusimar Ferreira
	 * @param #menu li ul
	 * @param #menu li div a
	 */
	if (typeof expandeIndices == 'string')
		expandeIndices = expandeIndices.replace(/c/ig, '').split(',') // Transfoma string value em array (ie: "c1,c2,c3" becomes [1,2,3]

	// Pega submenus
	var subContents = $('#menu li ul');

	// Percorre o menu e adiciona indice
	$("#menu li div a").each(function(index) {
		subContents.eq(index).attr({menuIndex: index + 'c'});
	})

	// Apresenta apenas o primeiro menu list
	$('#menu li ul:not(:first)').hide();
	$("div a").click(function() {
		//$("#menu li ul:visible").slideUp("slow"); // Esocnde menu item que visivel
		//$(this).parent().next().slideToggle("slow"); // Mostra o menu item que recebeu o evento click		

		// Criar objeto gobal do parent span a
		var _this = $(this).parent().next();

		// Percorre o menu para verificar as ações que deve ser executada
		// Verifica qual submenu deve ser fechado e qual será aberto
		$("div a").each(function(index){
			if ($('#menu li ul:eq(' + index + ')').attr('menuIndex') != _this.attr('menuIndex')) {
				// Verifica se exite algum submenu que não seja o que recebeu o evento do click aberto
				if ($('#menu li ul:eq(' + index + ')').is(':visible'))
					$('#menu li ul:eq(' + index + ')').slideUp("slow"); // Esocnde submenu item que visivel
			} else {
				(_this.is(':visible')) ? _this.slideUp("slow") // Esocnde submenu item que visivel
									   : _this.slideDown("slow"); // Mostra o submenu item que recebeu o evento click
			}
		})

		// Retorna falso funciona como um pause
		return false;
	})		

	// Evento window unload
	$(window).bind('unload', function(){
		$('#menu li ul').unbind(); // Remove eventos
		var expandeIndices = []; // Array indice

		$("#menu li ul:visible").each(function(index){
			// Insere o valor do menuindex no array
			expandeIndices.push($(this).attr('menuIndex'));
		})

		expandeIndices = (expandeIndices.length == 0) ? '-1c' : expandeIndices;
		setCookie('menuIndex', expandeIndices); // Seta o cookie e seu respectivo valor
	})		

	// Verifica o cookie para ver qual submenu deve ser mostrado
	$("#menu li ul").each(function(){
		if ($(this).attr('menuIndex') == getCookie('menuIndex')) { // Mostra o submenu
			$(this).show();
		} else { // Esconde o restante
			$(this).hide();
		}
	})
})
</pre>
<p>Folha de estilo css:</p>
<pre>
div {
	font-family: Verdana, Arial;
	font-size: 11px;
	font-weight: bold;
	margin: 1px 0px;
	padding: 0px;
	border: 1px #06c solid;
	background-color: gray;
}

ul {
	list-style-type: none;
	max-width: 202px;
	_width: 200px; /* Adivinha para quem serve essa linha - Claro que é o IE! */
}

#menu li {
	margin: 0px 0px;
}

#menu li ul{
	margin: 0px;
	padding: 1px 5px;
	display: none;
}

#menu li div a{
	text-decoration: none;
	outline: none;
	line-height: 18px;
	padding: 1px 4px;
	color: white;
}

a {
	font-family: Verdana, Arial;
	font-size: 11px;
	text-decoration: none;
	outline: none;
	padding: 1px 4px;
	color: #06c;
}

a:hover {
	font-family: Verdana, Arial;
	font-size: 11px;
	text-decoration: underline;
	outline: none;
	padding: 1px 4px;
	color: #06c;
}
</pre>
<p>Estrutura do menu em lista não ordenada, ul li:</p>
<pre>
&lt;ul id="menu"&gt;
	&lt;li&gt;
		&lt;div&gt;&lt;a href=""&gt;JQuery Documentation&lt;/a&gt;&lt;/div&gt;
		&lt;ul id="submenu"&gt;
			&lt;li&gt;&lt;a href="http://docs.jquery.com/Main_Page" target="blank" title="Documentation"&gt;Documentation&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="http://docs.jquery.com/Tutorials" target="blank" title="Tutrorials"&gt;Tutrorials&lt;/a&gt;&lt;/li&gt;
		&lt;/ul&gt;
	&lt;/li&gt;

	&lt;li&gt;
		&lt;div&gt;&lt;a href=""&gt;Player Game&lt;/a&gt;&lt;/div&gt;
		&lt;ul id="submenu"&gt;
			&lt;li&gt;&lt;a href="http://www.cdt.unb.br/memoria" title="Memória Empreendedora"&gt;Memória Empreendedora&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="" title="Memória Empreendedora"&gt;Memória Empreendedora&lt;/a&gt;&lt;/li&gt;
		&lt;/ul&gt;
	&lt;/li&gt;

	&lt;li&gt;
		&lt;div&gt;&lt;a href=""&gt;Sobre&lt;/a&gt;&lt;/div&gt;
		&lt;ul id="submenu" style="border-bottom: 1px #06c solid;"&gt;
			&lt;li&gt;&lt;a href="http://zimar.wordpress.com/about/" title="Sobre Me"&gt;Sobre Me&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="http://docs.google.com/View?docid=ddft82q4_42hmpmmcgv" title="Curriculum"&gt;By Curriculum&lt;/a&gt;&lt;/li&gt;
		&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;
</pre>
<p>é isso ai, qualquer dúvida, pergunte!</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/zimar.wordpress.com/31/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/zimar.wordpress.com/31/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/zimar.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/zimar.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/zimar.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/zimar.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/zimar.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/zimar.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/zimar.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/zimar.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/zimar.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/zimar.wordpress.com/31/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zimar.wordpress.com&blog=1876517&post=31&subd=zimar&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://zimar.wordpress.com/2008/07/11/menu-accordion-com-jquery/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5f7a21671da2fcabc9fe2978427056fa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">zimar™</media:title>
		</media:content>
	</item>
		<item>
		<title>Retira acentos, função em js</title>
		<link>http://zimar.wordpress.com/2008/05/21/retira-acentos-funcao-em-js/</link>
		<comments>http://zimar.wordpress.com/2008/05/21/retira-acentos-funcao-em-js/#comments</comments>
		<pubDate>Wed, 21 May 2008 19:58:19 +0000</pubDate>
		<dc:creator>zimar™</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[acento]]></category>
		<category><![CDATA[acentuação]]></category>
		<category><![CDATA[caracter]]></category>
		<category><![CDATA[especiais]]></category>
		<category><![CDATA[retirar]]></category>
		<category><![CDATA[strReplace]]></category>
		<category><![CDATA[strReplaceChr]]></category>

		<guid isPermaLink="false">http://zimar.wordpress.com/?p=15</guid>
		<description><![CDATA[Boa tarde, 
Nessa tarde tive a necessidade de retirar acentos em palavras para gerar um codigo, que reune, quatro digitos numéricos, primeiro nome da pessoa e ano corrente, como existem varios nomes com acentos como José, João entre outros, criei esta função em javascript que troca os caracteres acentuados por caracteres sem acento e o [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zimar.wordpress.com&blog=1876517&post=15&subd=zimar&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Boa tarde, </p>
<p>Nessa tarde tive a necessidade de retirar acentos em palavras para gerar um codigo, que reune, quatro digitos numéricos, primeiro nome da pessoa e ano corrente, como existem varios nomes com acentos como José, João entre outros, criei esta função em javascript que troca os caracteres acentuados por caracteres sem acento e o retorna em caixa alta.</p>
<p>Ex:<br />
O nome joão ficará assim &#8211; JOAO</p>
<p>Utilizei como base a função feita pelo <a href="http://www.mxstudio.com.br/forum/index.php?showtopic=52032&amp;mode=threaded&amp;pid=170547">João Melo</a>.</p>
<pre>
function strReplaceChr(texto) {
	var chrEspeciais = new Array("á", "à", "â", "ã", "ä", "é", "è", "ê", "ë",
				     "í", "ì", "î", "ï", "ó", "ò", "ô", "õ", "ö",
				     "ú", "ù", "û", "ü", "ç",
				     "Á", "À", "Â", "Ã", "Ä", "É", "È", "Ê", "Ë",
				     "Í", "Ì", "Î", "Ï", "Ó", "Ò", "Ô", "Õ", "Ö",
				     "Ú", "Ù", "Û", "Ü", "Ç");
	var chrNormais = new Array("a", "a", "a", "a", "a", "e", "e", "e", "e",
				   "i", "i", "i", "i", "o", "o", "o", "o", "o",
				   "u", "u", "u", "u", "c",
				   "A", "A", "A", "A", "A", "E", "E", "E", "E",
				   "I", "I", "I", "I", "O", "O", "O", "O", "O",
				   "U", "U", "U", "U", "C");
	for (index in chrEspeciais) {
		texto = texto.replace(chrEspeciais[index], chrNormais[index]);
	}

	return texto.toUpperCase();
}
</pre>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/zimar.wordpress.com/15/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/zimar.wordpress.com/15/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/zimar.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/zimar.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/zimar.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/zimar.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/zimar.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/zimar.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/zimar.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/zimar.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/zimar.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/zimar.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zimar.wordpress.com&blog=1876517&post=15&subd=zimar&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://zimar.wordpress.com/2008/05/21/retira-acentos-funcao-em-js/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5f7a21671da2fcabc9fe2978427056fa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">zimar™</media:title>
		</media:content>
	</item>
		<item>
		<title>Game Memória Empreendedora</title>
		<link>http://zimar.wordpress.com/2008/05/20/game-memoria-empreendedora/</link>
		<comments>http://zimar.wordpress.com/2008/05/20/game-memoria-empreendedora/#comments</comments>
		<pubDate>Tue, 20 May 2008 21:06:18 +0000</pubDate>
		<dc:creator>zimar™</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[aplicativo]]></category>
		<category><![CDATA[cdt/unb]]></category>
		<category><![CDATA[desenvolvimento]]></category>
		<category><![CDATA[interatividade]]></category>
		<category><![CDATA[itae]]></category>
		<category><![CDATA[memória]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://zimar.wordpress.com/?p=16</guid>
		<description><![CDATA[Eis mais um acrescimo para meu portfolio, este game foi desenvolvido na plataforma web, usando, PHP5, Mysql e Ajax. A finalidade deste aplicativo é auxiliar no aprendizado e inclusão digital de empreendedores.

Este projeto foi desenvolvido pelo Centro de Apoio ao Desenvolvimento Tecnológico &#8211; CDT/UnB em parceria com o Ministério do Desenvolvimento, Indústria e Comércio Exterior.

Visite [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zimar.wordpress.com&blog=1876517&post=16&subd=zimar&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Eis mais um acrescimo para meu portfolio, este game foi desenvolvido na plataforma web, usando, PHP5, Mysql e Ajax. A finalidade deste aplicativo é auxiliar no aprendizado e inclusão digital de empreendedores.<br />
<br />
Este projeto foi desenvolvido pelo Centro de Apoio ao Desenvolvimento Tecnológico &#8211; CDT/UnB em parceria com o Ministério do Desenvolvimento, Indústria e Comércio Exterior.<br />
<br />
Visite <a href="http://www.cdt.unb.br/memoria">www.cdt.unb.br/memoria</a>, e divirta-se.<br />
<br />
<span style="text-align:center; display: block;"><a href="http://zimar.wordpress.com/2008/05/20/game-memoria-empreendedora/"><img src="http://img.youtube.com/vi/V49NsG1-PJk/2.jpg" alt="" /></a></span></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/zimar.wordpress.com/16/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/zimar.wordpress.com/16/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/zimar.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/zimar.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/zimar.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/zimar.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/zimar.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/zimar.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/zimar.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/zimar.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/zimar.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/zimar.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zimar.wordpress.com&blog=1876517&post=16&subd=zimar&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://zimar.wordpress.com/2008/05/20/game-memoria-empreendedora/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5f7a21671da2fcabc9fe2978427056fa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">zimar™</media:title>
		</media:content>

		<media:content url="http://img.youtube.com/vi/V49NsG1-PJk/2.jpg" medium="image" />
	</item>
		<item>
		<title>Ajax com jQuery</title>
		<link>http://zimar.wordpress.com/2008/03/20/ajax-com-jquery/</link>
		<comments>http://zimar.wordpress.com/2008/03/20/ajax-com-jquery/#comments</comments>
		<pubDate>Thu, 20 Mar 2008 17:23:57 +0000</pubDate>
		<dc:creator>zimar™</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://zimar.wordpress.com/?p=13</guid>
		<description><![CDATA[Bem galera,
iniciando uma serie de artigos sobres esta fabulosa biblioteca js, o jQuery. Para fazer o download acesse jQuery.
Mãos na massa:
Primeiro vamos criar a nossa função que ira pegar os dados do formúlario e enviar via ajax, neste exemplo usarei a função $.post(url, data, callback).

$(document).ready(function() {
	$("#submit").click(function(){
		// Mostra tela Loding
		$('#loading').ajaxStart(function(){
			$(this).show();
		});

		$.post('jQuery.php', {
			nome: $('#nome').val(),
			email: $('#email').val(),
			tel: $('#tel').val()
		}, function(response) {
			$('#result').html(unescape(response));
			$('#result').fadeIn();
		});

		// [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zimar.wordpress.com&blog=1876517&post=13&subd=zimar&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Bem galera,<br />
iniciando uma serie de artigos sobres esta fabulosa biblioteca js, o jQuery. Para fazer o download acesse <a href="http://docs.jquery.com/Downloading_jQuery">jQuery</a>.</p>
<p>Mãos na massa:</p>
<p>Primeiro vamos criar a nossa função que ira pegar os dados do formúlario e enviar via ajax, neste exemplo usarei a função $.post(url, data, callback).</p>
<pre>
$(document).ready(function() {
	$("#submit").click(function(){
		// Mostra tela Loding
		$('#loading').ajaxStart(function(){
			$(this).show();
		});

		$.post('jQuery.php', {
			nome: $('#nome').val(),
			email: $('#email').val(),
			tel: $('#tel').val()
		}, function(response) {
			$('#result').html(unescape(response));
			$('#result').fadeIn();
		});

		// Esconde Loading
		$("#loading").ajaxSuccess(function(){
			$(this).hide();
		});

		return false;
	});
})
</pre>
<p>Pega os parametos enviados pelo formulário, jQuery.php.</p>
<pre>
&lt;?php
// Extrai os POST
extract($_POST);

// Mostra dados
echo "Nome: " . $nome;
echo "Email: " . $email;
echo "Tel: " . $tel;
?&gt;
</pre>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/zimar.wordpress.com/13/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/zimar.wordpress.com/13/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/zimar.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/zimar.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/zimar.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/zimar.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/zimar.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/zimar.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/zimar.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/zimar.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/zimar.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/zimar.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zimar.wordpress.com&blog=1876517&post=13&subd=zimar&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://zimar.wordpress.com/2008/03/20/ajax-com-jquery/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5f7a21671da2fcabc9fe2978427056fa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">zimar™</media:title>
		</media:content>
	</item>
		<item>
		<title>Unidos pelo récorde</title>
		<link>http://zimar.wordpress.com/2008/03/18/unidos-pelo-recorde/</link>
		<comments>http://zimar.wordpress.com/2008/03/18/unidos-pelo-recorde/#comments</comments>
		<pubDate>Tue, 18 Mar 2008 18:34:15 +0000</pubDate>
		<dc:creator>zimar™</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Browser's]]></category>
		<category><![CDATA[Java for web]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Mundo]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[day]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[muldial]]></category>
		<category><![CDATA[récorde]]></category>

		<guid isPermaLink="false">http://zimar.wordpress.com/?p=19</guid>
		<description><![CDATA[Unidos para que o Firefox 3 bata o récorde mundial de download.
Abracem esta idéia!



       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zimar.wordpress.com&blog=1876517&post=19&subd=zimar&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Unidos para que o Firefox 3 bata o récorde mundial de download.</p>
<p>Abracem esta idéia!</p>
<p><a href="http://www.spreadfirefox.com/node&amp;id=0&amp;t=269" target="_blank"><br />
<img src="http://www.spreadfirefox.com/files/images/affiliates_banners/sns_badge1_en.png" border="0" alt="Download Day"><br />
</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/zimar.wordpress.com/19/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/zimar.wordpress.com/19/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/zimar.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/zimar.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/zimar.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/zimar.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/zimar.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/zimar.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/zimar.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/zimar.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/zimar.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/zimar.wordpress.com/19/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zimar.wordpress.com&blog=1876517&post=19&subd=zimar&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://zimar.wordpress.com/2008/03/18/unidos-pelo-recorde/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5f7a21671da2fcabc9fe2978427056fa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">zimar™</media:title>
		</media:content>

		<media:content url="http://www.spreadfirefox.com/files/images/affiliates_banners/sns_badge1_en.png" medium="image">
			<media:title type="html">Download Day</media:title>
		</media:content>
	</item>
		<item>
		<title>Requisitando uma página em ajax</title>
		<link>http://zimar.wordpress.com/2008/02/12/requisitando-uma-pagina-em-ajax/</link>
		<comments>http://zimar.wordpress.com/2008/02/12/requisitando-uma-pagina-em-ajax/#comments</comments>
		<pubDate>Mon, 11 Feb 2008 15:51:39 +0000</pubDate>
		<dc:creator>zimar™</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Browser's]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[php + ajax]]></category>
		<category><![CDATA[requisitar]]></category>
		<category><![CDATA[requisitar página em ajax]]></category>
		<category><![CDATA[XMLHttpRequest]]></category>

		<guid isPermaLink="false">http://zimar.wordpress.com/?p=9</guid>
		<description><![CDATA[A finalidade deste exemplo é mostra para os iniciantes em ajax como é simples efetuar uma requisição usando o ajax.
A primeira coisa a fazer é verificar se o browser do cliente suporta o ajax e instânciar o objeto.

var ajax;
try {
  // Verifica se o Firefox, Opera 8.0+, Safari suporta o ajax
  ajax = [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zimar.wordpress.com&blog=1876517&post=9&subd=zimar&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>A finalidade deste exemplo é mostra para os iniciantes em ajax como é simples efetuar uma requisição usando o ajax.</p>
<p>A primeira coisa a fazer é verificar se o browser do cliente suporta o ajax e instânciar o objeto.</p>
<pre>
var ajax;
try {
  // Verifica se o Firefox, Opera 8.0+, Safari suporta o ajax
  ajax = new XMLHttpRequest();
} catch (e) {
  // Verifica se o Internet Explorer suporta o ajax
  try {
    ajax = new ActiveXObject("Msxml2.XMLHTTP");
  } catch (e) {
    try {
      ajax = new ActiveXObject("Microsoft.XMLHTTP");
    } catch (e) {
      alert("Seu browser não dar suporte ao AJAX!");
      return false;
    }
  }
}
</pre>
<p>Agora vamos processar nosso ajax, observe que neste exemplo estamos tratando o readyState 4, que seguinifica que a requisição foi bem sucedida.</p>
<pre>
// Processa requisição ajax
ajax.onreadystatechange = function() {
  if(ajax.readyState == 4) {
    document.getElementById('campoResposta').innerHTML = ajax.responseText;
  }
}
ajax.open('POST', 'time.php', true);
ajax.send(null);
</pre>
<p>Neste exemplo o ajax requisita uma página que contém uma função date(&#8216;H:i:s&#8217;)<br />
time.php</p>
<pre>
date('H:i:s')
</pre>
<p>Agora juntamos as partes do objeto ajax em uma função para efetuarmos a requisição.</p>
<pre>
function ajaxSend() {
  var ajax;
  try {
    // Firefox, Opera 8.0+, Safari
    ajax = new XMLHttpRequest();
  } catch (e) {
      // Internet Explorer
      try {
        ajax = new ActiveXObject("Msxml2.XMLHTTP");
      } catch (e) {
        try {
          ajax = new ActiveXObject("Microsoft.XMLHTTP");
        } catch (e) {
          alert("Seu browser não dar suporte ao AJAX!");
          return false;
        }
      }
  }

  // Processa requisição ajax
  ajax.onreadystatechange=function() {
    if(ajax.readyState == 4) {
      document.getElementById('time').innerHTML = 'Time: ' + ajax.responseText;
    }
  }
  ajax.open('POST', 'time.php', true);
  ajax.send(null);
}
</pre>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/zimar.wordpress.com/9/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/zimar.wordpress.com/9/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/zimar.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/zimar.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/zimar.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/zimar.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/zimar.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/zimar.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/zimar.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/zimar.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/zimar.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/zimar.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zimar.wordpress.com&blog=1876517&post=9&subd=zimar&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://zimar.wordpress.com/2008/02/12/requisitando-uma-pagina-em-ajax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5f7a21671da2fcabc9fe2978427056fa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">zimar™</media:title>
		</media:content>
	</item>
		<item>
		<title>Função criar elemento input usando DOM</title>
		<link>http://zimar.wordpress.com/2008/02/08/html-dom/</link>
		<comments>http://zimar.wordpress.com/2008/02/08/html-dom/#comments</comments>
		<pubDate>Thu, 07 Feb 2008 19:43:55 +0000</pubDate>
		<dc:creator>zimar™</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[dom]]></category>
		<category><![CDATA[DOM HTML]]></category>
		<category><![CDATA[java script]]></category>
		<category><![CDATA[javascript dom]]></category>
		<category><![CDATA[prototype]]></category>

		<guid isPermaLink="false">http://zimar.wordpress.com/?p=8</guid>
		<description><![CDATA[Este exemplo foi criado a partir da necessidade num projeto que fiz, onde tinha arquivos que seria livres e outros privados.
Neste exemplo mostro como criar um campo input ao click em um link ou botão.
Função que cria o elemento DOM

/**
 * Função criar componente usando DOM
 * Evento onclick
 * @author Deusimar Ferreira
 */
function criaElemento() [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zimar.wordpress.com&blog=1876517&post=8&subd=zimar&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Este exemplo foi criado a partir da necessidade num projeto que fiz, onde tinha arquivos que seria livres e outros privados.</p>
<p>Neste exemplo mostro como criar um campo input ao click em um link ou botão.</p>
<p>Função que cria o elemento DOM</p>
<pre>
/**
 * Função criar componente usando DOM
 * Evento onclick
 * @author Deusimar Ferreira
 */
function criaElemento() {
  // Verifica se já foi criado o elemento
  if(!document.getElementById('labelInput')){
    // Label area senha
    var labelInput = document.createElement('label'); // Cria um elemento label
    labelInput.innerHTML = 'Senha: '; // Define o texto
    labelInput.id = 'labelInput'; // Define ID

    // Input type password
    var input = document.createElement('input'); // Cria um elemento input
    input.type = 'password'; // Define o tipo como password
    input.name = 'senha'; // Define o nome como senha
    input.id = 'senha'; // Define o Id com senha
    input.size = '10'; // Define o tamanho para 10

    labelInput.appendChild(input); // Adiciona o input ao label
    document.body.appendChild(labelInput); // Adiciona o label ao corpo do documento
  }
}
</pre>
<p>Função que remover o elemento DOM</p>
<pre>/**
 * Função remove componente
 * Evento onclick
 * @author Deusimar Ferreira
 */
function removeElemento() {
  document.body.removeChild(document.getElementById('labelInput')); // Remove os elementos do corpo do documento
}</pre>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/zimar.wordpress.com/8/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/zimar.wordpress.com/8/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/zimar.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/zimar.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/zimar.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/zimar.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/zimar.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/zimar.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/zimar.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/zimar.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/zimar.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/zimar.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zimar.wordpress.com&blog=1876517&post=8&subd=zimar&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://zimar.wordpress.com/2008/02/08/html-dom/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5f7a21671da2fcabc9fe2978427056fa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">zimar™</media:title>
		</media:content>
	</item>
		<item>
		<title>Auto preenchimento em JS(Equivalente ao str_pad no PHP)</title>
		<link>http://zimar.wordpress.com/2008/02/08/auto-preenchimento-em-jsequivalente-ao-str_pad-no-php/</link>
		<comments>http://zimar.wordpress.com/2008/02/08/auto-preenchimento-em-jsequivalente-ao-str_pad-no-php/#comments</comments>
		<pubDate>Thu, 07 Feb 2008 18:15:05 +0000</pubDate>
		<dc:creator>zimar™</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[função js]]></category>
		<category><![CDATA[pad_type]]></category>
		<category><![CDATA[str_pad js]]></category>
		<category><![CDATA[STR_PAD_BOTH]]></category>
		<category><![CDATA[STR_PAD_LEFT]]></category>
		<category><![CDATA[STR_PAD_RIGHT]]></category>

		<guid isPermaLink="false">http://zimar.wordpress.com/?p=7</guid>
		<description><![CDATA[Bem galeira, esta função faz um auto-preenchimento em uma determinada string.
Ex: tenho um campo que seria obrigatório ter 4 digitos, mas ele poderia receber valores com uma, duas, três ou quatro digitos, ae surgiu a ideia de fazer um preenchimento no campos caso o valor recebido fosse menor que 4 espaços, dei uma Googlezada e [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zimar.wordpress.com&blog=1876517&post=7&subd=zimar&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Bem galeira, esta função faz um auto-preenchimento em uma determinada string.</p>
<p>Ex: tenho um campo que seria obrigatório ter 4 digitos, mas ele poderia receber valores com uma, duas, três ou quatro digitos, ae surgiu a ideia de fazer um preenchimento no campos caso o valor recebido fosse menor que 4 espaços, dei uma Googlezada e encotrei esta função que equivale a str_pad do PHP, fiz apenas uma alteração, pois quando inseria um valor númerico a função não reconhecia, a solução foi fazer com que os valores de entrada sejam transformados em uma string.</p>
<p>Você tem as seguintes opções:<br />
STR_PAD_RIGHT, STR_PAD_LEFT ou STR_PAD_BOTH, caso não seja definido na chamada da função o parametro <strong>pad_type</strong> ele assume como default o valor  &#8216;STR_PAD_RIGHT&#8217;.</p>
<p>Veja:<br />
o valor de entrada para este exemplo será <strong>8</strong>, a quantidade de espaço a ser preenchido será <strong>4</strong> e o valor adicionado é <strong>0</strong>.</p>
<pre>//Preenche a esquerda.
document.write(str_pad(8, 4, 0, 'STR_PAD_LEFT'))
//resultado: 0008</pre>
<pre>//Preenche nas duas extremidades.
document.write(str_pad(8, 4, 0, 'STR_PAD_BOTH'))
//resultado: 0080</pre>
<pre>//Preenche a direita.
document.write(str_pad(8, 4, 0, 'STR_PAD_RIGHT'))
//resultado: 8000</pre>
<pre>
/**
 * @credits http://kevin.vanzonneveld.net
 * original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
 */
function str_pad( input, pad_length, pad_string, pad_type ) {
    var input = this.String(input);

    var half = '', pad_to_go;

    function str_pad_repeater(s, len){
        var collect = '', i;

        while(collect.length  0) {
        if (pad_type == 'STR_PAD_LEFT') { input = str_pad_repeater(pad_string, pad_to_go) + input; }
        else if (pad_type == 'STR_PAD_RIGHT') { input = input + str_pad_repeater(pad_string, pad_to_go); }
        else if (pad_type == 'STR_PAD_BOTH') {
            half = str_pad_repeater(pad_string, Math.ceil(pad_to_go/2));
            input = half + input + half;
            input = input.substr(0, pad_length);
        }
    }

    return input;
  }
</pre>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/zimar.wordpress.com/7/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/zimar.wordpress.com/7/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/zimar.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/zimar.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/zimar.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/zimar.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/zimar.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/zimar.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/zimar.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/zimar.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/zimar.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/zimar.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zimar.wordpress.com&blog=1876517&post=7&subd=zimar&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://zimar.wordpress.com/2008/02/08/auto-preenchimento-em-jsequivalente-ao-str_pad-no-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5f7a21671da2fcabc9fe2978427056fa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">zimar™</media:title>
		</media:content>
	</item>
		<item>
		<title>Validando formulário usando expressão regular</title>
		<link>http://zimar.wordpress.com/2007/12/11/funcao-so-numero/</link>
		<comments>http://zimar.wordpress.com/2007/12/11/funcao-so-numero/#comments</comments>
		<pubDate>Tue, 11 Dec 2007 20:00:05 +0000</pubDate>
		<dc:creator>zimar™</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[expressão]]></category>
		<category><![CDATA[funções]]></category>
		<category><![CDATA[número]]></category>
		<category><![CDATA[regular]]></category>
		<category><![CDATA[retira]]></category>

		<guid isPermaLink="false">http://zimar.wordpress.com/2007/12/11/funcao-so-numero/</guid>
		<description><![CDATA[Esta função traz uma solução simples para campos de formularios
que requerem apenas números.
/**
* Função que permite inserir apenas número
* Pega o evento do teclado onKeyPress.
* @param obj
* @author Deusimar Ferreira
*/
function soNum(obj) {
  // Remove tudo o que não for 1, 2, 3, 4, 5, 6, 7, 8, 9
  obj.value = obj.value.replace(/[^0123456789]/g, '');
}

  [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zimar.wordpress.com&blog=1876517&post=3&subd=zimar&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><font color="#333333">Esta função traz uma solução simples para campos de formularios<br />
que requerem apenas números.</font></p>
<pre>/**
* Função que permite inserir apenas número
* Pega o evento do teclado onKeyPress.
* @param obj
* @author Deusimar Ferreira
*/
function soNum(obj) {
  // Remove tudo o que não for 1, 2, 3, 4, 5, 6, 7, 8, 9
  obj.value = obj.value.replace(/[^0123456789]/g, '');
}
</pre>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/zimar.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/zimar.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/zimar.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/zimar.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/zimar.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/zimar.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/zimar.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/zimar.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/zimar.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/zimar.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/zimar.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/zimar.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zimar.wordpress.com&blog=1876517&post=3&subd=zimar&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://zimar.wordpress.com/2007/12/11/funcao-so-numero/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5f7a21671da2fcabc9fe2978427056fa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">zimar™</media:title>
		</media:content>
	</item>
		<item>
		<title>Site da Agência Liberdade de Expressão</title>
		<link>http://zimar.wordpress.com/2007/09/04/site-da-agencia-liberdade-de-expressao/</link>
		<comments>http://zimar.wordpress.com/2007/09/04/site-da-agencia-liberdade-de-expressao/#comments</comments>
		<pubDate>Tue, 04 Sep 2007 19:42:35 +0000</pubDate>
		<dc:creator>zimar™</dc:creator>
				<category><![CDATA[Browser's]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Mundo]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[agência]]></category>
		<category><![CDATA[comunicação]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[expressão]]></category>
		<category><![CDATA[liberdade]]></category>
		<category><![CDATA[site]]></category>

		<guid isPermaLink="false">http://zimar.wordpress.com/?p=18</guid>
		<description><![CDATA[Site da Agência e Asssessoria de Comunicação Liberdade de Expressão, desenvolvido em php e javascript,  baseado nos padrões adotados pela W3C.
Projeto de Interface desenvolvida por, Yoda Nakasu.



       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zimar.wordpress.com&blog=1876517&post=18&subd=zimar&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Site da Agência e Asssessoria de Comunicação Liberdade de Expressão, desenvolvido em php e javascript,  baseado nos padrões adotados pela W3C.</p>
<p>Projeto de Interface desenvolvida por, Yoda Nakasu.</p>
<p><a href="http://www.liberdadedeexpressao.inf.br/" target="_blank"><br />
<img src="http://zimar.files.wordpress.com/2008/06/le1.png?w=450&#038;h=277" alt="" width="450" height="277" class="aligncenter size-full wp-image-27" /><br />
</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/zimar.wordpress.com/18/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/zimar.wordpress.com/18/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/zimar.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/zimar.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/zimar.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/zimar.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/zimar.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/zimar.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/zimar.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/zimar.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/zimar.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/zimar.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zimar.wordpress.com&blog=1876517&post=18&subd=zimar&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://zimar.wordpress.com/2007/09/04/site-da-agencia-liberdade-de-expressao/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5f7a21671da2fcabc9fe2978427056fa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">zimar™</media:title>
		</media:content>

		<media:content url="http://zimar.files.wordpress.com/2008/06/le1.png" medium="image" />
	</item>
	</channel>
</rss>