rickygri


Member since 02/23/2012

10 snippets

3956 profile views

1 Comment(s) Posted

View their favorites

Profile

Achievement

first submission:submitting first snipplet popular snippet:having a snipplet with 20 favorites

rickygri's Recent JavaScript Snippets



« Prev 1 Next »
A template for a javascript object with a object.create shiv to condense into object prototypes
0 690 posted 9 years ago by rickygri
From @blixt http://stackoverflow.com/users/119081/blixt As you can see, the classes correctly interact with each other (they share the static id from MyClass, the announce method uses the correct get_name method, etc.) One thing to note is the...
1 727 posted 9 years ago by rickygri
Uses the object prototype to extend data. Instantiate as an object and use as specified below (bottom of the code)
0 707 posted 10 years ago by rickygri
More info: http://stackoverflow.com/questions/10908562/is-there-something-similar-to-window-load-for-executing-a-function-after
0 795 posted 10 years ago by rickygri
This is a really basic skeleton template for jQuery plugins. It provides a callback function which can be called anywhere in your plugin with base.success(); This will return the current element, but you can pass anything you like back by changing th...
0 773 posted 10 years ago by rickygri
Used to stretch a video / image to fill a background without skewing. Attach to resize events
0 756 posted 10 years ago by rickygri
Clear text input when the user selects it (on focus)
0 677 posted 11 years ago by rickygri
This send any value via POST to a PHP page. It is done with AJAX, so the POST return can be used on the same page as the submit
0 909 posted 11 years ago by rickygri
This javascript function takes the URL of the target page and an associative array of name/values paires and POSTs the data to the supplied URL by dynamically creating a form and then submitting it.
0 2457 posted 11 years ago by rickygri
Shows how to use an array to embed swf objects with swfobject.js. This allows for multiple embeds (synced ad's etc.)
0 623 posted 12 years ago by rickygri
« Prev 1 Next »