Welcome To Snipplr
You searched for: http
Everyone's Recent JavaScript Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This was created as a temporary solution to the wide dropdowns that sometimes appear in OpenAir timesheets and cause horizontal scrolling. Adding this script as a bookmarklet and clicking it will resize all selects (dropdowns) on a page to 340px wide...
0
868
posted 17 years ago by Todd
SEE http://json.org/ for PHP JSON Libraries.
grunt knuckle drag brute force ugly escapes for quotes make a php array a json string
Produces trailing commas which some Javascript Librarys can't deal with.*
_*NOOB NOTE [a comma is added at the...
2
1274
posted 17 years ago by inkdeep
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
1342
posted 18 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
1147
posted 18 years ago by 1man
Helps identify correctly the type of whatever you put as an argument. This was adapted from http://www.planetpdf.com/developer/article.asp?ContentID=testing_for_object_types_in_ja
3
1155
posted 18 years ago by rolandog
This is a website specific script... pops up the source of an OPML file with 145+ podcasts.
http://www.productivity501.com/2006/11/free_academic_p.html
Note: The 'bookmarklet' format is included as a comment at the bottom... (write in a webpage a...
1
901
posted 18 years ago by rolandog
Patch para quitar el molesto cartel en una sola linea de codigo.
Lo interesante es que hace una cola de funciones para el "OnLoad".
Mas que nada sirve si tenes un sitio armado y tenes que meter este patch en todas tus paginas. Con la funcion "fixO...
2
1099
posted 18 years ago by inakiabt
Caja con esquinas redondeadas y un borde de diferente color tambien redondeado. Más info en: http://www.curvycorners.net/
0
841
posted 18 years ago by aurele
No es necesario redondear los vertices de la imagen para darle una apariencia tal. Más info en: http://www.curvycorners.net/
0
935
posted 18 years ago by aurele
Found on the jquery mailing list: http://jquery.com/discuss/2006-April/004625/
The url shows it in action, checking text when you move away from a field.
4
1355
posted 18 years ago by TC
If you want your pages to be valid XHTML-Strict, but you also wish to open external links in new window, the following snippet is doing just that—sets attribute target=“_blank†to all external links in a document to keep your code valid XHTML-S...
2
1347
posted 18 years ago by zensir
Read a page's GET URL variables and return them as an associative array.
----
Example for URL http://www.example.com/index.html?hello=bonjour&goodevening=bonsoir
var hash = getUrlVars();
alert(hash['hello']); // prints 'bonjour'
alert(hash...
35
8937
posted 18 years ago by Roshambo
This is test script of Google Map API.
How to use this script is as follows.
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
<head>
<style type="text/css">
v\:* {
behavior:url(#default#VML)...
5
1215
posted 18 years ago by tomute
Creates a notification message for AJAX requests.
Dependencies: prototype.js, script.aculo.us.
CSS-Styles: http://snipplr.com/view/348/loadingmessage-for-ajax-requests-css/
11
1195
posted 18 years ago by dertimbo
Directions: be sure to set to absolute paths every image location from your litebox-1.0.js and lightbox.css files... and, replace the setInnerHTML function with this one...
http://www.doknowevil.net/litebox/
1
1173
posted 18 years ago by rolandog
Open a new window without using target="_blank" for XHTML 1.1.
Need jQuery Framework : http://jquery.com/
15
3668
posted 18 years ago by walepinski
For a working demo in application/xhtml+xml or text/html, go to:
http://rolandog.com/archives/2006/07/10/litebox-demasiado-bueno-para-ser-cierto/
You should delete the multi-line comments after completing the setup, some old browsers will complai...
3
1362
posted 18 years ago by rolandog
Select all checkbox in the specific context.
Need jQuery Framework : http://jquery.com/
12
1268
posted 18 years ago by walepinski
StripTables Script.
Need jQuery Framework : http://jquery.com/
6
952
posted 18 years ago by walepinski