Transparent HTML nodes without affecting content





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

« Previous 1 2 3 4 5 6 7 8 9  ...  12 13 Next »
2
Date Submitted Sat. Mar. 8th, 2008 2:08 PM
Revision 1
Beginner ysg
Tags CSS | HTML
Comments 1 comments
check title ; ) unfortunately cannot remember the name(s) of the author(s) , so the courtesy goes to them ...
2
Date Submitted Thu. Mar. 6th, 2008 3:09 AM
Revision 1
Helper 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.
1
Date Submitted Fri. Jan. 11th, 2008 11:35 PM
Revision 1
Helper Fordiman
Tags ActionScript | Bind | curry | JavaScript | Prototype
Comments 1 comments
Ok, so here's the deal. I've started to dally with Flash a bit, and I'm feeling all naked without my nifty Prototype functionality.

Most important to me are the bind() and curry() functions (though, others will rear their heads as my AS code gets more complex), Object.extend, and $A. They are para-ported here.
4
Date Submitted Mon. Dec. 24th, 2007 2:34 AM
Revision 1
Helper Fordiman
Tags "data hidng" | Class | JavaScript | Prototype
Comments 3 comments
Ok, so I was getting frustrated with the inability to hide data in javascript, as well as a number of other concerns with existing class structures (the requirement to use this.constructor in lieu of self, for example).

As a result, I've thrown together a nice little class constructor that accepts a class definition, as well as a class extender that allows you to build a new class from an existing one, with full access to all that private stuff.
2
Date Submitted Thu. Dec. 20th, 2007 6:48 PM
Revision 1
Helper 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.
-1
Date Submitted Tue. Dec. 4th, 2007 10:32 AM
Revision 1
Helper HRCerqueira
Tags JavaScript | Key | Web
Comments 2 comments
A simple, yet powerful (what a cliché) way of resgistering javascript keyboard shortcuts. Register any kind of keyboard shortcuts, and if applicable, override the browser default action.

Example usage and more info here:

Javascript Keyboard Shortcut Manager
4
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
2
Date Submitted Wed. Nov. 28th, 2007 1:08 PM
Revision 1
Helper HRCerqueira
Tags CSS | DOM | HTML | JavaScript
Comments 1 comments
These are some prototype methods to handle class names in html elements. As you all should know, a html element can have more than one class name.

This is part of my dom handling toolkit. Check it out and use it at will.

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.
6
Date Submitted Wed. Oct. 17th, 2007 2:34 PM
Revision 1
Helper chaos
Tags createElement | IE | JavaScript
Comments 0 comments
A wrapper on top of createElement for getting around IE problems with manipulating the name attribute. Unlike most solutions for this, it tests for which method to use once when the page loads rather than every time an element is created. By Chaos of Lost Souls MUD (a text-based fantasy RPG).
« Previous 1 2 3 4 5 6 7 8 9  ...  12 13 Next »