<?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>Bilgisayar &#187; JQuery</title>
	<atom:link href="https://www.bilgisayar.me/index.php/category/webtasarim/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.bilgisayar.me</link>
	<description></description>
	<lastBuildDate>Wed, 29 Aug 2018 20:31:06 +0000</lastBuildDate>
	<language>tr-TR</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.2.29</generator>
	<item>
		<title>JQuery ve PHP/MySQL ile kullanıcı adını gerçek zamanlı kontrol etme</title>
		<link>https://www.bilgisayar.me/index.php/2015/08/06/jquery-ve-phpmysql-ile-kullanici-adini-gercek-zamanli-kontrol-etme/</link>
		<comments>https://www.bilgisayar.me/index.php/2015/08/06/jquery-ve-phpmysql-ile-kullanici-adini-gercek-zamanli-kontrol-etme/#comments</comments>
		<pubDate>Thu, 06 Aug 2015 21:57:09 +0000</pubDate>
		<dc:creator><![CDATA[Hakan Atılgan]]></dc:creator>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[MYSQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.bilgisayar.me/?p=1525</guid>
		<description><![CDATA[Bu yazımızda JQuery ajax özelliğini ve PHP kullanarak MySQL'de oluşturulmuş bir tablodan kullanıcı adını daha evvelden bir başkası tarafından kullanılıp kullanılmadığı gerçek zamanlı olarak kontrol etmeden bahsedeceğiz.  &#160;<a href="http://www.bilgisayar.me/demo//kullaniciadikontrol/index.php" target="_blank" class="ozet demo_color">DEMO</a>]]></description>
				<content:encoded><![CDATA[<p>Bu yazımızda JQuery ajax özelliğini ve PHP kullanarak MySQL&#8217;de oluşturulmuş bir tablodan kullanıcı adını daha evvelden bir başkası tarafından kullanılıp kullanılmadığı gerçek zamanlı olarak kontrol etmeden bahsedeceğiz.<br />
Eğer kullanıcı ismi daha evvelden bir başkası tarafından kullanıldıysa &#8220;&#8221;Kullanıcı ismi mevcut değil&#8221;, kullanılmadysa &#8220;Kullanıcı ismi mevcut&#8221; uyarısı ile sitemize kayıt olmaya çalışan kullanıcımızı uyaracağız.<br />
</p>
<div style="text-align:center; width:100%">
<a href="http://www.bilgisayar.me/demo/kullaniciadikontrol/index.php" target="_blank" class="buttons btn_red left"><span class="left">Demo</span></a>
</div>
<p>&nbsp;<br />
<a href="http://www.bilgisayar.me/wp-content/uploads/2015/08/gercek_zamanli.jpg" data-rel="lightbox-image-0" data-rl_title="" data-rl_caption="" title=""><img src="http://www.bilgisayar.me/wp-content/uploads/2015/08/gercek_zamanli.jpg" alt="gercek_zamanli" width="700" height="340" class="alignnone size-full wp-image-1533" /></a><br />
&nbsp;</p>
<p>İlk olarak MySQL veritabanında kullanici_adlari tablosu oluşturalım.</p>
<pre class="prettyprint linenums" >
CREATE TABLE IF NOT EXISTS `kullanici_adlari` (
`kullanici_no` int(11) NOT NULL,
  `kullanici_adi` varchar(20) DEFAULT NULL,
  `isim` varchar(50) DEFAULT NULL,
  `soyad` varchar(50) DEFAULT NULL
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ;
</pre>
<p>Tablomuzu oluşturduktan sonra tablomuzu bazı veriler ile dolduralım.</p>
<pre class="prettyprint linenums" >
INSERT INTO `kullanici_adlari` (`kullanici_no`, `kullanici_adi`, `isim`, `soyad`) VALUES
(1, &#039;hakan&#039;, &#039;Hakan&#039;, &#039;Atılgan&#039;),
(2, &#039;solak&#039;, &#039;Süleyman&#039;, &#039;Solak&#039;),
(3, &#039;mustafa&#039;, &#039;mustafa&#039;, &#039;mustafa&#039;),
(4, &#039;murat&#039;, &#039;murat&#039;, &#039;murat&#039;);
</pre>
<p>Veritabanınızda tabloyu oluşturduktan sonra index.php ve ajax.php dosyaları oluşturun. index.php, ajax ile her harf girildiğinde gerçek zamanlı olarak ajax.php sayfasına giderek, girilen ismi yukarıda oluşturduğumuz kullanıcı_adı tablosundan kontrol edecektir.</p>
<h5>index.php</h5>
<p>CSS: &lt;body> etiketinin hemen üzerine kopyalayalım.</p>
<pre class="prettyprint linenums" >
&lt;style&gt;
.yesil {
    color:#0C6;
}
.kirmizi {
    color:#F00;
}
&lt;/style&gt;
</pre>
<p>HTML: &lt;body> etiketinin hemen altina kopyalayalım.</p>
<pre class="prettyprint linenums" >
&lt;input class=&quot;form-control&quot; name=&quot;kullaniciadi&quot; id=&quot;kullaniciadi&quot; type=&quot;text&quot; /&gt;
&lt;div id=&quot;hatabilgi&quot;&gt;&lt;/div&gt;
</pre>
<p>Jquery: &lt;body> etiketinin hemen üzerine kopyalayalım.</p>
<pre class="prettyprint linenums" >
(function($){
    $(document).on(&quot;keyup&quot;, &quot;#kullaniciadi&quot;,function(){
        $.post( &quot;ajax.php&quot;, { isim: $(this).val() } )
            .done(function( data ) {
                $(&quot;#hatabilgi&quot;).html(data);
        });
    });
})(jQuery);
</pre>
<h5>ajax.php</h5>
<p>PHP: ajax.php sayfasına aşağıdaki php kodunu içine kopyalayın.</p>
<pre class="prettyprint linenums" >
// Burada veritabanı bağlantısını unutmayın
$ret =&#039;&#039;;
$isim =  $mysqli-&gt;real_escape_string($_POST[&#039;isim&#039;]);
$sql=&quot;SELECT * FROM kullanici_adlari WHERE kullanici_adi=&#039;&quot;.$isim.&quot;&#039;&quot;;
$result = $mysqli-&gt;query($sql);
$nt = $result-&gt;fetch_array();
if ($result-&gt;num_rows){
    $ret .= &#039;&lt;span class=&quot;kirmizi&quot;&gt;Kullanıcı ismi mevcut değil&lt;/span&gt;&#039;;
} else {
    $ret .= &#039;&lt;span class=&quot;yesil&quot;&gt;Kullanıcı ismi mevcut&lt;/span&gt;&#039;;
}
echo $ret;
</pre>
<p>index.php dosyası yukarıdaki kodları kopyaladığımızda söyle olacaktır. </p>
<pre class="prettyprint linenums" >
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
&lt;title&gt;Bilgisayar.me&lt;/title&gt;
&lt;script src=&quot;https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;style&gt;
.yesil {
	color:#0C6;
}
.kirmizi {
	color:#F00;
}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;input class=&quot;form-control&quot; name=&quot;kullaniciadi&quot; id=&quot;kullaniciadi&quot; type=&quot;text&quot; /&gt;&lt;br /&gt;
hakan, solak, mustafa veya murat isimlerini deneyin
&lt;div id=&quot;hatabilgi&quot;&gt;&lt;/div&gt;
&lt;script&gt;
(function($){
    $(document).on(&quot;keyup&quot;, &quot;#kullaniciadi&quot;,function(){
        $.post( &quot;ajax.php&quot;, { isim: $(this).val() } )
            .done(function( data ) {
            $(&quot;#hatabilgi&quot;).html(data);
        });
    });
})(jQuery);
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>Bu yazıda JQuery ve PHP/MySQL ile kullanıcı adını veritabanından gerçek zamanlı kontrol etme nasıl kodlanırı açıklamaya çalıştım. Bir hata bulduysanız veya kod çalışmadıysa, üşenmeyin aşağıya iki tıklama, bir cümleyle yorum yazın.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.bilgisayar.me/index.php/2015/08/06/jquery-ve-phpmysql-ile-kullanici-adini-gercek-zamanli-kontrol-etme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Jquery ve PHP/MYSQL ile text etiketini otomatik olarak tamamlama</title>
		<link>https://www.bilgisayar.me/index.php/2015/08/05/jquery-ve-phpmysql-ile-text-etiketini-otomatik-olarak-tamamlama/</link>
		<comments>https://www.bilgisayar.me/index.php/2015/08/05/jquery-ve-phpmysql-ile-text-etiketini-otomatik-olarak-tamamlama/#comments</comments>
		<pubDate>Wed, 05 Aug 2015 20:59:39 +0000</pubDate>
		<dc:creator><![CDATA[Hakan Atılgan]]></dc:creator>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[MYSQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.bilgisayar.me/?p=1492</guid>
		<description><![CDATA[Herhangi JQuery etiketi kullanmadan text etiketinde aranılan kelimeyi MySQL veritabanından sorgulama örneği. <a href="https://app.box.com/s/b1936l8ty45aytkaaq0n57jajztwf1am"  class="ozet yukle_color">YÜKLE</a>&#160;<a href="http://www.bilgisayar.me/demo/otomatiktexttamamlama/index.php" target="_blank" class="ozet demo_color">DEMO</a>]]></description>
				<content:encoded><![CDATA[<p></p>
<div style="text-align:center; width:100%">
<a href="http://www.bilgisayar.me/demo/otomatiktexttamamlama/index.php" target="_blank" class="buttons btn_red left"><span class="left">Demo</span></a>
<a href="https://app.box.com/s/b1936l8ty45aytkaaq0n57jajztwf1am" target="_blank" class="buttons btn_blue left"><span class="left"><i class="fa fa-download"></i> YÜKLE</span></a>
</div>
<p>&nbsp;<br />
&nbsp;<br />
&nbsp;</p>
<p>İlk önce aşağıdaki bağlantıları sayfanıza &lt;body> etiketinin hemen üzerine ekleyin.</p>
<pre class="prettyprint linenums" >
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css&quot;/&gt;
&lt;script src=&quot;https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js&quot;&gt;&lt;/script&gt;
</pre>
<p>CSS<br />
&lt;body> etiketinin hemen üzerine ekleyin.</p>
<pre class="prettyprint linenums" >
&lt;style&gt;
input[type=&quot;text&quot;]{
    border-radius: 0px !important;
    background-clip: padding-box !important;
    color: #858585;
    background-color: #FBFBFB;
    border: 1px solid #D5D5D5;
    font-family: inherit;
    transition: box-shadow 0.45s ease 0s, border-color 0.45s ease-in-out 0s;
    box-shadow: none;
}
.dropdown-menu {
    min-width: 200px !important;
}
&lt;/style&gt;
</pre>
<p>HTML<br />
&lt;body> etiketinin hemen altına ekleyin.</p>
<pre class="prettyprint linenums" >
&lt;div class=&quot;col-lg-6&quot;&gt;
      &lt;div class=&quot;input-group input-group-lg&quot;&gt;
        &lt;input class=&quot;form-control&quot; type=&quot;text&quot; id=&quot;sehirara&quot;&gt;
        &lt;span class=&quot;input-group-btn&quot;&gt;
        &lt;button class=&quot;btn btn-default&quot; type=&quot;button&quot;&gt;Ara&lt;/button&gt;
        &lt;/span&gt; &lt;/div&gt;
        &lt;div class=&quot;input-group-btn&quot; id=&quot;menuac&quot;&gt;
          &lt;ul class=&quot;dropdown-menu&quot; id=&quot;liyapistir&quot;&gt;
          &lt;/ul&gt;
        &lt;/div&gt;
    &lt;/div&gt;
</pre>
<p>JQuery<br />
&lt;/body> etiketinin hemen üzerine ekleyin.</p>
<pre class="prettyprint linenums" >
&lt;script&gt;
(function($){
    $(document).on(&quot;keyup&quot;, &quot;#sehirara&quot;,function(){
		var sehirara = $(&quot;#sehirara&quot;).val();
		if (sehirara.length &gt; 2){ // aranılan kelime 2 harften fazla olmallı
            $.ajax({
                type: &quot;POST&quot;,
                url: &quot;ajax.php&quot;,
                data: {
                    sehir: sehirara,
                },
                error: function (xhr, textStatus, errorThrown) {
                    alert(&#039;Hata: &#039; + xhr.responseText);
                },
                success: function (data) {
				    $(&quot;#menuac&quot;).addClass(&#039;open&#039;);
                    $(&quot;#liyapistir&quot;).html(data)
                }
            });
		}
	});
	$(document).on(&quot;click&quot;, &quot;#liyapistir li a&quot;,function(){
		$(&quot;#sehirara&quot;).val($(this).html());
		$(&quot;#menuac&quot;).removeClass(&#039;open&#039;);
	});
	$(document).on(&quot;click&quot;, &quot;body&quot;,function(){
		$(&quot;#menuac&quot;).removeClass(&#039;open&#039;);
	});
})(jQuery);
&lt;/script&gt;
</pre>
<p>PHP<br />
ajax isminde bir php sayfası (ajax.php) oluşturun ve aşağıdaki PHP kodunu bu sayfanın içne kopyalayın. Varitabanına bağlantı kurmayı unutmayın.</p>
<pre class="prettyprint linenums" >
&lt;?PHP
$db_host = &quot;localhost&quot;; //Host address
$db_name = &quot;veritabaniismi&quot;; //veritabani ismi
$db_user = &quot;veritabani kullanici ismi&quot;; //veritabani kullanici ismi
$db_pass = &quot;sifre&quot;; //sifre
$mysqli = new mysqli($db_host, $db_user, $db_pass, $db_name);

$mysqli-&gt;query(&quot;SET NAMES utf8&quot;);
if(mysqli_connect_errno()) {
    echo &quot;Hata Oluştu: &quot; . mysqli_connect_errno();
    exit();
}

$sehir = $mysqli-&gt;real_escape_string($_POST[&#039;sehir&#039;]);
$sql=&quot;SELECT * FROM iller WHERE sehir LIKE&#039;%&quot;.$sehir.&quot;%&#039; ORDER BY sehir ASC LIMIT 15&quot;;
$result = $mysqli-&gt;query($sql);
$ret = &#039;&#039;;
if ($result-&gt;num_rows){
    while ($nt = $result-&gt;fetch_array()){
        $ret .= &#039;&lt;li id=&quot;&#039;.$nt[&#039;id&#039;].&#039;&quot;&gt;&lt;a href=&quot;#&quot;&gt;&#039;.$nt[&#039;sehir&#039;].&#039;&lt;/a&gt;&lt;/li&gt;&#039;;
    }
} else {
	$ret .= &#039;&lt;li&gt; Şehir Bulunamadı&lt;/li&gt;&#039;;
}
echo $ret;
?&gt;
</pre>
<p>Veritabanınızda iller tablosu oluşturun.</p>
<pre class="prettyprint linenums" >
CREATE TABLE IF NOT EXISTS `iller` (
  `id` int(11) NOT NULL,
  `sehir` varchar(50) DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=82 DEFAULT CHARSET=utf8;
</pre>
<p>En son olarakda aşağıdaki illeri bu tablonun içine yerlştirin.</p>
<pre class="prettyprint linenums" >
INSERT INTO `iller` (`id`, `sehir`) VALUES
(1, &#039;ADANA&#039;),
(2, &#039;ADIYAMAN&#039;),
(3, &#039;AFYON&#039;),
(4, &#039;AĞRI&#039;),
(68, &#039;AKSARAY&#039;),
(5, &#039;AMASYA&#039;),
(6, &#039;ANKARA&#039;),
(7, &#039;ANTALYA&#039;),
(75, &#039;ARDAHAN&#039;),
(8, &#039;ARTVİN&#039;),
(9, &#039;AYDIN&#039;),
(10, &#039;BALIKESİR&#039;),
(74, &#039;BARTIN&#039;),
(72, &#039;BATMAN&#039;),
(69, &#039;BAYBURT&#039;),
(11, &#039;BİLECİK&#039;),
(12, &#039;BİNGÖL&#039;),
(13, &#039;BİTLİS&#039;),
(14, &#039;BOLU&#039;),
(15, &#039;BURDUR&#039;),
(16, &#039;BURSA&#039;),
(17, &#039;ÇANAKKALE&#039;),
(18, &#039;ÇANKIRI&#039;),
(19, &#039;ÇORUM&#039;),
(20, &#039;DENİZLİ&#039;),
(21, &#039;DİYARBAKIR&#039;),
(81, &#039;DÜZCE&#039;),
(22, &#039;EDİRNE&#039;),
(23, &#039;ELAZIĞ&#039;),
(24, &#039;ERZİNCAN&#039;),
(25, &#039;ERZURUM&#039;),
(26, &#039;ESKİŞEHİR&#039;),
(27, &#039;GAZİANTEP&#039;),
(28, &#039;GİRESUN&#039;),
(29, &#039;GÜMÜŞHANE&#039;),
(30, &#039;HAKKARİ&#039;),
(31, &#039;HATAY&#039;),
(33, &#039;İÇEL&#039;),
(76, &#039;IĞDIR&#039;),
(32, &#039;ISPARTA&#039;),
(34, &#039;İSTANBUL&#039;),
(35, &#039;İZMİR&#039;),
(46, &#039;KAHRAMANMARAŞ&#039;),
(78, &#039;KARABÜK&#039;),
(70, &#039;KARAMAN&#039;),
(36, &#039;KARS&#039;),
(37, &#039;KASTAMONU&#039;),
(38, &#039;KAYSERİ&#039;),
(79, &#039;KİLİS&#039;),
(71, &#039;KIRIKKALE&#039;),
(39, &#039;KIRKLARELİ&#039;),
(40, &#039;KIRŞEHİR&#039;),
(41, &#039;KOCAELİ&#039;),
(42, &#039;KONYA&#039;),
(43, &#039;KÜTAHYA&#039;),
(44, &#039;MALATYA&#039;),
(45, &#039;MANİSA&#039;),
(47, &#039;MARDİN&#039;),
(48, &#039;MUĞLA&#039;),
(49, &#039;MUŞ&#039;),
(50, &#039;NEVŞEHİR&#039;),
(51, &#039;NİĞDE&#039;),
(52, &#039;ORDU&#039;),
(80, &#039;OSMANİYE&#039;),
(53, &#039;RİZE&#039;),
(54, &#039;SAKARYA&#039;),
(55, &#039;SAMSUN&#039;),
(63, &#039;ŞANLIURFA&#039;),
(56, &#039;SİİRT&#039;),
(57, &#039;SİNOP&#039;),
(73, &#039;ŞIRNAK&#039;),
(58, &#039;SİVAS&#039;),
(59, &#039;TEKİRDAĞ&#039;),
(60, &#039;TOKAT&#039;),
(61, &#039;TRABZON&#039;),
(62, &#039;TUNCELİ&#039;),
(64, &#039;UŞAK&#039;),
(65, &#039;VAN&#039;),
(77, &#039;YALOVA&#039;),
(66, &#039;YOZGAT&#039;),
(67, &#039;ZONGULDAK&#039;);
</pre>
]]></content:encoded>
			<wfw:commentRss>https://www.bilgisayar.me/index.php/2015/08/05/jquery-ve-phpmysql-ile-text-etiketini-otomatik-olarak-tamamlama/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JQuery ile HTML textarea etiketinde kelime sınırlaması</title>
		<link>https://www.bilgisayar.me/index.php/2015/08/05/jquery-ile-html-textarea-etiketinde-kelime-sinirlamasi/</link>
		<comments>https://www.bilgisayar.me/index.php/2015/08/05/jquery-ile-html-textarea-etiketinde-kelime-sinirlamasi/#comments</comments>
		<pubDate>Wed, 05 Aug 2015 18:19:02 +0000</pubDate>
		<dc:creator><![CDATA[Hakan Atılgan]]></dc:creator>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[textarea]]></category>

		<guid isPermaLink="false">http://www.bilgisayar.me/?p=1482</guid>
		<description><![CDATA[Sitenizde kullanacabileceğiniz kopyala yapıştır tarzında bir textarea etiketinde kelime sınırlaması örneği&#160;<a href="http://www.bilgisayar.me/demo/textareakelimesinirlama/index.php" target="_blank" class="ozet demo_color">DEMO</a>]]></description>
				<content:encoded><![CDATA[<p>Jquery eklentisini sayfanıza eklemeyi unutmayın.</p>
<p></p>
<div style="text-align:center; width:100%">
<a href="http://www.bilgisayar.me/demo/textareakelimesinirlama/index.php" target="_blank" class="buttons btn_red left"><span class="left">Demo</span></a>
</div>
<p>&nbsp;<br />
&nbsp;<br />
&nbsp;</p>
<p>HTML</p>
<pre class="prettyprint linenums" >
&lt;textarea name=&quot;textarea_etiketi&quot; id=&quot;textarea_etiketi&quot; class=&quot;form-control karakter&quot;&gt;&lt;/textarea&gt;
&lt;div class=&quot;kalan&quot;&gt;
    Kalan &lt;span id=&quot;kalan_karakter&quot;&gt;&lt;/span&gt; karakter sayısı
&lt;/div&gt;
</pre>
<p>JQuery</p>
<pre class="prettyprint linenums" >
&lt;script&gt;
var max_karakter_sayisi = 500;
(function($){
    $(&quot;#kalan_karakter&quot;).html(max_karakter_sayisi);
    $(&#039;#textarea_etiketi&#039;).bind(&#039;input propertychange&#039;, function() {
        karakterSay();
    });
    $(&#039;#textarea_etiketi&#039;).bind(&#039;keyup&#039;, null, function(e) {
        karakterSay();
    });
})(jQuery);

function karakterSay(){
    var textareaetiketi = $(&quot;#textarea_etiketi&quot;).val();
    var textareaetiketi_uzunluk = textareaetiketi.length;
    var kalan_karakter = max_karakter_sayisi - textareaetiketi_uzunluk;
    if(textareaetiketi_uzunluk &lt;= max_karakter_sayisi)
    {
        $(&quot;#kalan_karakter&quot;)
			.html(kalan_karakter)
			.css(&quot;color&quot;, (kalan_karakter &lt;=10 ? &quot;#000000&quot; : &quot;#666&quot;))
			.css(&quot;font-weight&quot;, &#039;normal&#039;);
    }
    else
    {
        $(&quot;#kalan_karakter&quot;)
			.html(kalan_karakter)
			.css(&quot;color&quot;, &quot;#FF0000&quot;).css(&quot;font-weight&quot;, &#039;bold&#039;);
    }
}
&lt;/script&gt;
</pre>
<p>Hepsi bir arada</p>
<pre class="prettyprint linenums" >
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
&lt;title&gt;JQuery ile HTML textarea etiketinde kelime sınırlaması&lt;/title&gt;
&lt;script src=&quot;https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;textarea name=&quot;textarea_etiketi&quot; id=&quot;textarea_etiketi&quot; style=&quot;width:99%; padding:5px; height:auto; line-height:1.6em;&quot;&gt;&lt;/textarea&gt;
&lt;div class=&quot;kalan&quot;&gt; Kalan &lt;span id=&quot;kalan_karakter&quot;&gt;&lt;/span&gt; karakter sayısı &lt;/div&gt;
&lt;script&gt;
var max_karakter_sayisi = 500;
(function($){
    $(&quot;#kalan_karakter&quot;).html(max_karakter_sayisi);
    $(&#039;#textarea_etiketi&#039;).bind(&#039;input propertychange&#039;, function() {
        karakterSay();
    });
    $(&#039;#textarea_etiketi&#039;).bind(&#039;keyup&#039;, null, function(e) {
        karakterSay();
    });
})(jQuery);

function karakterSay(){
    var textareaetiketi = $(&quot;#textarea_etiketi&quot;).val();
    var textareaetiketi_uzunluk = textareaetiketi.length;
    var kalan_karakter = max_karakter_sayisi - textareaetiketi_uzunluk;
    if(textareaetiketi_uzunluk &lt;= max_karakter_sayisi)
    {
        $(&quot;#kalan_karakter&quot;)
			.html(kalan_karakter)
			.css(&quot;color&quot;, (kalan_karakter &lt;=10 ? &quot;#000000&quot; : &quot;#666&quot;))
			.css(&quot;font-weight&quot;, &#039;normal&#039;);
    }
    else
    {
        $(&quot;#kalan_karakter&quot;)
			.html(kalan_karakter)
			.css(&quot;color&quot;, &quot;#FF0000&quot;).css(&quot;font-weight&quot;, &#039;bold&#039;);
    }
}
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>https://www.bilgisayar.me/index.php/2015/08/05/jquery-ile-html-textarea-etiketinde-kelime-sinirlamasi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP/MYSQL ve JQuery ile Basit Dosya Yönetici Uygulaması</title>
		<link>https://www.bilgisayar.me/index.php/2015/07/31/phpmysql-ve-jquery-ile-basit-dosya-yonetici-uygulamasi/</link>
		<comments>https://www.bilgisayar.me/index.php/2015/07/31/phpmysql-ve-jquery-ile-basit-dosya-yonetici-uygulamasi/#comments</comments>
		<pubDate>Fri, 31 Jul 2015 22:41:45 +0000</pubDate>
		<dc:creator><![CDATA[Hakan Atılgan]]></dc:creator>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[MYSQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.bilgisayar.me/?p=1427</guid>
		<description><![CDATA[PHP/ySQL uygulamalarınızda kullanabileceğiniz basit dosya yönetici uygulaması. <a href="https://app.box.com/s/csym5n2j0x5h4bnbaxb6zwhommm4m4ih"  target="_blank" class="ozet yukle_color">YÜKLE</a>]]></description>
				<content:encoded><![CDATA[<p></p>
<div style="text-align:center; width:100%">
<a href="https://app.box.com/s/csym5n2j0x5h4bnbaxb6zwhommm4m4ih" target="_blank" class="buttons btn_blue left"><span class="left"><i class="fa fa-download"></i> YÜKLE</span></a>
</div>
<p>&nbsp;<br />
&nbsp;<br />
&nbsp;</p>
<h5>Özellikler:</h3>
<ul>
<li>Klasör oluşturma</li>
<li>Dropzone Jquery eklentisi ile sabit diske dosya yükleme</li>
<li>Çoklu veya tek dosya silme</li>
</ul>
<h5>Ekran Görüntüleri:</h3>
<p><a href="http://www.bilgisayar.me/wp-content/uploads/2015/07/dosya_yonetici.jpg" data-rel="lightbox-image-0" data-rl_title="" data-rl_caption="" title=""><img src="http://www.bilgisayar.me/wp-content/uploads/2015/07/dosya_yonetici.jpg" alt="dosya_yonetici" width="700" height="340" class="alignnone size-full wp-image-1428" /></a></p>
<p><a href="http://www.bilgisayar.me/wp-content/uploads/2015/07/dosya_yonetici_1.jpg" data-rel="lightbox-image-1" data-rl_title="" data-rl_caption="" title=""><img src="http://www.bilgisayar.me/wp-content/uploads/2015/07/dosya_yonetici_1.jpg" alt="dosya_yonetici_1" width="900" height="194" class="alignnone size-full wp-image-1434" /></a></p>
<p><a href="http://www.bilgisayar.me/wp-content/uploads/2015/07/dosya_yonetici_2.jpg" data-rel="lightbox-image-2" data-rl_title="" data-rl_caption="" title=""><img src="http://www.bilgisayar.me/wp-content/uploads/2015/07/dosya_yonetici_2.jpg" alt="dosya_yonetici_2" width="720" height="470" class="alignnone size-large wp-image-1435" /></a></p>
<p><a href="http://www.bilgisayar.me/wp-content/uploads/2015/07/dosya_yonetici_3.jpg" data-rel="lightbox-image-3" data-rl_title="" data-rl_caption="" title=""><img src="http://www.bilgisayar.me/wp-content/uploads/2015/07/dosya_yonetici_3.jpg" alt="dosya_yonetici_3" width="720" height="261" class="alignnone size-large wp-image-1436" /></a></p>
]]></content:encoded>
			<wfw:commentRss>https://www.bilgisayar.me/index.php/2015/07/31/phpmysql-ve-jquery-ile-basit-dosya-yonetici-uygulamasi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JQuery ile bir dizeden dizi oluşturma</title>
		<link>https://www.bilgisayar.me/index.php/2015/07/29/jquery-ile-bir-dizeden-dizi-olusturma/</link>
		<comments>https://www.bilgisayar.me/index.php/2015/07/29/jquery-ile-bir-dizeden-dizi-olusturma/#comments</comments>
		<pubDate>Wed, 29 Jul 2015 20:12:55 +0000</pubDate>
		<dc:creator><![CDATA[Hakan Atılgan]]></dc:creator>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[array]]></category>
		<category><![CDATA[dizeler]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.bilgisayar.me/?p=1347</guid>
		<description><![CDATA[jQuery split() işlevi ile bir dizeden(string) bir dizi(array), jQuery join() işlevi ile de tekrardan bir diziyi bir dizeye dönüştürmek oldukça basit bir işlemdir.]]></description>
				<content:encoded><![CDATA[<p>jQuery split() işlevi ile bir dizeden(string) bir dizi(array), jQuery join() işlevi ile de tekrardan bir diziyi bir dizeye dönüştürmek oldukça basit bir işlemdir.</p>
<p>Arraylar(dizi) hakkında bilgilerinizi tazelemek için <a href="http://php.net/manual/tr/language.types.array.php" target="_blank">burayı <i class="fa fa-external-link"></i></a> tıklayın.</p>
<h4>split() işlevi</h4>
<p>Örneğin elimizde aşağıdaki gibi bir dizemiz olsun.</p>
<pre class="prettyprint linenums" >
&lt;script&gt;
var dize = &quot;a,b,c,s,t,u,p,d&quot;;
var dizi = dize.split(&#039;,&#039;);
&lt;/script&gt;
</pre>
<p>Diziyi döngü içine almak istersek</p>
<pre class="prettyprint linenums" >
&lt;script&gt;
$.each(dizi, function(index, value) { 
    alert(index + &#039;: &#039; + value);
});
&lt;/script&gt;
</pre>
<p>Dizideki değerlere tek tek ulaşmak için</p>
<pre class="prettyprint linenums" >
// diziler 0&#039; dan başlarlar
dizi[0]; // a 
dizi[3]; // s
dizi[5]; // u
</pre>
<p>Bazı dize örnekleri</p>
<pre class="prettyprint linenums" >
var dize = &quot;a b c s t u p d&quot;;
var dizi = dize.split(&#039; &#039;);

var dize = &quot;a:b:c:s:t:u:p:d&quot;;
var dizi = dize.split(&#039;:&#039;);
</pre>
<h4>join() işlevi</h4>
<p>Bir diziyi dizeye dönüştürmek için kullanılır.</p>
<pre class="prettyprint linenums" >
var dizi= new Array(&quot;A&quot;, &quot;B&quot;, &quot;C&quot;, &quot;E&quot;, &quot;F&quot;, &quot;Z&quot;, &quot;S&quot;, &quot;D&quot;); // dizi oluştur
var dize= dizi.join(&#039;,&#039;); // diziyi dizeye dönüştür
alert(dize); // dizemiz A,B,C,E,F,Z,S,D 
</pre>
]]></content:encoded>
			<wfw:commentRss>https://www.bilgisayar.me/index.php/2015/07/29/jquery-ile-bir-dizeden-dizi-olusturma/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Jquery ile HTML seçme kutusuna  bir değer ekleme</title>
		<link>https://www.bilgisayar.me/index.php/2015/07/29/jquery-ile-html-secme-kutusuna-bir-deger-ekleme/</link>
		<comments>https://www.bilgisayar.me/index.php/2015/07/29/jquery-ile-html-secme-kutusuna-bir-deger-ekleme/#comments</comments>
		<pubDate>Wed, 29 Jul 2015 19:14:44 +0000</pubDate>
		<dc:creator><![CDATA[Hakan Atılgan]]></dc:creator>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[seçenek kutusu]]></category>

		<guid isPermaLink="false">http://www.bilgisayar.me/?p=1320</guid>
		<description><![CDATA[Bu yazımızda jQuery ile HTML seçme kutusuna yeni bir seçenek eklemek nasıl olur onu öğrenecegiz. <a href="http://www.bilgisayar.me/demo/addoptionselectbox/index.php" class="ozet demo_color" target="_blank">DEMO</a>]]></description>
				<content:encoded><![CDATA[<p>Bu yazımızda jQuery ile HTML seçme kutusuna yeni bir seçenek eklemek nasıl olur onu öğrenecegiz.<br />
&nbsp;</p>
<div style="width: 100%; text-align: center;"><a href="http://www.bilgisayar.me/demo/addoptionselectbox/index.php" target="_blank" class="buttons btn_red left"><span class="left">Demo</span></a></div>
<p>&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
<a href="http://www.bilgisayar.me/wp-content/uploads/2015/07/secenekkutusu.jpg" data-rel="lightbox-image-0" data-rl_title="" data-rl_caption="" title=""><img src="http://www.bilgisayar.me/wp-content/uploads/2015/07/secenekkutusu.jpg" alt="secenekkutusu" width="505" height="380" class="alignnone size-full wp-image-1341" /></a><br />
&nbsp;<br />
jQuery ile HTML seçme kutusuna yeni bir seçenek eklemek için önce seçenek kutumuzu oluşturalım.</p>
<pre class="prettyprint linenums" >
&lt;select name=&quot;box-1&quot; id=&quot;box-1&quot; class=&quot;form-control&quot;&gt;
    &lt;option val=&quot;MYSQL&quot;&gt;MYSQL&lt;/option&gt;
    &lt;option val=&quot;PHP&quot;&gt;PHP&lt;/option&gt;
    &lt;option val=&quot;JQuery&quot;&gt;JQuery&lt;/option&gt;
    &lt;option val=&quot;HTML&quot;&gt;HTML&lt;/option&gt;
    &lt;option val=&quot;CSS3&quot;&gt;CSS3&lt;/option&gt;
&lt;/select&gt;
&lt;input name=&quot;yeniekle&quot;  id=&quot;yeniekle&quot; type=&quot;text&quot; class=&quot;form-control&quot; placeholder=&quot;eklenecek kelime&quot;/&gt;
&lt;button name=&quot;secekle&quot; id=&quot;secekle&quot; type=&quot;button&quot; class=&quot;btn btn-info&quot;&gt;Yeni Ekle&lt;/button&gt;
</pre>
<p>Daha sonra JQuery kodu ile istenilen kelimeyi seçenek kutumuza ekleyelim.</p>
<pre class="prettyprint linenums" >
&lt;script&gt;
(function($){
    $(document).on(&quot;click&quot;, &quot;#secekle&quot;,function(){
        var yeniekle = $(&quot;#yeniekle&quot;).val();
        if (yeniekle !=&#039;&#039;){
            $(&#039;#box-1&#039;).append(&#039;&lt;option value=&quot;&#039; + yeniekle + &#039;&quot; selected=&quot;selected&quot;&gt;&#039; + yeniekle + &#039;&lt;/option&gt;&#039;);
            $(&quot;#yeniekle&quot;).val(&#039;&#039;);
        } else {
            alert (&quot;Eklenecek Kelimeyi Girin&quot;);	
            return false;
        }
    });
})(jQuery);
&lt;/script&gt;
</pre>
<p>Hepsi bir arada</p>
<pre class="prettyprint linenums" >
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
&lt;title&gt;Bilgisayar.me&lt;/title&gt;
&lt;script src=&quot;https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div&gt;
&lt;select name=&quot;box-1&quot; id=&quot;box-1&quot; class=&quot;form-control&quot;&gt;
    &lt;option val=&quot;MYSQL&quot;&gt;MYSQL&lt;/option&gt;
    &lt;option val=&quot;PHP&quot;&gt;PHP&lt;/option&gt;
    &lt;option val=&quot;JQuery&quot;&gt;JQuery&lt;/option&gt;
    &lt;option val=&quot;HTML&quot;&gt;HTML&lt;/option&gt;
    &lt;option val=&quot;CSS3&quot;&gt;CSS3&lt;/option&gt;
&lt;/select&gt;
&lt;input name=&quot;yeniekle&quot;  id=&quot;yeniekle&quot; type=&quot;text&quot; class=&quot;form-control&quot; placeholder=&quot;eklenecek kelime&quot;/&gt;
&lt;button name=&quot;secekle&quot; id=&quot;secekle&quot; type=&quot;button&quot; class=&quot;btn btn-info&quot;&gt;Yeni Ekle&lt;/button&gt;
&lt;/div&gt;
&lt;script&gt;
(function($){
    $(document).on(&quot;click&quot;, &quot;#secekle&quot;,function(){
        var yeniekle = $(&quot;#yeniekle&quot;).val();
        if (yeniekle !=&#039;&#039;){
            $(&#039;#box-1&#039;).append(&#039;&lt;option value=&quot;&#039; + yeniekle + &#039;&quot; selected=&quot;selected&quot;&gt;&#039; + yeniekle + &#039;&lt;/option&gt;&#039;);
            $(&quot;#yeniekle&quot;).val(&#039;&#039;);
        } else {
            alert (&quot;Eklenecek Kelimeyi Girin&quot;);	
            return false;
        }
    });
})(jQuery);
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>https://www.bilgisayar.me/index.php/2015/07/29/jquery-ile-html-secme-kutusuna-bir-deger-ekleme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JQuery ile form değerlerinin değişip değişmedigini kontrol etme</title>
		<link>https://www.bilgisayar.me/index.php/2015/07/24/jquery-ile-form-degerlerinin-degisip-degismedigini-kontrol-etme/</link>
		<comments>https://www.bilgisayar.me/index.php/2015/07/24/jquery-ile-form-degerlerinin-degisip-degismedigini-kontrol-etme/#comments</comments>
		<pubDate>Sat, 25 Jul 2015 00:56:02 +0000</pubDate>
		<dc:creator><![CDATA[Hakan Atılgan]]></dc:creator>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[serialize]]></category>

		<guid isPermaLink="false">http://www.bilgisayar.me/?p=1190</guid>
		<description><![CDATA[JQuery ile formu submit etmeden önce form değerlerinin değişip değişmedigini kontrol etme]]></description>
				<content:encoded><![CDATA[<span class="su-label su-label-type-success">FORM</span> bilgilerini veritabanına göndermeden önce, <span class="su-label su-label-type-success">FORM</span> değerlerinin değişip değişmedigini kontrol etmek istersek, önceki <span class="su-label su-label-type-success">FORM</span> bilgileri ile yeni FORM bilgilerini aşağıdaki örnekte görüldüğü üzere <span class="su-label su-label-type-success">SERIALIZE</span> ile kıyaslamamız yeterlidir.  </p>
<pre class="prettyprint linenums" >
(function() {
    var formoncekiveri = $(&quot;#form&quot;).serialize(); 
    $(&quot;#kaydetbutton&quot;).click(function() {
        if ($(&quot;#form&quot;).serialize() != formoncekiveri ) {
            // form yeni verilere sahip
        }
    });
});
</pre>
<p>HTML sayfasında görmek istersek</p>
<pre class="prettyprint linenums" >
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
&lt;title&gt;Bilgisayar.me&lt;/title&gt;
&lt;script src=&quot;https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;form id=&quot;form&quot;&gt;
  &lt;table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;
    &lt;tr&gt;
      &lt;td width=&quot;10%&quot;&gt;&nbsp;&lt;/td&gt;
      &lt;td width=&quot;90%&quot;&gt;&nbsp;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;İsim&lt;/td&gt;
      &lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;isim&quot; id=&quot;isim&quot; value=&quot;Hakan&quot; /&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Soyad&lt;/td&gt;
      &lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;soyad&quot; id=&quot;soyad&quot; value=&quot;Atilgan&quot;/&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;
&lt;/form&gt;
&lt;button name=&quot;kaydetbutton&quot; id=&quot;kaydetbutton&quot; type=&quot;submit&quot;&gt;Kaydet&lt;/button&gt;
&lt;script type=&#039;text/javascript&#039;&gt;
(function() {
    var formoncekiveri = $(&quot;#form&quot;).serialize(); // ilk FROM verilerini sakla
    $(document).on(&quot;click&quot;,&quot;#kaydetbutton&quot;, function(e) {
        e.preventDefault();
        if ($(&quot;#form&quot;).serialize() != formoncekiveri ) { // ilk ve son FROM verilerini kıyasla
            alert(&quot;Form Değişti&quot;);
        } else {
            alert(&quot;Form Değişmedi&quot;);	
        }
    });
})(jQuery);
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>https://www.bilgisayar.me/index.php/2015/07/24/jquery-ile-form-degerlerinin-degisip-degismedigini-kontrol-etme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JQuery ile AJAX içinde sesli uyarı (NOTIFY) popup kullanımı</title>
		<link>https://www.bilgisayar.me/index.php/2015/07/24/jquery-ile-ajax-icinde-uyari-notify-popup-kullanimi/</link>
		<comments>https://www.bilgisayar.me/index.php/2015/07/24/jquery-ile-ajax-icinde-uyari-notify-popup-kullanimi/#comments</comments>
		<pubDate>Fri, 24 Jul 2015 19:29:00 +0000</pubDate>
		<dc:creator><![CDATA[Hakan Atılgan]]></dc:creator>
				<category><![CDATA[JQuery]]></category>

		<guid isPermaLink="false">http://www.bilgisayar.me/?p=1246</guid>
		<description><![CDATA[<a href="https://app.box.com/s/5gga9dijv3fuchua2uqaymhmfm5810nj" class="ozet yukle_color" target="_blank">YÜKLE</a> <a href="http://www.bilgisayar.me/demo/notifypopup/uyari.php" class="ozet demo_color" target="_blank">DEMO</a>]]></description>
				<content:encoded><![CDATA[<p><a href="https://github.com/CodeSeven/toastr" target="_blank">Toaster <i class="fa fa-external-link"></i></a> Jquery eklentisini ile sesli ajax uyari popup uygulaması</p>
<div style="width: 100%; text-align: center;"><a href="http://www.bilgisayar.me/demo/notifypopup/uyari.php" target="_blank" class="buttons btn_red left"><span class="left">Demo</span></a>
<a href="https://app.box.com/s/5gga9dijv3fuchua2uqaymhmfm5810nj" target="_blank" class="buttons btn_blue left"><span class="left"><i class="fa fa-download"></i> YÜKLE</span></a></div>
<p>&nbsp;<br />
&nbsp;<br />
&nbsp;</p>
<p>HTML</p>
<pre class="prettyprint linenums" >
&lt;input class=&quot;form-control&quot; type=&quot;text&quot; id=&quot;warning&quot; value=&quot;&quot; placeholder=&quot;İsim&quot;&gt;&lt;button class=&quot;btn btn-warning uyari&quot;&gt;Kaydet&lt;/button&gt;
&lt;script&gt;
(function($){
    $(document).on(&quot;click&quot;,&quot;.uyari&quot;,function(){
        var warning = $(&quot;#warning&quot;);
        if (warning.val() !=&#039;&#039;){
            $.ajax({
                type: &quot;POST&quot;,
                url: &quot;ajax.php&quot;,
                data:  &quot;action=warning&quot;,
                success: function(html){
                    warning.val(&#039;&#039;);
                    Notify(&#039;Başarıyla güncellendi&#039;, &#039;top-right&#039;, &#039;5000&#039;, &#039;success&#039;, &#039;fa-check&#039;, true); return false;		
                }
            })
        } else {
            Notify(&#039;İsim alanı gerekli&#039;, &#039;top-right&#039;, &#039;5000&#039;, &#039;danger&#039;, &#039;fa-times&#039;, true); return false;		
        }
    });
});
&lt;/script&gt;
</pre>
<p>uyari.js</p>
<pre class="prettyprint linenums" >
//Notify(&#039;Başarıyla güncellendi&#039;, &#039;top-right&#039;, &#039;5000&#039;, &#039;success&#039;, &#039;fa-check&#039;, true)
function Notify(uyari, pozisyon, timeOut, uyarisekli, faikon, button) {
    toastr.options.positionClass = &quot;toast-&quot; + pozisyon;
    toastr.options.extendedTimeOut = 0;
    toastr.options.timeOut = timeOut;
    toastr.options.closeButton = button;
    toastr.options.iconClass = faikon + &quot; toast-&quot; + uyarisekli;
    toastr.custom(uyari)
}
</pre>
<p>Hepsi bir arada</p>
<pre class="prettyprint linenums" >
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
&lt;title&gt;Bilgisayar.me&lt;/title&gt;
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css&quot;/&gt;
&lt;script src=&quot;toaster.css&quot;&gt;&lt;/script&gt;
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css&quot;/&gt;
&lt;script src=&quot;https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;toaster.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;uyari.js&quot;&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div class=&quot;container&quot;&gt;
  &lt;div class=&quot;row&quot;&gt;
    &lt;div class=&quot;col-lg-4&quot;&gt;
    &lt;div class=&quot;input-group&quot;&gt;&lt;div class=&quot;input-group-btn&quot;&gt;
     &lt;input class=&quot;form-control&quot; type=&quot;text&quot; id=&quot;warning&quot; value=&quot;&quot; placeholder=&quot;İsim&quot;&gt;&lt;button class=&quot;btn btn-warning warning&quot;&gt;Kaydet&lt;/button&gt;&lt;/div&gt;
     &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;script&gt;
(function($){
    $(document).on(&quot;click&quot;,&quot;.uyari&quot;,function(){
        var warning = $(&quot;#warning&quot;);
        if (warning.val() !=&#039;&#039;){
            $.ajax({
                type: &quot;POST&quot;,
                url: &quot;ajax.php&quot;,
                data:  &quot;action=warning&quot;,
                success: function(html){
                    warning.val(&#039;&#039;);
                    Notify(&#039;Başarıyla güncellendi&#039;, &#039;top-right&#039;, &#039;5000&#039;, &#039;success&#039;, &#039;fa-check&#039;, true); return false;		
                }
            })
        } else {
            Notify(&#039;İsim alanı gerekli&#039;, &#039;top-right&#039;, &#039;5000&#039;, &#039;danger&#039;, &#039;fa-times&#039;, true); return false;		
        }
    });
});	
&lt;/script&gt;	  
&lt;/body&gt;
&lt;/html&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>https://www.bilgisayar.me/index.php/2015/07/24/jquery-ile-ajax-icinde-uyari-notify-popup-kullanimi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery $.each kullanım örnekleri</title>
		<link>https://www.bilgisayar.me/index.php/2015/07/23/jquery-foreach-ve-each-kullanim-ornekleri/</link>
		<comments>https://www.bilgisayar.me/index.php/2015/07/23/jquery-foreach-ve-each-kullanim-ornekleri/#comments</comments>
		<pubDate>Thu, 23 Jul 2015 20:17:22 +0000</pubDate>
		<dc:creator><![CDATA[Hakan Atılgan]]></dc:creator>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[$.each]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.bilgisayar.me/?p=1230</guid>
		<description><![CDATA[JQuery'nın foreach eşdeğerinde olan $.each döngüsünün kullanımı, Jquery uygulamalarınızda bir çok açıdan kullanışlı olacaktır. ]]></description>
				<content:encoded><![CDATA[<p>JQuery&#8217;nın <span class="su-label su-label-type-important">foreach</span> ya da <span class="su-label su-label-type-important">for</span> eşdeğerinde olan <span class="su-label su-label-type-important">$.each</span> döngüsünün kullanımı, Jquery uygulamalarınızda bir çok açıdan kullanışlı olacaktır. Aşağıda diziler, nesneler ve HTML elemanları ile ilgili <span class="su-label su-label-type-important">$.each </span> kullanarak nasıl döngü yapılabilir örneklerini bulacaksınız.</p>
<h3>JQuery $.each ile dizi döngüsü</h2>
<pre class="prettyprint linenums" >
$(function(){
    var dizi = [&quot;araba&quot;, &quot;uçak&quot;, &quot;gemi&quot;, &quot;bisiklet&quot;, &quot;tren&quot;];
    $.each(dizi, function(index, value){
        console.log(&quot;INDEKS: &quot; + index + &quot; DEGER: &quot; + value);
    });
});
</pre>
<p>Yukarıdaki scriptin çıkışı aşağıdaki gibi olacaktır:</p>
<pre class="prettyprint linenums" >
araba
uçak
gemi
bisiklet
tren
</pre>
<h3>JQuery $.each ile objelerin döngüsü</h2>
<p>Dizilerin yanısıra, bazen objeleride döngüye almak isteriz. Aşağıdaki kod JSON nesne döngüsü için bir örnektir.</p>
<pre class="prettyprint linenums" >
$(function(){
    var obje = [
        {
            no: 1,
            ad: &quot;Süleyman&quot;,
            soyad: &quot;Sol&quot;,
        },
        {
            no: 2,
            ad: &quot;Murat&quot;,
            soyad: &quot;Demir&quot;,
        },
        {
            no: 3,
            ad: &quot;Mustafa&quot;,
            soyad: &quot;Alkan&quot;,
        },
    ];
    $.each(obje, function(){
        console.log(&quot;NO: &quot; + this.no);
        console.log(&quot;İSİM: &quot; + this.Ad);
        console.log(&quot;SOY İSİM: &quot; + this.soyad);
        console.log(&quot; &quot;);
    });
});
</pre>
<p>Yukarıdaki scriptin çıkışı aşağıdaki gibi olacaktır:</p>
<pre class="prettyprint linenums" >
NO: 1
İSİM: Süleyman
SOY İSİM: Sol

NO: 2
İSİM: Murat
SOY İSİM: Demir

NO: 3
İSİM: Mustafa
SOY İSİM: Alkan
</pre>
<h3>JQuery $.each ile liste döngüsü</h2>
<p>Aşağıdaki kod &#8216;liste&#8217; sınıfına sahip bütün <span class="su-label su-label-type-important">&lt;ul></span> etiketi içindeki <span class="su-label su-label-type-important">&lt;li></span> elemanlarının yazı rengini <span class="su-label su-label-type-important">$.each</span> döngüsü ile green(yeşil)&#8217;e çevirir.</p>
<pre class="prettyprint linenums" >
$(function(){
    $(&#039;.liste li&#039;).each(function(){
        $(this).css(&quot;color&quot;, &quot;green&quot;);
    }
    });
});
</pre>
<h3>JQuery $.each ile diğer HTML elemanları döngüsü</h2>
<p>Liste elemanları yanı sıra her türlü HTML elemanlarınıda döngüde kullanabiliriz. Aşağıda örnekler bunlardan bazılarıdır.</p>
<pre class="prettyprint linenums" >
$(function(){
    $(&#039;a&#039;).each(function(){ // sayfadaki tüm bağlantıları döngüde kullan
        $(this).prop(&quot;href&quot;, &quot;#&quot;); // bağlantıyı devre dışı bırak
    });
    $(&#039;.hide&#039;).each(function(){ // .hide sınıfina sahip tüm unsurları döngüde kullan ve sakla
        $(this).hide(); 
    });
    $(&#039;pre&#039;).each(function(){ // bütün pre etiketlerini bul ve ekle sınıfını ekle
        $(this).addClass(&quot;ekle&quot;);
    });
});
</pre>
]]></content:encoded>
			<wfw:commentRss>https://www.bilgisayar.me/index.php/2015/07/23/jquery-foreach-ve-each-kullanim-ornekleri/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JQuery ile açılan liste(select box) değiştiginde yeni sayfaya yönlerdirme</title>
		<link>https://www.bilgisayar.me/index.php/2015/07/16/jquery-ile-acilan-listeselect-box-degistiginde-yeni-sayfaya-yonlerdirme/</link>
		<comments>https://www.bilgisayar.me/index.php/2015/07/16/jquery-ile-acilan-listeselect-box-degistiginde-yeni-sayfaya-yonlerdirme/#comments</comments>
		<pubDate>Thu, 16 Jul 2015 21:06:58 +0000</pubDate>
		<dc:creator><![CDATA[Hakan Atılgan]]></dc:creator>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[açılan liste]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.bilgisayar.me/?p=1157</guid>
		<description><![CDATA[Herhangi bir button kullanmadan sadece JQuery ile açılan liste(select box) değiştiginde yeni sayfaya yönlerdirin.]]></description>
				<content:encoded><![CDATA[<p>HTML</p>
<pre class="prettyprint linenums" >
&lt;div class=&quot;pull-right&quot;&gt;Elemanlar
  &lt;select name=&quot;kullanicikutusu&quot; id=&quot;kullanicikutusu&quot; style=&quot;width:300px&quot;&gt;
    &lt;option value=&quot;&quot;&gt;&lt;/option&gt;
    &lt;option value=&quot;199&quot; selected=&quot;selected&quot;&gt;Adam Ri&lt;/option&gt;
    &lt;option value=&quot;89&quot;&gt;Amanda Loweryneken&lt;/option&gt;
    &lt;option value=&quot;200&quot;&gt;Anna Bowenneken&lt;/option&gt;
    &lt;option value=&quot;145&quot;&gt;Bethany Olnekenson&lt;/option&gt;
    &lt;option value=&quot;158&quot;&gt;Brent Rednekenburn&lt;/option&gt;
    &lt;option value=&quot;177&quot;&gt;Chris Mornekengan&lt;/option&gt;
    &lt;option value=&quot;86&quot;&gt;Dustin Zimmer&lt;/option&gt;
    &lt;option value=&quot;187&quot;&gt;Greg Lauxman&lt;/option&gt;
    &lt;option value=&quot;1&quot;&gt;Hakan Atilgan&lt;/option&gt;
    &lt;option value=&quot;198&quot;&gt;Jessica Schlossmaner&lt;/option&gt;
    &lt;option value=&quot;164&quot;&gt;Juan Alemasn&lt;/option&gt;
    &lt;option value=&quot;153&quot;&gt;Lucas Muel&lt;/option&gt;
    &lt;option value=&quot;156&quot;&gt;Matt Millerler&lt;/option&gt;
    &lt;option value=&quot;191&quot;&gt;Shawn Smithler&lt;/option&gt;
    &lt;option value=&quot;193&quot;&gt;Shelly Littleler&lt;/option&gt;
  &lt;/select&gt;
&lt;/div&gt;
</pre>
<p>JQUERY</p>
<pre class="prettyprint linenums" >
&lt;script&gt;
$(document).ready(function() { 
    $(document).on(&quot;change&quot;,&quot;#kullanicikutusu&quot;, function(){
        var sel = $(this).val(); //açılan liste seçilen değer
        window.location =&#039;index.php?id=&#039;+sel;  //kullanicikutusu ismindeki açılan liste değiştiginde index.php sayfasina yönlerdir
    });
});
&lt;/script&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>https://www.bilgisayar.me/index.php/2015/07/16/jquery-ile-acilan-listeselect-box-degistiginde-yeni-sayfaya-yonlerdirme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
