Welcome To Snipplr


You searched for: http

Everyone's Recent Snippets



1 ... 32 33 34 35 36 Next »
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 8926 posted 18 years ago by Roshambo
Sends as XHTML 1.1 + MathML if supported, falls back to XHTML 1.1 if supported, or falls back to HTML 4.01 Strict. Mixed two separate scripts: http://www.workingwith.me.uk/articles/scripting/mimetypes http://golem.ph.utexas.edu/~distler/blog/arc...
2 898 posted 18 years ago by rolandog
Note: This doesn't work in multi-threaded environments, check http://en.wikipedia.org/wiki/Singleton_pattern#C.2B.2B Singleton class model then: SingletonClass *pSC = SingletonClass::get_singleton_instance(); pSC->any_public_function(); or: Si...
4 1352 posted 18 years ago by yuconner
Simple HTTP server daemon (webrick).
1 1007 posted 18 years ago by ishikawa
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 1210 posted 18 years ago by tomute
You should edit your WordPress plugin so that the $source variable at the end shows this value. Though it is a shame that code can't have an 'ol' as a childNode, and neither can the pre element. Couldn't find any way of making it all fit: http://lear...
3 1094 posted 18 years ago by rolandog
The stylesheet for the LoadingMessage object (http://snipplr.com/view/347/loadingmessage-for-ajax-requests/).
11 1298 posted 18 years ago by dertimbo
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 1194 posted 18 years ago by dertimbo
I use this object verry often, so that I only need to pass one object as parameter on any function. No need to wory when we refactore the function Usage: $var = new open(); $var->url = 'http://www.world.com'; $var->title = 'Testing Site'; ech...
1 1204 posted 18 years ago by ekobudisetiyo
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 1171 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 3662 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 1360 posted 18 years ago by rolandog
A fairly DRY way to test for required attributes of a model. It's sort of an alternative to fixtures. It breaks the one-assertion-per-test rule that some people favor. Drop in your unit test and edit as necessary. A better (yet not quite perfect)...
3 1168 posted 18 years ago by tjstankus
Great little flash player for playing FLV files. Code below simply adds them to your web page. Remember to add 20 pixels to the height="" attribute to allow for the player controler. For the player goto: http://www.jeroenwijering.com/?item=Flash_Vid...
39 9191 posted 18 years ago by 1man
Select all checkbox in the specific context. Need jQuery Framework : http://jquery.com/
12 1266 posted 18 years ago by walepinski
StripTables Script. Need jQuery Framework : http://jquery.com/
6 950 posted 18 years ago by walepinski
Greatly speeds up a slow Safari by purging any cached icons which have not been accessed in the past 30 days. Works well as a cron job. From http://www.macosxhints.com/article.php?story=20040323144305318
2 1510 posted 18 years ago by Roshambo
http://rossoft.wordpress.com
1 1136 posted 18 years ago by jonbaer
reference: \n http://www.ruby-doc.org/stdlib/libdoc/net/http/rdoc/classes/Net/HTTP.html http://www.ruby-doc.org/stdlib/libdoc/net/http/rdoc/index.html
7 1372 posted 2025 years ago by aravet
extraido de http://es.php.net/manual/en/ref.domxml.php
2 1056 posted 18 years ago by mate
extraido de http://www.bloglines.com/myblogs
0 1295 posted 18 years ago by mate
Esta funcion toma valores del espacio global $HTTP_*_VARS desde un array en la llamada a la funcion, y si existen y tienen contenido, las registra como globales para que puedan ser accedidas a continuación. Debe recibir una lista de elementos en l...
1 1167 posted 18 years ago by Navegante
Una manera sencilla y muy limpia para utilizar tamaños de fuentes relativos y que todos los navegadores muestren el mismo tamaño de letra. Solo hay que asignar al "body" un tamaño de letra en "%" y luego al resto de elementos asignarle otro tam...
12 1334 posted 18 years ago by Eloi
1 ... 32 33 34 35 36 Next »