rickygri


Member since 02/23/2012

20 snippets

96 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 Snippets



« Prev 1 Next »
A template for a javascript object with a object.create shiv to condense into object prototypes
0 24 posted 5 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 27 posted 5 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 25 posted 6 years ago by rickygri
More info: http://stackoverflow.com/questions/10908562/is-there-something-similar-to-window-load-for-executing-a-function-after
0 28 posted 6 years ago by rickygri
This function can be used to check if a file exists using the HTTP header response. Example use, when looping through cached JSON objects (instagram API, etc.)
0 23 posted 6 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 28 posted 6 years ago by rickygri
Used to stretch a video / image to fill a background without skewing. Attach to resize events
0 27 posted 6 years ago by rickygri
Run these queries (phpMyAdmin will do) to delete all media in the library, and remove all post attachment affiliation
0 87 posted 6 years ago by rickygri
Basic HTML template including jQuery and HTML5 Shiv
0 42 posted 7 years ago by rickygri
To fix the issue with localhost under Windows 8 giving a 403 error (but working for 127.0.0.1) I did the following:
0 31 posted 7 years ago by rickygri
Get Current URL Path on Apache / IIS
1 37 posted 7 years ago by rickygri
This is a skeleton template for a jquery plugin with custom methods
1 27 posted 7 years ago by rickygri
Clear text input when the user selects it (on focus)
0 19 posted 7 years ago by rickygri
CSS stylesheet template - including HTML5 reset, tweaks for mobile including media queries, print reset styles, and base styles for standardization
7 198 posted 7 years ago by rickygri
Space div elements evenly inside a wrapper without using float (no right spacing issue) so that all elements are flush to the edges.
0 14 posted 7 years ago by rickygri
PDO-format insert array function
0 56 posted 7 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 49 posted 7 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 89 posted 7 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 17 posted 8 years ago by rickygri
Force downloadable file with php
0 23 posted 8 years ago by rickygri
« Prev 1 Next »