<?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>Flash/Flex Developer &#187; javascript</title>
	<atom:link href="http://blog.ismailsimsek.com/tag/javascript/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.ismailsimsek.com</link>
	<description></description>
	<lastBuildDate>Thu, 22 Dec 2011 14:58:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>php ile sayfa yönlendirme</title>
		<link>http://blog.ismailsimsek.com/genel/pratik-bilgiler/php-ile-sayfa-yonlendirme.html</link>
		<comments>http://blog.ismailsimsek.com/genel/pratik-bilgiler/php-ile-sayfa-yonlendirme.html#comments</comments>
		<pubDate>Tue, 30 Mar 2010 11:57:14 +0000</pubDate>
		<dc:creator>İsmail Şimşek</dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[Pratik Bilgiler]]></category>
		<category><![CDATA[header]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[sayfa yönlendirme]]></category>
		<category><![CDATA[yönlendirme]]></category>

		<guid isPermaLink="false">http://blog.ismailsimsek.com/?p=147</guid>
		<description><![CDATA[Çoğu zaman sayfamızdan başka bir sayfaya geçmek isteriz. Bunu javascript ile kolayca hallederiz. location.href ile. Php kullanırken ise bunu header( "Location: diger_sayfamiz.php" ); şeklinde yaparız. Ama içerik oluşturduktan sonra header kullanmaya çalışıyorsak hata alacağızdır. Daha geniş bilgi için aşağıdaki linki ziyaret edin: Cannot modify header information - headers already sent hatası alıyorum ? Nasıl düzeltirim ? Gelelim bugün araştırırken öğrendiğim yeni yönteme. Bu yöntem benim çok hoşuma gitti. Hemen kodları vereyim. PLAIN TEXT PHP: function [...]]]></description>
			<content:encoded><![CDATA[<p>Çoğu zaman sayfamızdan başka bir sayfaya geçmek isteriz. Bunu javascript ile kolayca hallederiz. <a href="http://www.java2s.com/Tutorial/JavaScript/0320__Location/Locationhref.htm" target="_blank">location.href</a> ile.</p>
<p>Php kullanırken ise bunu header( "Location: diger_sayfamiz.php" ); şeklinde yaparız. Ama içerik oluşturduktan sonra header kullanmaya çalışıyorsak hata alacağızdır. Daha geniş bilgi için aşağıdaki linki ziyaret edin:</p>
<p><a href="http://forum.ceviz.net/php/23579-php-kodu-yazarken-sikca-sorulan-sorular-rastlanan-hatalar-ve-cozumleri.html" target="_blank">Cannot modify header information - headers already sent hatası  alıyorum ? Nasıl düzeltirim ?</a></p>
<p>Gelelim bugün araştırırken öğrendiğim yeni yönteme. Bu yöntem benim çok hoşuma gitti. Hemen kodları vereyim.</p>
<div class="igBar"><span id="lphp-2"><a href="#" onclick="javascript:showPlainTxt('php-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-2">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">function</span> yonlen<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$sure</span>,<span style="color:#0000FF;">$sayfa</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#0000FF;">$deger</span> = &amp;quot;&amp;amp;lt;meta http-equiv=<span style="color:#FF0000;">'refresh'</span> content=<span style="color:#FF0000;">'&amp;quot;.$sure.&amp;quot;;url=&amp;quot;.$sayfa.&amp;quot;'</span>&amp;amp;gt;&amp;quot;;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#0000FF;">$deger</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Kullanımı ise çok basit. Yapmanız gereken tek şey sayfanızın kaç saiye sonra yönleneceğini vermek ve yönleneceği sayfayı vermek. Yani;</p>
<p><em>yonlen(1,"diger_sayfa.php");</em></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ismailsimsek.com/genel/pratik-bilgiler/php-ile-sayfa-yonlendirme.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery validation plugin ile form validation</title>
		<link>http://blog.ismailsimsek.com/genel/pratik-bilgiler/jquery-validation-plugin-ile-form-validation.html</link>
		<comments>http://blog.ismailsimsek.com/genel/pratik-bilgiler/jquery-validation-plugin-ile-form-validation.html#comments</comments>
		<pubDate>Fri, 22 Jan 2010 00:40:34 +0000</pubDate>
		<dc:creator>İsmail Şimşek</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Pratik Bilgiler]]></category>
		<category><![CDATA[form validation]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[validation]]></category>

		<guid isPermaLink="false">http://blog.ismailsimsek.com/?p=138</guid>
		<description><![CDATA[jQuery nin çok işe yarar bir plugin inden bahsedeceğim. Formları kontrol etmek doğru verinin girilip girilmediğini denetlemek çok büyük sıkıntı benim için. Hazırladığım bir formun kontrolü için araştırma yaparken karşıma çıkan bu güzel plugin tüm sorunlarımı kafamdan atmama neden oldu :) Hemen kullanımına geçiyorum. Öncelikle şu adresten indirelim. İndirdiğimiz zip dosyasının içindeki jquery.validate.min.js dosyasını kullanacağız. İsterseniz jquery.validate.js ya da jquery.validate.pack.js dosyasını da kullanabilirsiniz. Önce bu kütüphaneyi sayfamıza ekleyelim. PLAIN TEXT JavaScript: &#60;script type="text/javascript" src="jquery132.js"&#62;&#60;/script&#62; &#60;script [...]]]></description>
			<content:encoded><![CDATA[<p>jQuery nin çok işe yarar bir plugin inden bahsedeceğim. Formları kontrol etmek doğru verinin girilip girilmediğini denetlemek çok büyük sıkıntı benim için. Hazırladığım bir formun kontrolü için araştırma yaparken karşıma çıkan bu güzel plugin tüm sorunlarımı kafamdan atmama neden oldu :)</p>
<p>Hemen kullanımına geçiyorum. Öncelikle <a href="http://jquery.bassistance.de/validate/jquery.validate.zip" target="_blank">şu adresten</a> indirelim. İndirdiğimiz zip dosyasının içindeki jquery.validate.min.js dosyasını kullanacağız. İsterseniz jquery.validate.js ya da jquery.validate.pack.js dosyasını da kullanabilirsiniz.<br />
<span id="more-138"></span><br />
Önce bu kütüphaneyi sayfamıza ekleyelim.</p>
<div class="igBar"><span id="ljavascript-7"><a href="#" onclick="javascript:showPlainTxt('javascript-7'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-7">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script type=<span style="color: #3366CC;">"text/javascript"</span> src=<span style="color: #3366CC;">"jquery132.js"</span>&gt;&lt;/script&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script type=<span style="color: #3366CC;">"text/javascript"</span> src=<span style="color: #3366CC;">"jquery.validate.min.js"</span>&gt;&lt;/script&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p>
Daha sonra sayfamız açıldığında hemen çalışmaya başlayacak olan validation kodlarını yazalım.</p>
<p>Kullanacağımız formun html kodları:</p>
<div class="igBar"><span id="lhtml-8"><a href="#" onclick="javascript:showPlainTxt('html-8'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-8">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/form.html"><span style="color: #000000; font-weight: bold;">&lt;form</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"form1"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/table.html"><span style="color: #000000; font-weight: bold;">&lt;table</span></a> <span style="color: #000066;">border</span>=<span style="color: #ff0000;">"1"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/tbody.html"><span style="color: #000000; font-weight: bold;">&lt;tbody&gt;</span></a></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/tr.html"><span style="color: #000000; font-weight: bold;">&lt;tr&gt;</span></a></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/td.html"><span style="color: #000000; font-weight: bold;">&lt;td&gt;</span></a></span>İsim<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/td&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/td.html"><span style="color: #000000; font-weight: bold;">&lt;td&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;">&lt;input</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"isim"</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"isim"</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"text"</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/td&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/tr&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/tr.html"><span style="color: #000000; font-weight: bold;">&lt;tr&gt;</span></a></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/td.html"><span style="color: #000000; font-weight: bold;">&lt;td&gt;</span></a></span>Numara<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/td&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/td.html"><span style="color: #000000; font-weight: bold;">&lt;td&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;">&lt;input</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"numara"</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"numara"</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"text"</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/td&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/tr&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/tr.html"><span style="color: #000000; font-weight: bold;">&lt;tr&gt;</span></a></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/td.html"><span style="color: #000000; font-weight: bold;">&lt;td&gt;</span></a></span>Email<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/td&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/td.html"><span style="color: #000000; font-weight: bold;">&lt;td&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;">&lt;input</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"email"</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"email"</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"text"</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/td&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/tr&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/tr.html"><span style="color: #000000; font-weight: bold;">&lt;tr&gt;</span></a></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/td.html"><span style="color: #000000; font-weight: bold;">&lt;td</span></a> <span style="color: #000066;">colspan</span>=<span style="color: #ff0000;">"2"</span> <span style="color: #000066;">align</span>=<span style="color: #ff0000;">"right"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;">&lt;input</span></a> <span style="color: #000066;">onclick</span>=<span style="color: #ff0000;">"kontrolet()"</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"button"</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">"Kontrol Et"</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/td&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/tr&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/tbody&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/table&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/form&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>
Bu uygulamamızda formumuzun adı ve id si form1. Ayrıca formun içinde isim,  numara ve email alanları bulunmakta.</p>
<div class="igBar"><span id="ljavascript-9"><a href="#" onclick="javascript:showPlainTxt('javascript-9'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-9">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script type=<span style="color: #3366CC;">"text/javascript"</span>&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color: #66cc66;">&#40;</span>document<span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">ready</span><span style="color: #66cc66;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'#form1'</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">validate</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">rules: <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">isim: <span style="color: #66cc66;">&#123;</span> required: <span style="color: #003366; font-weight: bold;">true</span>, minlength:<span style="color: #CC0000;color:#800000;">5</span> <span style="color: #66cc66;">&#125;</span>,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">numara: <span style="color: #66cc66;">&#123;</span> required: <span style="color: #003366; font-weight: bold;">true</span>, number:<span style="color: #003366; font-weight: bold;">true</span> <span style="color: #66cc66;">&#125;</span>,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">email: <span style="color: #66cc66;">&#123;</span> required: <span style="color: #003366; font-weight: bold;">true</span>, email: <span style="color: #003366; font-weight: bold;">true</span> <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span>,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">messages: <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">isim: <span style="color: #66cc66;">&#123;</span> required: <span style="color: #3366CC;">'Lütfen bu alanı doldurunuz.'</span>,minlength:<span style="color: #3366CC;">'5 karakterden daha az giremezsiniz.'</span>  <span style="color: #66cc66;">&#125;</span>,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">numara: <span style="color: #66cc66;">&#123;</span> required: <span style="color: #3366CC;">'Bu alanı doldurmak zorundasınız.'</span>,number:<span style="color: #3366CC;">'sadece numara girilebilir.'</span> <span style="color: #66cc66;">&#125;</span>,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">email: <span style="color: #66cc66;">&#123;</span> required: <span style="color: #3366CC;">'Lütfen bu alanı doldurunuz.'</span> , email: <span style="color: #3366CC;">'Lütfen geçerli bir email adresi giriniz.'</span> <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;/script&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p>
Şimdi tüm bu kodlar ne işe yarıyor biraz ondan bahsedeyim. Döküman hazır olduğunda form1 nesnesi validation için yakalanıyor ve kontrol ediliyor :) required komutu ilgili alanı doldurmak zorunda olduğumuzu belirtiyor. Default değeri false. Bunun dışında number, minlength, maxlength, email gibi özelliklerde var. Bu kodları yazdırdıktan sonra eğer formumuz doğru doldurulmuşsa işlem yaptırmak istiyoruz. Bunun içinde şu kodları kullanacağız.</p>
<div class="igBar"><span id="ljavascript-10"><a href="#" onclick="javascript:showPlainTxt('javascript-10'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-10">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script type=<span style="color: #3366CC;">"text/javascript"</span>&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">function</span> kontrolet<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">sonuc = $<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'#form1'</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">valid</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000066; font-weight: bold;">if</span><span style="color: #66cc66;">&#40;</span>sonuc==<span style="color: #003366; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>    <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000066;">alert</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"Form başarıyla dolduruldu."</span><span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span><span style="color: #000066; font-weight: bold;">else</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000066;">alert</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"Lütfen gerekli alanları doldurunuz."</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;/script&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p>
Çalışmanın derli toplu haline <a href="http://www.ismailsimsek.com/ie/formvalidation/" target="_blank">buradan</a> ulaşabilirsiniz.</p>
<p>Bu plugin hakkında daha çok bilgi için:<br />
<a href="http://docs.jquery.com/Plugins/Validation" target="_self">http://docs.jquery.com/Plugins/Validation</a><br />
<a href="http://jquery.bassistance.de/validate/demo/" target="_self">http://jquery.bassistance.de/validate/demo/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ismailsimsek.com/genel/pratik-bilgiler/jquery-validation-plugin-ile-form-validation.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Highslide Giriş</title>
		<link>http://blog.ismailsimsek.com/html-css-js/highslide/highslide-giris.html</link>
		<comments>http://blog.ismailsimsek.com/html-css-js/highslide/highslide-giris.html#comments</comments>
		<pubDate>Sun, 15 Mar 2009 02:02:18 +0000</pubDate>
		<dc:creator>İsmail Şimşek</dc:creator>
				<category><![CDATA[Highslide]]></category>
		<category><![CDATA[highslide giriş]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.webtimi.com/ismail/blog/?p=74</guid>
		<description><![CDATA[Merhabalar. Uzun zamandır ertelediğim highslide yazımı yazmaya başladım. Vakit buldukça yazmaya devam edeceğim. Öncelikle highslide neler yapabilir ona bir göz atalım. Bu adresten neler yapabileceğine (yapabileceğinize) bakalım. Örnek uygulamaları incelediyseniz işe highslide kütüphanesini, css dosyasını ve resimleri indirerek başlayalım.Bu adresten indireceğiniz zip uzantılı dosya içerisinde ihtiyacınız olan herşeyi bulacaksınız. İlk aşamada bizim için önemli olan highslide dosyası ve içindekiler. Example dosyasında örnek uygulamalar var inceleyip uygulamanızda fayda var. Bir uyarıda bulunayım bu noktada; kodlamaya geçmeden [...]]]></description>
			<content:encoded><![CDATA[<p>Merhabalar. Uzun zamandır ertelediğim highslide yazımı yazmaya başladım. Vakit buldukça yazmaya devam edeceğim.<br />
Öncelikle highslide neler yapabilir ona bir göz atalım. <a href="http://highslide.com/#examples" target="_blank">Bu adresten</a> neler yapabileceğine (yapabileceğinize) bakalım.</p>
<p>Örnek uygulamaları incelediyseniz işe highslide kütüphanesini, css dosyasını ve resimleri indirerek başlayalım.<span id="more-74"></span><a href="http://highslide.com/download-confirm.php?file=download%2Fhighslide-4.1.0.zip" target="_blank">Bu adresten </a>indireceğiniz zip uzantılı dosya içerisinde ihtiyacınız olan herşeyi bulacaksınız. İlk aşamada bizim için önemli olan highslide dosyası ve içindekiler. Example dosyasında örnek uygulamalar var inceleyip uygulamanızda fayda var.</p>
<p>Bir uyarıda bulunayım bu noktada; kodlamaya geçmeden önce verdiğim kodları kendiniz tek tek yazarsanız daha yararlı olur. Kopyala / yapıştır ile hiç bir faydası olmaz.</p>
<p>Bu hatırlatmayıda yaptıktan sonra ilk kodumuzu yazalım.</p>
<div class="igBar"><span id="lhtml-15"><a href="#" onclick="javascript:showPlainTxt('html-15'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-15">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ddbb00;">&amp;lt;</span>html<span style="color: #ddbb00;">&amp;gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ddbb00;">&amp;lt;</span>head<span style="color: #ddbb00;">&amp;gt;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ddbb00;">&amp;lt;</span>link rel=<span style="color: #ddbb00;">&amp;quot;</span>stylesheet<span style="color: #ddbb00;">&amp;quot;</span> type=<span style="color: #ddbb00;">&amp;quot;</span>text/css<span style="color: #ddbb00;">&amp;quot;</span> href=<span style="color: #ddbb00;">&amp;quot;</span>highslide/highslide.css<span style="color: #ddbb00;">&amp;quot;</span> /<span style="color: #ddbb00;">&amp;gt;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ddbb00;">&amp;lt;</span>script type=<span style="color: #ddbb00;">&amp;quot;</span>text/javascript<span style="color: #ddbb00;">&amp;quot;</span> src=<span style="color: #ddbb00;">&amp;quot;</span>highslide/highslide-full.js<span style="color: #ddbb00;">&amp;quot;</span><span style="color: #ddbb00;">&amp;gt;</span><span style="color: #ddbb00;">&amp;lt;</span>/script<span style="color: #ddbb00;">&amp;gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ddbb00;">&amp;lt;</span>/head<span style="color: #ddbb00;">&amp;gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ddbb00;">&amp;lt;</span>body<span style="color: #ddbb00;">&amp;gt;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Bu kod bloğu ile highslide css dosyamızı ve highslide kütüphanemizi sayfamıza çağırdık.  Bundan sonraki en önemli kodumuz ise</p>
<div class="igBar"><span id="lhtml-16"><a href="#" onclick="javascript:showPlainTxt('html-16'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-16">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ddbb00;">&amp;lt;</span>script type=<span style="color: #ddbb00;">&amp;quot;</span>text/javascript<span style="color: #ddbb00;">&amp;quot;</span><span style="color: #ddbb00;">&amp;gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">hs.graphicsDir = 'highslide/graphics/';</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ddbb00;">&amp;lt;</span>/script<span style="color: #ddbb00;">&amp;gt;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>olacak. Bu kodumuzla highslide ın sayfa içerisinde kullanacağı zoom, move gibi araçların resimlerinin yolunuda belirlemiş oluyoruz. Bu kodlardan birini eksik yazarsak highslide düzgün çalışmayacaktır.</p>
<p>Kodlarımızın son hali aşağıdaki gibi olacaktır.</p>
<div class="igBar"><span id="ljavascript-17"><a href="#" onclick="javascript:showPlainTxt('javascript-17'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-17">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&amp;lt;head&amp;gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&amp;lt;link rel=&amp;quot;stylesheet&amp;quot; type=&amp;quot;text<span style="color: #0066FF;">/css&amp;quot; href=&amp;quot;highslide/highslide.<span style="color: #006600;">css</span>&amp;quot; /</span>&amp;gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&amp;lt;script type=&amp;quot;text<span style="color: #0066FF;">/javascript&amp;quot; src=&amp;quot;highslide/highslide-full.<span style="color: #006600;">js</span>&amp;quot;&amp;gt;&amp;lt;/</span>script&amp;gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">hs.<span style="color: #006600;">graphicsDir</span> = <span style="color: #3366CC;">'highslide/graphics/'</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&amp;lt;/script&amp;gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&amp;lt;/head&amp;gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&amp;lt;body&amp;gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>İlk örnek olarak bir resmin tıklanınca büyüyerek ekrana gelmesini gösterelim. Bu sayede highslide mantığınıda biraz olsun görmüş olacağız. Bir resmin büyüyerek ekrana gelmesi için aynı resmin bir küçük bir de büyük haline ihtiyacımız var. Yani küçük olan sayfamızda gözüken resim büyük olan ise tıkladığımızda ekrana gelecek olan resim. Aşağıdaki kodları sayfamızın &lt;body&gt;&lt;/body&gt; tagları arasına yazıyoruz.</p>
<div class="igBar"><span id="lhtml-18"><a href="#" onclick="javascript:showPlainTxt('html-18'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-18">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ddbb00;">&amp;lt;</span>body<span style="color: #ddbb00;">&amp;gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ddbb00;">&amp;lt;</span>a href=<span style="color: #ddbb00;">&amp;quot;</span>resimler/buyuk_resim.jpg<span style="color: #ddbb00;">&amp;quot;</span> class=<span style="color: #ddbb00;">&amp;quot;</span>highslide<span style="color: #ddbb00;">&amp;quot;</span> onclick=<span style="color: #ddbb00;">&amp;quot;</span>return hs.expand(this)<span style="color: #ddbb00;">&amp;quot;</span><span style="color: #ddbb00;">&amp;gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ddbb00;">&amp;lt;</span>img src=<span style="color: #ddbb00;">&amp;quot;</span>resimler/kucuk_resim.jpg<span style="color: #ddbb00;">&amp;quot;</span> title=<span style="color: #ddbb00;">&amp;quot;</span>Büyük hali için tıklayınız<span style="color: #ddbb00;">&amp;quot;</span> /<span style="color: #ddbb00;">&amp;gt;</span><span style="color: #ddbb00;">&amp;lt;</span>/a<span style="color: #ddbb00;">&amp;gt;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ddbb00;">&amp;lt;</span>/body<span style="color: #ddbb00;">&amp;gt;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>
Böylelikle işlemimiz bitiyor. Örneği görmek için <a href="http://www.ismailsimsek.com/ie/highslide/ornek1.html" target="_blank">tıklayınız.</a></p>
<p>Yaptıklarımızı açıklayacak olursak:</p>
<p>Öncelik resmimizin küçük haline link verip büyük halini açmasını istedik. linkimize class ataması yapıp bu linkin bir highslide linki olduğunu ve tıklandığında (onclick) resmi büyüterek açması gerektiğini söyledik.</p>
<p>Umarım faydalı olmuştur. İkinci derste görüşmek üzere.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ismailsimsek.com/html-css-js/highslide/highslide-giris.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Highslide Türkçe Anlatımlar</title>
		<link>http://blog.ismailsimsek.com/html-css-js/highslide/highslide-turkce-anlatimlar.html</link>
		<comments>http://blog.ismailsimsek.com/html-css-js/highslide/highslide-turkce-anlatimlar.html#comments</comments>
		<pubDate>Thu, 05 Feb 2009 16:06:04 +0000</pubDate>
		<dc:creator>İsmail Şimşek</dc:creator>
				<category><![CDATA[Highslide]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[highslide türkçe anlatımlar]]></category>
		<category><![CDATA[highslide türkçe kaynak]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[türkçe kaynak]]></category>

		<guid isPermaLink="false">http://www.webtimi.com/ismail/blog/?p=61</guid>
		<description><![CDATA[Pek yakında Türkçe highslide anlatımlarına ve örneklerine buradan ulaşabilirsiniz. Javascript ile ilgilenen herkesin highslide'ı anlayabileceği şekilde olacak olan anlatımları kaçırmamanızı tavsiye ederim.]]></description>
			<content:encoded><![CDATA[<p>Pek yakında Türkçe highslide anlatımlarına ve örneklerine buradan ulaşabilirsiniz. Javascript ile ilgilenen herkesin highslide'ı anlayabileceği şekilde olacak olan anlatımları kaçırmamanızı tavsiye ederim.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ismailsimsek.com/html-css-js/highslide/highslide-turkce-anlatimlar.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

