Javascript port of PHP's ParseURL





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

« Previous 1 2 3 4 5 6 7 8 9  ...  23 24 Next »
-34
Date Submitted Thu. Jul. 27th, 2006 9:53 PM
Revision 1
Beginner registered99
Tags PHP
Comments 1 comments
Php Things
-17
Date Submitted Mon. Oct. 9th, 2006 7:07 AM
Revision 1
Helper serpentskiss
Tags PHP
Comments 3 comments
A little function that does some basic checking for data input by a user. Should get rid of code injection ;-)
-15
Date Submitted Thu. Oct. 12th, 2006 3:28 PM
Revision 1
Beginner ammonkc
Tags Anti-Injection | Injection | mysql | PHP | SQL
Comments 5 comments
Anti-QSL Injection. I'm sure it could be better, so any improvements are welcome.
-13
Date Submitted Sun. Nov. 12th, 2006 6:11 AM
Revision 1
Scripter shachi
Tags confirmation | JavaScript | saving
Comments 2 comments
Just confirms if the user really wants to save the page or just hit the Ctrl+S accidentally. Works in FF maybe in IE too.
-12
Date Submitted Mon. Oct. 9th, 2006 7:29 AM
Revision 1
Helper BrandonReese
Tags MD5 | Password | PHP | Random
Comments 5 comments
This is a quick and easy method to generate a somewhat random password. This simply generates the MD5 hash for the integer returned by the time() function and then truncates it to the specific length.
-11
Date Submitted Sun. Nov. 12th, 2006 6:09 AM
Revision 1
Scripter shachi
Tags JavaScript | screensaver
Comments 4 comments
This creates a black screen if the browser is inactive for a certain amout of time. I am not sure if it works in IE too but works fine in Firefox.
-11
Date Submitted Thu. Sep. 28th, 2006 3:43 PM
Revision 1
Helper ffxfiend
Tags "php" | PHP | phpcode | RegExp
Comments 1 comments
This is a faily simple function to validate a URL being passed into your scripts. It will allow for http, https, and ftp. The beginning www. of a URL is optional as well. It will also validate if you have an IP address in place of the domain name. I'm sure this can be improved upon as this is my first attempt at regular expressions but it has worked good for me so far. Please comment or improve if your able.

Thanks!
-10
Date Submitted Tue. Oct. 17th, 2006 3:25 PM
Revision 1
Helper jeremec
Tags Attribute | div | JavaScript | Name
Comments 7 comments
One way to group elements in HTML is to assign them a name attribute. Multiple elements can share a name, then you can easily access them as an array using the getElementsByName() method.

The problem is that some DOM parsers aren't keen on, or are ignorant to, this use of the name attribute, so a simple object.name returns undefined. In my case, it was a DIV in Firefox 1.5 that was behaving this way.

There is a simple work around for this that works in Firefox, I haven't tested it in others. It is to use the getAttribute method that is an extension of any element object.

This ability can be useful if you have a function that performs a transformation on the active element, and another transformation on closely related elements.
-10
Date Submitted Fri. Aug. 18th, 2006 1:16 AM
Revision 1
Syntax Master sundaramkumar
Tags JavaScript
Comments 2 comments
This function will add all the elements in an array and return total(sum)
-9
Date Submitted Sat. Sep. 30th, 2006 11:06 AM
Revision 1
Scripter shachi
Tags JavaScript | strip_tags
Comments 1 comments
Strips all tags from any string.
« Previous 1 2 3 4 5 6 7 8 9  ...  23 24 Next »