Welcome To Snipplr


Everyone's Recent JavaScript Snippets



1 ... 59 60 61 62 63 ... 67
Para marcar navegaciones según la página.
2 369 posted 14 years ago by nicolaspar
1 314 posted 14 years ago by nicolaspar
for firefox
1 330 posted 14 years ago by kyokutyo
addEvent function. Can't remember the exact site i got it from. Works well for me.
1 304 posted 14 years ago by 1man
I post,hopefully soon, one cross browser "add to bookmarks". This works ONLY for IE.
2 302 posted 14 years ago by isaac
Copy values from the first row of a column down the entire column. This was used in a specific project, but the code could be helpful for other projects.
1 271 posted 14 years ago by davaodude
Simple script to toggle (checked or not checked) all checkboxes on the page.
2 298 posted 14 years ago by davaodude
One notorious discrepancy between IE and Firefox (or other "good" browsers) is the way they access the class HTML attribute. While I've used more complicated solutions in the past, this simple solution doesn't require any browser detection or even a...
2 363 posted 14 years ago by Todd
Shows you how to link 2 objects together via the object function. If a value isn't found in the object, it will look for it in the linked object.
0 281 posted 14 years ago by 1man
Extend a custom object, and a pre-defined object(e.g. string) using .prototype available in JS.
1 312 posted 14 years ago by 1man
Why doesn't this work?
1 298 posted 14 years ago by gaunab
Simply replaces the div's innerHTML with the response text received from the file.
3 743 posted 14 years ago by 1man
Basic layout for the data contained in a JSON file.(JavaScript Obsect Notation).
1 311 posted 14 years ago by 1man
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 414 posted 14 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 433 posted 14 years ago by 1man
This while loop will remove all childNodes from a selected element.
1 267 posted 14 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 402 posted 14 years ago by 1man
Simple Ajax POST request using the getHTTPObject function.
2 362 posted 14 years ago by 1man
2 413 posted 14 years ago by 1man
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 481 posted 14 years ago by 1man
0 304 posted 14 years ago by jugyo
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 466 posted 14 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 346 posted 14 years ago by 1man
2 349 posted 14 years ago by juno
1 ... 59 60 61 62 63 ... 67