<?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>Jesri Site &#187; Web</title>
	<atom:link href="http://jesri.purba.or.id/category/programming/web/feed" rel="self" type="application/rss+xml" />
	<link>http://jesri.purba.or.id</link>
	<description>I dedicate my heart to You Lord, sincere and honest!</description>
	<lastBuildDate>Mon, 23 Aug 2010 17:41:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Javascript running in Internet Explorer, not run on Mozilla Firefox</title>
		<link>http://jesri.purba.or.id/programming/web/javascript-running-in-internet-explorer-not-run-on-mozilla-firefox.html</link>
		<comments>http://jesri.purba.or.id/programming/web/javascript-running-in-internet-explorer-not-run-on-mozilla-firefox.html#comments</comments>
		<pubDate>Wed, 07 Oct 2009 04:25:29 +0000</pubDate>
		<dc:creator>Jesri</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[internet explorer]]></category>
		<category><![CDATA[java script]]></category>
		<category><![CDATA[mozilla firefox]]></category>

		<guid isPermaLink="false">http://jesri.purba.or.id/?p=256</guid>
		<description><![CDATA[Recently I had a little experience makes me tired. Why not, more than 2 days I have not got javascript error in my web program  In ASP.Net, I use a script, which calculates the number of characters from a text box. After the run, the program can work well, both on IE and Mozilla. With [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I had a little experience makes me tired. Why not, more than 2 days I have not got javascript error in my web program</p>
<p> In ASP.Net, I use a script, which calculates the number of characters from a text box. After the run, the program can work well, both on IE and Mozilla.</p>
<p>With the same script and the same goals, I also created a web page, but this time with PHP. I am testing the program with IE, and no problems. But after a try with Mozilla, the script does not go. Surprised and dizziness. What happened? With the same script, built with PHP can not work, but if made with ASP.NET can be, only in Mozilla, IE works well!</p>
<p>Browsing and serching on the internet, there is no solution.</p>
<p>I try to look more carefully at the script, well, thank you Jesus, I get the error on the identification text boxes.</p>
<p>In IE, atrribut name and id well known, and the same function, while in Mozilla Firefox, the name is the name and id is the id.</p>
<p>Consider this example:</p>
<blockquote><p>java script command:<br />
document.getElementById(<strong>&#8216;txtSisa&#8217;</strong>)</p></blockquote>
<blockquote><p>while in the form:<br />
&lt;input type=&#8221;text&#8221; <strong>name=&#8221;txtSisa&#8221;</strong> size=&#8221;2&#8243;&gt;</p></blockquote>
<p>With the above conditions, the program can run well on IE, but fails when running on Mozilla. The program should be changed to (html part) :</p>
<blockquote><p>&lt;input type=&#8221;text&#8221; <strong>id=&#8221;txtSisa</strong>&#8221; size=&#8221;2&#8243;&gt;</p></blockquote>
<p>Hopefully helpful.</p>
<p> <span id="more-256"></span></p>
<p>Javascript, jalan di IE, macet di Mozilla firefox</p>
<p>Baru-baru ini saya mengalami pengalaman yang sedikit membuat saya tertawa. Kenapa tidak, lebih dari 2 hari saya mencari kesalahan pada Javascript yang saya gunakan.</p>
<p>Dengan ASP.Net, saya menggunakan sebuah script, yang menghitung jumlah karakter dari sebuah text box. Setelah saya jalankan, maka program tersebut dapat berjalan dengan baik, baik pada IE maupun Mozilla.</p>
<p>Dengan script yang sama dan tujuan yang sama pula, saya juga membuat sebuah halaman web, tetapi kali ini dengan PHP. Saya mengetest program tersebut dengan IE, dan tidak ada masalah. Namun setelah dicoba dengan Mozilla, scriptnya tidak bisa jalan. Heran dan pusing. Kenapa bisa ya? Scriptnya sama, tetapi masa dengan ASP.NET bisa, dengan PHP tidak bisa, hanya di Mozilla pulak!</p>
<p>Browsing dan serching di internet, tidak ada solusi.</p>
<p>Saya coba pelototi lagi scriptnya, nah, ternyata kesalahannya pada identifikasi text box.</p>
<p>Pada IE, atrribut name dan id dikenal dengan baik, dan fungsinya sama, sementara di Mozilla Firefox, nama adalah nama dan id adalah id.</p>
<p>Coba perhatikan contoh ini :</p>
<p>pada java script kita jalankan perintah :</p>
<p>document.getElementById(&#8216;txtSisa&#8217;)<br />
sementara di form :<br />
&lt;input type=&#8221;text&#8221; name=&#8221;txtSisa&#8221; size=&#8221;2&#8243;&gt;</p>
<p>Dengan kondisi diatas, program dapat berjalan dengan baik pada IE, tetapi gagal bila dijalankan pada Mozilla. Program harus diobah menjadi (bagian html-nya):</p>
<p>&lt;input type=&#8221;text&#8221; id=&#8221;txtSisa&#8221; size=&#8221;2&#8243;&gt;</p>
<p>Semga membantu.</p>
<div id="st0000000001" class="st-taf"><script src="http://taf.socialtwist.com:80/taf/js/shoppr.core.js?id=0000000001"></script><img style="border:0;margin:0;padding:0;" src="http://tellafriend.socialtwist.com:80/wizard/images/tafbutton_blue16.png" onmouseout="hideHoverMap(this)" onmouseover="showHoverMap(this, '0000000001', 'http%3A%2F%2Fjesri.purba.or.id%2Fprogramming%2Fweb%2Fjavascript-running-in-internet-explorer-not-run-on-mozilla-firefox.html', 'Javascript+running+in+Internet+Explorer%2C+not+run+on+Mozilla+Firefox')" onclick="cw(this, {id:'0000000001',link: 'http%3A%2F%2Fjesri.purba.or.id%2Fprogramming%2Fweb%2Fjavascript-running-in-internet-explorer-not-run-on-mozilla-firefox.html', title: '+Javascript+running+in+Internet+Explorer%2C+not+run+on+Mozilla+Firefox+' })"/></div>]]></content:encoded>
			<wfw:commentRss>http://jesri.purba.or.id/programming/web/javascript-running-in-internet-explorer-not-run-on-mozilla-firefox.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Koneksi mySQL lokal dan di web hosting</title>
		<link>http://jesri.purba.or.id/programming/web/koneksi-mysql-lokal-dan-di-web-hosting.html</link>
		<comments>http://jesri.purba.or.id/programming/web/koneksi-mysql-lokal-dan-di-web-hosting.html#comments</comments>
		<pubDate>Tue, 07 Oct 2008 07:17:00 +0000</pubDate>
		<dc:creator>Jesri</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[koneksi]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://jesri.purba.or.id/?p=32</guid>
		<description><![CDATA[Ada perbedaan koneksi di web server lokal dan di web hosting: Contoh koneksi di local : &#60;? $db=mysql_connect(&#8220;localhost&#8221;,&#8221;username&#8221;,&#8221;password&#8221;); mysql_select_db(&#8220;database&#8221;, $db); ?&#62; Contoh : &#60;? $db=mysql_connect(&#8220;localhost&#8221;,&#8221;root&#8221;,&#8221;"); mysql_select_db(&#8220;alamat&#8221;, $db); ?&#62; Ketika mengakses di web hosting, maka koneksi menjadi : &#60;? $db=mysql_connect(&#8220;localhost&#8221;,&#8221;username&#8221;,&#8221;password&#8221;); mysql_select_db(&#8220;username_namadb&#8221;, $db); ?&#62; Sebagai contoh, apabila dari hosting anda mendapatkan user : begu, dan password anda [...]]]></description>
			<content:encoded><![CDATA[<p>Ada perbedaan koneksi di web server lokal dan di web hosting:</p>
<p>Contoh koneksi di local :</p>
<blockquote><p>&lt;?<br />
$db=mysql_connect(&#8220;localhost&#8221;,&#8221;username&#8221;,&#8221;password&#8221;);<br />
mysql_select_db(&#8220;database&#8221;, $db);<br />
?&gt;</p></blockquote>
<p>Contoh :</p>
<blockquote><p>&lt;?<br />
$db=mysql_connect(&#8220;localhost&#8221;,&#8221;root&#8221;,&#8221;");<br />
mysql_select_db(&#8220;alamat&#8221;, $db);<br />
?&gt;</p></blockquote>
<p>Ketika mengakses di web hosting, maka koneksi menjadi :</p>
<blockquote><p>&lt;?<br />
$db=mysql_connect(&#8220;localhost&#8221;,&#8221;username&#8221;,&#8221;password&#8221;);<br />
mysql_select_db(&#8220;username_namadb&#8221;, $db);<br />
?&gt;</p></blockquote>
<p>Sebagai contoh, apabila dari hosting anda mendapatkan user : <em>begu</em>, dan password anda : <em>tamburkais</em>, dan anda membuat database : <em>janggulmeong</em>, maka koneksi yang bear adalah :</p>
<blockquote><p>&lt;?<br />
$db=mysql_connect(&#8220;localhost&#8221;,&#8221;begu&#8221;,&#8221;tamburkais&#8221;);<br />
mysql_select_db(&#8220;begu_janggulmeong&#8221;, $db);<br />
?&gt;</p></blockquote>
<p> </p>
<p>Apabila anda membuat user baru di mySQL, misalnya <em>panoroh, </em>maka username menjadi <em>begu_panoroh,</em> sehingga koneksi menjadi :</p>
<blockquote><p>&lt;?<br />
$db=mysql_connect(&#8220;localhost&#8221;,&#8221;begu_panoroh&#8221;,&#8221;tamburkais&#8221;);<br />
mysql_select_db(&#8220;begu_janggulmeong&#8221;, $db);<br />
?&gt;</p></blockquote>
<p>Koneksi diatas biasanya disimpan dalam satu file misalnya <strong>init_db.php</strong></p>
<p>Maka program anda adalah :</p>
<blockquote><p>include(&#8220;init_db.inc&#8221;);<br />
$query=&#8221;Select &#8230;&#8230;&#8221;;<br />
if (! $result=mysql_query($query, $db))<br />
 {<br />
    echo mysql_error();<br />
    exit;<br />
 }<br />
While( $row = mysql_fetch_array( $result ) )<br />
{<br />
  //kode anda<br />
  Echo $row['myfield'];<br />
}</p></blockquote>
<p>Selamat mencoba. Tuhan Yesus menolong anda!</p>
<div id="st0000000001" class="st-taf"><script src="http://taf.socialtwist.com:80/taf/js/shoppr.core.js?id=0000000001"></script><img style="border:0;margin:0;padding:0;" src="http://tellafriend.socialtwist.com:80/wizard/images/tafbutton_blue16.png" onmouseout="hideHoverMap(this)" onmouseover="showHoverMap(this, '0000000001', 'http%3A%2F%2Fjesri.purba.or.id%2Fprogramming%2Fweb%2Fkoneksi-mysql-lokal-dan-di-web-hosting.html', 'Koneksi+mySQL+lokal+dan+di+web+hosting')" onclick="cw(this, {id:'0000000001',link: 'http%3A%2F%2Fjesri.purba.or.id%2Fprogramming%2Fweb%2Fkoneksi-mysql-lokal-dan-di-web-hosting.html', title: '+Koneksi+mySQL+lokal+dan+di+web+hosting+' })"/></div>]]></content:encoded>
			<wfw:commentRss>http://jesri.purba.or.id/programming/web/koneksi-mysql-lokal-dan-di-web-hosting.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Mengatur Permalink pada WordPress</title>
		<link>http://jesri.purba.or.id/programming/web/mengatur-permalink-pada-wordpress.html</link>
		<comments>http://jesri.purba.or.id/programming/web/mengatur-permalink-pada-wordpress.html#comments</comments>
		<pubDate>Tue, 09 Oct 2001 02:27:42 +0000</pubDate>
		<dc:creator>Jesri</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[permalink]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://jesri.purba.or.id/?p=74</guid>
		<description><![CDATA[s]]></description>
			<content:encoded><![CDATA[<p>s</p>
<div id="st0000000001" class="st-taf"><script src="http://taf.socialtwist.com:80/taf/js/shoppr.core.js?id=0000000001"></script><img style="border:0;margin:0;padding:0;" src="http://tellafriend.socialtwist.com:80/wizard/images/tafbutton_blue16.png" onmouseout="hideHoverMap(this)" onmouseover="showHoverMap(this, '0000000001', 'http%3A%2F%2Fjesri.purba.or.id%2Fprogramming%2Fweb%2Fmengatur-permalink-pada-wordpress.html', 'Mengatur+Permalink+pada+WordPress')" onclick="cw(this, {id:'0000000001',link: 'http%3A%2F%2Fjesri.purba.or.id%2Fprogramming%2Fweb%2Fmengatur-permalink-pada-wordpress.html', title: '+Mengatur+Permalink+pada+WordPress+' })"/></div>]]></content:encoded>
			<wfw:commentRss>http://jesri.purba.or.id/programming/web/mengatur-permalink-pada-wordpress.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
