Welcome To Snipplr
You searched for: http
Everyone's Recent JavaScript Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
http://blog.ramonlechuga.com/2010/10/20/checking-object-structure/
The Array
0
739
posted 14 years ago by ramonlechuga
given a url:
>`http://www.someurl.com/page.html?param1=foo¶m2=bar`
You can use map.param1 outside of the function such as:
>`$('#some_hidden_field').val(map.param1);`
0
772
posted 14 years ago by agdm
This is 3 lines of javascript code to tweetify plain text returned by Twitter API
Input : RT @TTintheCloud: How much are free #cloudcomputing trial offers from Google, Amazon and Microsoft actually WORTH? http://bit.ly/i4w4qa
Output : RT <a hre...
1
677
posted 14 years ago by naren1012
Modified regex of URL Matcher found on http://daringfireball.net/2010/07/improved_regex_for_matching_urls
0
861
posted 14 years ago by naren1012
JavaScript
JS - onclick function to insert text characters symbol into text input field or textarea at the cursor caret location position
// big thanks to these tips for giving me code to steal: http://bit.ly/bundles/brandonjp/9
/*
* USAGE: give your HTML textarea or text input element an ID
* give your button an onClick="insertThisInThere(text2insert, theInputIDwhereItGoes);"...
0
2394
posted 14 years ago by brandonjp
This snippet could be useful if you use an div based design eg. with a slider or something similar. it grabs variables from the base url splitted by "#".
So you can browse to your site like "http://www.example.com/#1#2" and use the first and secon...
0
1120
posted 14 years ago by disas
This script handles table sorting, is easy to implement and to alter and has decent documentation. I did not write this JavaScript, rather, I found it here:
http://www.kryogenix.org/code/browser/sorttable/
I used this script on the ACEE WordPr...
0
1028
posted 14 years ago by racl101
I did not, in fact write this script. I found it here:
http://www.webtoolkit.info/javascript-url-decode-encode.html
0
818
posted 14 years ago by racl101
Since tinyMCe doesn't transfer it's editor contents to the text area until you hit the submit button, and since the autosubmitter doesn't ever hit the submit button TinyMCE boxes never save. IT's a simple fix, just place the code on line 2, at the ve...
0
881
posted 14 years ago by FatFolderDesigner
First option uses a parameter in <a href="http://snipplr.com/view/46534/reading-and-writing-list-data-in-sharepoint-2010-using-spservices/">spservices method</a> to limit the results to four. Second option limits the results returned to six in the c...
0
1562
posted 14 years ago by rumremix
This example grab content from <a href="http://startupquote.com/">StartupQuote.com</a>. The ultra cool and super inspiring tumblr blog.
1
916
posted 14 years ago by ebiansyah1402
Code matches querysting data to form feilds on the page based on the feild name.
I've added the example querystring to the body of the page.
Found at: http://codingforums.com/showthread.php?t=198419
Code by: Old Pedant
0
902
posted 14 years ago by Carolyne
On click event, display a div on mouse coords.
Tested on Firefox 3.6.11, chrome 6, internet explorer 6.
Based on this source code: http://www.webdeveloper.com/forum/showthread.php?t=92007
0
3405
posted 14 years ago by juanduke
Be sure to call the exact version desired or the script is only cached for one hour!
http://encosia.com/2009/10/11/do-you-know-about-this-undocumented-google-cdn-feature/
1
1072
posted 14 years ago by housecor
In regards to progressive enhancement, see also the [jQuery version](http://snipplr.com/view/48275/default-value-for-input-fields-jquery-version/).
6
1116
posted 14 years ago by riddla
I\'m constantly testing forms over and over for one reason or another, and am fed up with making a typo and autocomplete not populating all the data, so I made this little snippet. It searches for form elements on the page (input, textarea and select...
1
1124
posted 14 years ago by dom111
Uses html5 geolocation to determine device position and sets this as the starting point for directions on a Google Map. Use modernizer to detect support.\r\n\r\nhttp://diveintohtml5.org/geolocation.html\r\n\r\nhttp://code.google.com/apis/maps/docume...
1
1368
posted 14 years ago by Meander365
A recent update to either Google's search results page or Firefox's Tab Mix Plus add-on has prevented a locked tab from opening links in a new tab. This Greasemonkey script removes the tracking code on the Google links that causes the problem. I don'...
0
1049
posted 14 years ago by wizard04
different solution by PPK:\\r\\n[http://www.quirksmode.org/book/examplescripts/maxlength/index.html](http://www.quirksmode.org/book/examplescripts/maxlength/index.html)
0
901
posted 14 years ago by cfleschhut
requires that a pulldown \\\"program1\\\" in form \\\"freshmen\\\" be set to anything but the first value in the option list. \\r\\n\\r\\nrequires jquery validate: http://docs.jquery.com/Plugins/Validation
1
984
posted 14 years ago by dan_hoerr
Tag Description
total total pages for the query
page current page of the query
records total number of records for the query
rows an array that contains the actual data
id the unique id of the row
cell an...
0
642
posted 14 years ago by elijahmanor
via [http://mir.aculo.us/2010/06/04/making-an-ipad-html5-app-making-it-really-fast/](http://mir.aculo.us/2010/06/04/making-an-ipad-html5-app-making-it-really-fast/)
for CSS3 Transitions, Transforms, Animation also see:
[http://css3.bradshawenterp...
0
848
posted 14 years ago by cfleschhut
This is a script [tweeted by @gregmuellegger](http://twitter.com/gregmuellegger/status/16618146398). Example usage: Supports f("Hello %s.", ["World"]) and f("Hello %(name)s.", {name: "World"})
0
1095
posted 14 years ago by glends
[via rtcrm]
Since HTML5 is getting [more](http://www.brucelawson.co.uk/tests/html5-elements.html) [attention](http://adactio.com/journal/1540/) by way of marking up our new pages, and the only way to get IE to acknowledge the new elements, such as...
0
890
posted 14 years ago by mennyj
based on [http://net.tutsplus.com/tutorials/javascript-ajax/create-a-simple-powerful-product-highlighter-with-mootools/](http://net.tutsplus.com/tutorials/javascript-ajax/create-a-simple-powerful-product-highlighter-with-mootools/)
0
735
posted 14 years ago by cfleschhut
via [https://www.packtpub.com/mootools-1-2-beginners-guide/book](https://www.packtpub.com/mootools-1-2-beginners-guide/book) & [http://davidwalsh.name/mootools-custom-event](http://davidwalsh.name/mootools-custom-event)
0
783
posted 15 years ago by cfleschhut