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

<channel>
	<title>Neyvo Info &#187; Jquery</title>
	<atom:link href="http://neyvo.info/home/category/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://neyvo.info/home</link>
	<description>Hospedagem e Desenvolvimento</description>
	<lastBuildDate>Mon, 16 Aug 2010 14:49:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>JQuery JSon combo dinamico</title>
		<link>http://neyvo.info/home/jquery-json-combo-dinamico/</link>
		<comments>http://neyvo.info/home/jquery-json-combo-dinamico/#comments</comments>
		<pubDate>Thu, 21 May 2009 00:19:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Jquery]]></category>
		<category><![CDATA[JSon]]></category>

		<guid isPermaLink="false">http://www.neyvo.com/site/?p=31</guid>
		<description><![CDATA[Para fazer um combo dinamico com JQuery e JSon é muito simples! crie um arquivo JSon com o nome situacao.json e com o seguinte conteudo: {&#8220;situacao&#8221;:[{"id":2,"nome":"FECHADO"},{"id":3,"nome":"ANDAMENTO"},{"id":1,"nome":"ABERTO"}]} e um arquivo html com o seguinte conteudo: &#60;html&#62; &#60;head&#62; &#60;script src=&#8221;./js/jquery.js&#8221;&#62;&#60;/script&#62; &#60;script&#62; $(document).ready(function(){ $.getJSON(&#8220;situacao.json&#8221;, function(data){ $.each(data.situacao, function(i,item){ $(&#8220;#links&#8221;).append(&#8220;&#60;option value=&#8217;&#8221;+item.nome+&#8221;&#8216;&#62;&#8221;+item.nome+&#8221;&#60;/option&#62;&#8221;); }); }); }); &#60;/script&#62; &#60;/head&#62; &#60;body&#62; &#60;select id=&#8221;links&#8221;&#62; &#60;/select&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>Para fazer um combo dinamico com JQuery e JSon é muito simples!</p>
<p>crie um arquivo JSon com o nome situacao.json e com o seguinte conteudo:</p>
<p>{&#8220;situacao&#8221;:[{"id":2,"nome":"FECHADO"},{"id":3,"nome":"ANDAMENTO"},{"id":1,"nome":"ABERTO"}]}</p>
<p>e um arquivo html com o seguinte conteudo:</p>
<p>&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;script src=&#8221;./js/jquery.js&#8221;&gt;&lt;/script&gt;</p>
<p>&lt;script&gt;<br />
$(document).ready(function(){</p>
<p>$.getJSON(&#8220;situacao.json&#8221;,<br />
function(data){<br />
$.each(data.situacao, function(i,item){<br />
$(&#8220;#links&#8221;).append(&#8220;&lt;option value=&#8217;&#8221;+item.nome+&#8221;&#8216;&gt;&#8221;+item.nome+&#8221;&lt;/option&gt;&#8221;);<br />
});<br />
});<br />
});<br />
&lt;/script&gt;</p>
<p>&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;select id=&#8221;links&#8221;&gt;<br />
&lt;/select&gt;</p>
<p>&lt;/body&gt;<br />
&lt;/html&gt;</p>
<p>Até mais.</p>
<p> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>Ale, tenta esse código</p>
<p align="left"> <span style="color: #008080; font-size: x-small;"><span style="color: #008080; font-size: x-small;"><span style="color: #008080; font-size: x-small;"><span style="color: #008080; font-size: x-small;">&lt;</span></span></span></span><span style="color: #3f7f7f; font-size: x-small;"><span style="color: #3f7f7f; font-size: x-small;">html</span></span><span style="color: #008080; font-size: x-small;"><span style="color: #008080; font-size: x-small;">&gt;<br />
&lt;</span></span><span style="color: #3f7f7f; font-size: x-small;"><span style="color: #3f7f7f; font-size: x-small;">head</span></span><span style="color: #008080; font-size: x-small;"><span style="color: #008080; font-size: x-small;">&gt;<br />
&lt;</span></span><span style="color: #3f7f7f; font-size: x-small;"><span style="color: #3f7f7f; font-size: x-small;">script</span></span><span style="font-size: x-small;"> </span><span style="color: #7f007f; font-size: x-small;"><span style="color: #7f007f; font-size: x-small;">src</span></span><span style="font-size: x-small;">=</span><em><span style="color: #2a00ff; font-size: x-small;"><span style="color: #2a00ff; font-size: x-small;">&#8220;http://code.jquery.com/jquery-latest.js&#8221;</span></span></em><span style="color: #008080; font-size: x-small;"><span style="color: #008080; font-size: x-small;">&gt;&lt;/</span></span><span style="color: #3f7f7f; font-size: x-small;"><span style="color: #3f7f7f; font-size: x-small;">script</span></span><span style="color: #008080; font-size: x-small;"><span style="color: #008080; font-size: x-small;">&gt;<br />
</span></span><span style="color: #008080; font-size: x-small;"><span style="color: #008080; font-size: x-small;">&lt;</span></span><span style="color: #3f7f7f; font-size: x-small;"><span style="color: #3f7f7f; font-size: x-small;">script</span></span><span style="color: #008080; font-size: x-small;"><span style="color: #008080; font-size: x-small;">&gt;<br />
</span></span><span style="font-size: x-small;">$(document).ready(</span><strong><span style="color: #7f0055; font-size: x-small;"><span style="color: #7f0055; font-size: x-small;">function</span></span></strong><span style="font-size: x-small;">(){<br />
$.getJSON(</span><span style="color: #2a00ff; font-size: x-small;"><span style="color: #2a00ff; font-size: x-small;">&#8220;Estados.json&#8221;</span></span><span style="font-size: x-small;">,</span><strong><span style="color: #7f0055; font-size: x-small;"><span style="color: #7f0055; font-size: x-small;">function</span></span></strong><span style="font-size: x-small;">(data){<br />
$.each(data.Estados, </span><strong><span style="color: #7f0055; font-size: x-small;"><span style="color: #7f0055; font-size: x-small;">function</span></span></strong><span style="font-size: x-small;">(i,item){<br />
$(</span><span style="color: #2a00ff; font-size: x-small;"><span style="color: #2a00ff; font-size: x-small;">&#8220;#IDESTADO&#8221;</span></span><span style="font-size: x-small;">).append(</span><span style="color: #2a00ff; font-size: x-small;"><span style="color: #2a00ff; font-size: x-small;">&#8220;&lt;option value=&#8217;&#8221;</span></span><span style="font-size: x-small;">+item.nome+</span><span style="color: #2a00ff; font-size: x-small;"><span style="color: #2a00ff; font-size: x-small;">&#8220;&#8216;&gt;&#8221;</span></span><span style="font-size: x-small;">+item.nombre+</span><span style="color: #2a00ff; font-size: x-small;"><span style="color: #2a00ff; font-size: x-small;">&#8220;&lt;/option&gt;&#8221;</span></span><span style="font-size: x-small;">);<br />
});<br />
});<br />
});<br />
</span><span style="color: #008080; font-size: x-small;"><span style="color: #008080; font-size: x-small;">&lt;/</span></span><span style="color: #3f7f7f; font-size: x-small;"><span style="color: #3f7f7f; font-size: x-small;">script</span></span><span style="color: #008080; font-size: x-small;"><span style="color: #008080; font-size: x-small;">&gt;<br />
&lt;/</span></span><span style="color: #3f7f7f; font-size: x-small;"><span style="color: #3f7f7f; font-size: x-small;">head</span></span><span style="color: #008080; font-size: x-small;"><span style="color: #008080; font-size: x-small;">&gt;<br />
&lt;</span></span><span style="color: #3f7f7f; font-size: x-small;"><span style="color: #3f7f7f; font-size: x-small;">body</span></span><span style="color: #008080; font-size: x-small;"><span style="color: #008080; font-size: x-small;">&gt;<br />
&lt;</span></span><span style="color: #3f7f7f; font-size: x-small;"><span style="color: #3f7f7f; font-size: x-small;">select</span></span><span style="font-size: x-small;"> </span><span style="color: #7f007f; font-size: x-small;"><span style="color: #7f007f; font-size: x-small;">id</span></span><span style="font-size: x-small;">=</span><em><span style="color: #2a00ff; font-size: x-small;"><span style="color: #2a00ff; font-size: x-small;">&#8220;IDESTADO&#8221;</span></span></em><span style="color: #008080; font-size: x-small;"><span style="color: #008080; font-size: x-small;">&gt;<br />
</span></span><span style="color: #008080; font-size: x-small;"><span style="color: #008080; font-size: x-small;">&lt;/</span></span><span style="color: #3f7f7f; font-size: x-small;"><span style="color: #3f7f7f; font-size: x-small;">select</span></span><span style="color: #008080; font-size: x-small;"><span style="color: #008080; font-size: x-small;">&gt;<br />
&lt;/</span></span><span style="color: #3f7f7f; font-size: x-small;"><span style="color: #3f7f7f; font-size: x-small;">body</span></span><span style="color: #008080; font-size: x-small;"><span style="color: #008080; font-size: x-small;">&gt;<br />
&lt;/</span></span><span style="color: #3f7f7f; font-size: x-small;"><span style="color: #3f7f7f; font-size: x-small;">html</span></span><span style="color: #008080; font-size: x-small;"><span style="color: #008080; font-size: x-small;">&gt;</span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://neyvo.info/home/jquery-json-combo-dinamico/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Jquery &#8211; Funções show() e hide()</title>
		<link>http://neyvo.info/home/jquery-funcoes-show-e-hide/</link>
		<comments>http://neyvo.info/home/jquery-funcoes-show-e-hide/#comments</comments>
		<pubDate>Fri, 11 Jul 2008 13:07:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Jquery]]></category>

		<guid isPermaLink="false">http://neyvo.wordpress.com/?p=19</guid>
		<description><![CDATA[Validando um formulario de contato // validação do contato &#8211; Array contento as mensagens de retorno msgs = new Array(); msgs['email'] = &#8220;Por favor preencha seu e-mail&#8221;; msgs['assunto'] = &#8220;Por favor preencha o assunto&#8221;; msgs['mensagem'] = &#8220;Por favor preencha a mensagem&#8221;; var a = &#8217;2&#8242;; function valid_all( form_id ) { $(&#8216;#&#8217;+form_id+&#8217; :input[@class="requerido"]&#8216;).each(function () { if($(this).val() [...]]]></description>
			<content:encoded><![CDATA[<p>Validando um formulario de contato</p>
<p>// validação do contato  &#8211; Array contento as mensagens de retorno<br />
msgs = new Array();<br />
msgs['email'] = &#8220;Por favor preencha seu e-mail&#8221;;<br />
msgs['assunto'] = &#8220;Por favor preencha o assunto&#8221;;<br />
msgs['mensagem'] = &#8220;Por favor preencha a mensagem&#8221;;</p>
<p>var a = &#8217;2&#8242;;</p>
<p><span id="more-20"></span></p>
<p>function valid_all( form_id ) {</p>
<p>$(&#8216;#&#8217;+form_id+&#8217; :input[@class="requerido"]&#8216;).each(function () {</p>
<p>if($(this).val() == &#8221;) {<br />
//alert (msgs[$(this).attr('id')]);<br />
$(&#8220;#msg&#8221;).html(msgs[$(this).attr('id')]);<br />
$(&#8220;#msg&#8221;).show(1000);<br />
$(&#8220;#msg&#8221;).hide(1000);</p>
<p>$(this).focus();<br />
a = &#8217;1&#8242;;<br />
return false;<br />
}<br />
else{<br />
a = &#8217;2&#8242;;<br />
return true;<br />
}<br />
})</p>
<p>if(a == &#8217;2&#8242;){</p>
<p>$(&#8220;#msg&#8221;).html(&#8220;válido&#8221;);<br />
$(&#8220;#msg&#8221;).show(&#8220;slow&#8221;);<br />
$(&#8220;#msg&#8221;).hide(&#8220;slow&#8221;);</p>
<p>$(&#8216;#form1&#8242;).submit();<br />
}<br />
}</p>
<p>/***************************************/</p>
<p>.<br />
.<br />
.<br />
Seu e-mail:<br />
Assunto:<br />
Mensagem:</p>
<p>.<br />
.<br />
.</p>
<p>Veja mais exemplos:</p>
<p>http://www.learningjquery.com/2006/09/slicker-show-and-hide</p>
<p>http://www.rafaelcunha.com/2007/06/13/showhide-abrirfechar-do-jquery-para-menus/</p>
]]></content:encoded>
			<wfw:commentRss>http://neyvo.info/home/jquery-funcoes-show-e-hide/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
