ZeroField





ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

« Previous 1 2  ...  5 6 7 8 9 10 11 12 13 Next »
5
Date Submitted Fri. Jul. 20th, 2007 8:07 PM
Revision 1
Scripter ColdKeyboard
Tags ajax | Form | Sumbit
Comments 1 comments
AJAX based submit form and use PHP to get results...

Very easy to use and understand, hope you will find it useful and easily edit it to fit your needs.
5
Date Submitted Thu. Nov. 29th, 2007 12:46 PM
Revision 1
Helper HRCerqueira
Tags images | JavaScript | sl
Comments 0 comments
This is a simple fade in / fade out javascript slideshow, search engine friendly with low resource usage.

More info here.

Cheers
5
Date Submitted Mon. Oct. 22nd, 2007 8:43 AM
Revision 1
Beginner richard123
Tags JavaScript | PHP | resolution
Comments 3 comments
This detects screen resolution using javascript and makes it available to php by way of cookies.
5
Date Submitted Wed. Aug. 9th, 2006 4:36 AM
Revision 1
Syntax Master sundaramkumar
Tags JavaScript
Comments 0 comments
Proper case a string
5
Date Submitted Thu. Aug. 10th, 2006 2:17 AM
Revision 1
Syntax Master sundaramkumar
Tags JavaScript
Comments 1 comments
convert An integer to a string
4
Date Submitted Wed. Nov. 28th, 2007 8:14 AM
Revision 1
Helper HRCerqueira
Tags HTML | JavaScript
Comments 1 comments
This code allows you to set the "opcity" style attribute on a element without affecting it's content.

Just call the function for a specific element or to all elements of a given classname after the document loads.

Examples and advanced usage here...
4
Date Submitted Fri. Aug. 4th, 2006 7:55 AM
Revision 1
Syntax Master sundaramkumar
Tags JavaScript
Comments 0 comments
This code snippet will validate an IP Address (IP v4).
return true if the ip address is valid. Else false.
4
Date Submitted Thu. Aug. 10th, 2006 2:03 AM
Revision 1
Syntax Master sundaramkumar
Tags JavaScript
Comments 1 comments
convert a string to intege
3
Date Submitted Thu. Dec. 20th, 2007 6:48 PM
Revision 1
Scripter Fordiman
Tags JavaScript | promise | Prototype
Comments 0 comments
This is a version of my previous entrant, Promise, that will work with prototype, but does not require it. It's slightly more advanced, using .apply here and there.

It's basically a function to allow any other function to poll. Polling is generally regarded as bad practice in object oriented code, but can make very simple the matter of, for example, running a bit of code only after a single-run event (like onload) occurs (whether that be in the future or past), another unrelated bit of code needs to be hack-tracked, or any other generic condition.

Note that when the function runs, it doesn't necessarily run within the scope that's called it. Its context is set to itself, rather than its normal context, and it's asynchronous, so you'll not get a return value. If you use Prototype, you can bind the function and it'll behave as it should in terms of context, but I'm unaware of a way to cause an asynch function to block execution - and you'd really rather that not happen anyway, trust me.
3
Date Submitted Thu. Mar. 6th, 2008 3:09 AM
Revision 1
Scripter Fordiman
Tags JavaScript | parse_url | PHP
Comments 0 comments
Simple. It's parse_url, from PHP, implemented in Javascript. Seen a lot of similar ones around the web, but they were all bulky code and none of them took advantage of the RegEx parser in JS.

Applied as a member of the String prototype, so just call as myURL.parseURL(); Will return a named object with naming identical to that of PHP's function.

Additional: if first argument is present, will break the querystring up into name/value pairs, unescaped, and return that instead of the raw querystriing.
« Previous 1 2  ...  5 6 7 8 9 10 11 12 13 Next »