พารามิเตอร์ จากการ GET ใน html file
ค่าของ GET parameter ที่ได้รับมา
< script type="text/javascript">
< !--
var query=this.location.search.substring(1);
var get=[];
if (query.length > 0){
var params=query.split("&");
for (var i=0 ; i < params.length ; i++){
var pos = params[i].indexOf("=");
var name = params[i].substring(0, pos);
var value = params[i].substring(pos + 1);
get[name]=value;
document.write( i + ":" + name);
document.write("=" + value);
document.writeln("");
}
}
var photo = get["photo"] ? get["photo"] : "photo_1";
// -- >
< /script>
Relate topics
- Android : Input type="file" ไม่ทำงานบน webView
- Bug : isset($body['location']) ดันเป็นจริงเมื่อ $body ไม่ใช่ array
- ต้องลองซะหน่อย - กูเกิลเสนอ "No CAPTCHA reCAPTCHA" ผู้ใช้ไม่จำเป็นต้องกรอก CAPTCHA อีกต่อไป
- History API
- วิธีการดูแลโค้ดของวิศวกร Facebook
- Map overlay
- Blocky เขียนโปรแกรมแบบลาก-วาง
- Facebook Live Streaming
- Application Programming Interface (API)
- Add Facebook to my web
- เริ่มต้นเขียนโปรแกรมบน iPhone
- SELECT - OnChange
- Hello Twetter from SoftGanz
- CSS Properties Index
- Download file with PHP
- Multi-Column Layout Design
- เรียน python ใน 10 นาที จากเว็บ Technology news
- PHP 5 & timezone
- rss2array
- document.referrer