hy guys, i really made this script by my self.
reference is from google.com (LOL)
this script is for get the url query string like $_GET in PHP
sorry i not posting it here coz blogger can not allow my javascript :D
see thsi script in my other blog klik here
nice to share with all of you.
thanks for comeback
Friday, February 25, 2011
Saturday, February 19, 2011
function in_array in javascript
hy guys i got thi script from http://phpjs.org/ this is awesome help me on my project
thanks a lot, this function is used to Checks if a value exists in an array
just like in php (see in_array php documentation)
may you sould try it
thanks a lot, this function is used to Checks if a value exists in an array
just like in php (see in_array php documentation)
may you sould try it
function in_array (needle, haystack, argStrict) {
// http://kevin.vanzonneveld.net
// + original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
// + improved by: vlado houba
// + input by: Billy
// + bugfixed by: Brett Zamir (http://brett-zamir.me)
// * example 1: in_array('van', ['Kevin', 'van', 'Zonneveld']);
// * returns 1: true
// * example 2: in_array('vlado', {0: 'Kevin', vlado: 'van', 1: 'Zonneveld'});
// * returns 2: false
// * example 3: in_array(1, ['1', '2', '3']);
// * returns 3: true
// * example 3: in_array(1, ['1', '2', '3'], false);
// * returns 3: true
// * example 4: in_array(1, ['1', '2', '3'], true);
// * returns 4: false
var key = '',
strict = !! argStrict;
if (strict) {
for (key in haystack) {
if (haystack[key] === needle) {
return true;
}
}
} else {
for (key in haystack) {
if (haystack[key] == needle) {
return true;
}
}
}
return false;
}
Thursday, February 17, 2011
"Snippet" syntax highlighting - jQuery plugin
this plugin help me build my project. I was confusing how to highlighting syntax on the page. I searching and searching and searching. lol i found this unbelieveble jQuery plugin name Snippet.
thanks for the developers who create this script, very usefull. I like it.
let me show you the link here
thanks for the developers who create this script, very usefull. I like it.
let me show you the link here
Subscribe to:
Comments (Atom)
