Minggu, 21 Juli 2013

PHP Indonesia - Facebook: dalam javascript function(x) -> functionny cuma bs...

PHP Indonesia - Facebook
PHP Indonesia is a community for everyone that loves PHP. Our focus is in the PHP world but our topics encompass the entire LAMP stack. Topics include PHP coding, to memcached handling, db optimizations, server stack, web server tuning, code deploying, hosting options and much much more. NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ 
dalam javascript function(x) -> functionny cuma bs...
Jul 21st 2013, 14:41, by Johan Surya

Johan Surya 2:41pm Jul 21
dalam javascript function(x) -> functionny cuma bs jalan apabila x adalah angka y ?Gimana kalo mau bs angka maupun kata/huruf ?

Chabib Nurozak 2:43pm Jul 21
function testing(x){ alert(x)}

testing(1); //numeric
testing("satu"); //string

Gunawan Mujur Wibisono 2:44pm Jul 21
http://stackoverflow.com/questions/9716468/is-there-any-function-like-isnumeric-in-javascript-to-validate-numbers

Johan Surya 2:46pm Jul 21
kalo skaligus mau angka atau huruf g bs y ?

Gunawan Mujur Wibisono 2:47pm Jul 21
regex

Johan Surya 2:47pm Jul 21
? y sudala..alternatif lain aja kucoba

Arief Ginanjar 2:48pm Jul 21
Bisa koq, huruf bisa angka bisa

Johan Surya 2:48pm Jul 21
tp kucoba cuma bs angka

Arief Ginanjar 2:56pm Jul 21
Boleh tau cara penggunaannya gimana? Soalny sy pernah pake js yg function paramny bisa pake angka bisa pake huruf

Gunawan Mujur Wibisono 2:56pm Jul 21
buka pastebin.com lalu copy paste ke sana

Johan Surya 2:57pm Jul 21
function deletedata(dd,zz)
{
var xmlhttp;
var url="delete.php";
url=url+"?kunci="+dd;
url=url+"&sid="+Math.random();
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementById(zz).innerHTML = xmlhttp.responseText;
}
else
{
document.getElementById(zz).innerHTML = "Deleting...";
}
}
xmlhttp.open("GET",url,true);
xmlhttp.send();
}

Johan Surya 2:57pm Jul 21
dd adalah data pengenal utk dhapus
zz utk sbg id

Johan Surya 3:01pm Jul 21
Gunawan Mujur Wibisono http://pastebin.com/QcDYF4Y4

Gunawan Mujur Wibisono 3:03pm Jul 21
coba ganti pake POST bukan GET

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

Tidak ada komentar:

Posting Komentar