page onload function register





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

12
Date Submitted Mon. Oct. 2nd, 2006 11:59 AM
Revision 1
Beginner drench
Tags escape | HTML | JavaScript | String
Comments 0 comments
Similar to Perl's CGI::escapeHTML(), though (because we can!) this adds it as a method to all String objects.
-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.
10
Date Submitted Wed. Sep. 27th, 2006 11:03 AM
Revision 1
Scripter shachi
Tags click | Control | ctrl/shift | JavaScript
Comments 3 comments
Gives you control to perform actions when the control key and the mouse button is clicked in the same time. Something similar to selecting elements in Windows with ctrl+click.

Just change the event.ctrlKey to event.shiftKey to make it shift+click. If you don't get it don't worry the snippet contains the demo for shift+click too.

You may need to change the event.which though 1 = left click, 2 = middle click, 3 = right click(at least in firefox 1.5.0.5)
13
Date Submitted Mon. Sep. 25th, 2006 2:22 AM
Revision 1
Syntax Master sundaramkumar
Tags JavaScript
Comments 1 comments
Trim , Left trim (ltrim) and Right Trim (rtrim) in javascript
20
Date Submitted Mon. Sep. 25th, 2006 1:59 AM
Revision 1
Syntax Master sundaramkumar
Tags JavaScript
Comments 3 comments
To debug javascript code we use alert() whereever needed and it irritates you while alerts values inside a loop and other places where more alerts are being shown and you have to press the ok button to pass / proceed on.
here is a simple way to get rid of the alerts dialogs and get the values outputed into another debug window.
8
Date Submitted Mon. Sep. 25th, 2006 1:36 AM
Revision 1
Syntax Master sundaramkumar
Tags JavaScript
Comments 1 comments
Format fractional digits in a numbe
12
Date Submitted Sun. Sep. 24th, 2006 5:43 PM
Revision 1
Helper kahotep
Tags HTML | PHP
Comments 6 comments
Generates select boxes, text boxes, check boxes and radio buttons. Via a handful of functions.
15
Date Submitted Sun. Sep. 24th, 2006 5:35 PM
Revision 1
Helper kahotep
Tags Form | HTML | PHP
Comments 1 comments
Generates a tree view within a dropdown select box.
12
Date Submitted Tue. Sep. 12th, 2006 1:34 AM
Revision 1
Beginner Headzoo
Tags Array | JavaScript | PHP
Comments 3 comments
Given a PHP array (even a deep nested array), returns a string representation of that array as JavaScript array. Useful when using PHP to output JavaScript.
21
Date Submitted Thu. Aug. 31st, 2006 1:36 PM
Revision 1
Helper dohpaz
Tags debug | HTML | PHP | Variable
Comments 0 comments
A quick and simple function to dump a variable (array, object, string, int, etc) out into -formatted output for a web browser.

If the variable is an array or an object, you can have it returned into the another variable for later processing (i.e., through templates or e-mail). Due to lack of free time, if the variable is not an array or an object, it will ignore the $return value and print directly to output.

Future revisions will add the above mentioned functionality.