Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
possibilitar a leitura de cada chave especÃfica do google maps para cada domÃnio respectivo à chave
0
757
posted 13 years ago by rbulgueroni
This tiny jQuery plug in forces a user to enter only numeric values on an input field by silently removing non-numeric values as they're entered. (Caution: Never rely on client-side validation; use server-side validation as well)
2
1165
posted 13 years ago by BrunoDeBarros
Previously, I posted a little snippet I found on how to generate a special body class on each .php page. I, later, needed to get that body class and echo out a piece of HTML, which depended on my current page. So here is the snippet that I came up wi...
0
792
posted 13 years ago by danielwrobert
A very simple HTML redirect that I found useful for a contact form confirmation.
The number preceding the url (in this case zero) tells the browser the number of seconds to wait before redirecting to the new url. For example, you could set this to...
0
1032
posted 13 years ago by danielwrobert
The filter only needs to know which requests need to be returned as JSONP, doesn't care how. Modify "OnBeginRequest" accordinly.
If original .asmx doesn't return JSON, extend it like example shows.
JSONP only works for GET requests, so don't forget...
0
906
posted 13 years ago by FMalk
Also seen for now at carinsurancerates.com
Assembled this in 2008 and have used it numerous times since then, reliable chunk of code. Jquery can be used to add a nice slide down option like on carinsurancerates.com
2
774
posted 13 years ago by toltmanns
Use this static class to encode and decode HTML Entity Names. For some reason Snipplr doesn't display all the code, so download the ZIP file for a full working demo and source code.
0
1994
posted 13 years ago by adrianparr
It's working now. Just having issue with it applying to all columns. Need to keep checking. (IE. have to tax's for testing, only one has the additional meta info attached, but they are both showing in the column as having the address as "active" (usi...
1
756
posted 13 years ago by thefrosty
This was more of a go at learning the basics of OOP, however I decided to document it well in case anyone had any comments. Note: It only works with single files, no directory usage.
0
690
posted 13 years ago by asdasDan
Just syntax examples here. First block reads, second writes. Top function just a debugging helper.
Using jquery 1.5, $(xData.responseXML).find("nodeName=z:row]").each(function(i)... may need to be written as
$(xData.responseXML).find("nodeName='z...
0
1247
posted 13 years ago by rumremix