Welcome To Snipplr


Everyone's Recent Snippets



1 ... 527 528 529 530 531 ... 553
Enter this at the commandline.
0 1624 posted 19 years ago by Roshambo
This function allows you to parse a simple XML document(passed to it using this.href on a onclick event). Virtually the same as JSON, the things that have been changed ate labeled !Important.
3 2135 posted 19 years ago by 1man
This function is near enough the same as parsing XML. The only things that have changed are the sections marked !important.
3 2213 posted 19 years ago by 1man
List all packages that are installed in your system
1 1414 posted 19 years ago by vanne
This while loop will remove all childNodes from a selected element.
1 1245 posted 19 years ago by 1man
Very basic grab a line of text from a file then display it in an alert box. Uses other functions for loading prepareLinks() and creating the request.
2 2025 posted 19 years ago by 1man
Change / to the root directory you wish to search in. Change -7 to +7 for files changed more than a week ago.
1 2108 posted 19 years ago by micmath
Use to get console input from the user for a file name (in the current directory) and read in from that file.
2 1650 posted 19 years ago by pckujawa
This snippet is for use with image module, a small contributed module for image handling. (Yes: in Drupal you need a /contributed/ module for this o_O. The template snippet links the images to their own node.
2 1532 posted 19 years ago by berkes
1 1196 posted 19 years ago by abhiomkar
Simple Ajax POST request using the getHTTPObject function.
2 1830 posted 19 years ago by 1man
2 1642 posted 19 years ago by 1man
1 1262 posted 19 years ago by abhiomkar
This functions allows you to create a new XMLHTTPRequest, it checks to see if the browser supports each method, if not it returns false.
4 2147 posted 19 years ago by 1man
0 1273 posted 19 years ago by jugyo
Requires wget and curl.
2 1740 posted 19 years ago by gtcaz
This function allows you to open a new window, without using any inline Javascript. Simply add rel="external" to the link you wish to open in a new window.
3 3047 posted 19 years ago by 1man
This function extracts a value from a url. Very useful for tracking codes. For example, you have a url http://your.url/?source=666999, and you need the source number to be placed into a variable. Use the code below.
2 1734 posted 19 years ago by 1man
This is an excellent solution for fixing IE 6's inability to display transparent PNGs correctly. Step 1: Include the following conditional comment the HEAD area of your document. You will need to update the CSS selector and also the path to wheree...
13 3533 posted 19 years ago by jonhenshaw
0 2102 posted 19 years ago by netjackal
This code uses the new Java 5 foreach loop to iterate through every element of a list. It avoids the need to declare an iterator.
0 1612 posted 19 years ago by cpjobling
13 3044 posted 19 years ago by johnself
2 1878 posted 19 years ago by juno
reference for create own ajax helper in CakePHP
1 1504 posted 19 years ago by juno
In IE5 and IE6 the transparancy in PNG images won't happen at all, so this would fix it. This might come really useful while we are in the era of switching to better standard-friendly browsers.
7 2377 posted 19 years ago by iTony
Returns an array of values specified for an enumerated MySQL field
2 2097 posted 19 years ago by johnself
Renders the partial template called 'cart', sends along local variable @cart, this will be known locally using the same name as the partial, 'cart'.
1 1446 posted 19 years ago by wackimonki
1 ... 527 528 529 530 531 ... 553