Group items matching
in title, tags, annotations or urlBookmarklet Coding › Left Logic - 0 views
-
if you want your bookmarklet to work in all browsers, it has to adhere to length limits: IE 5 - 2084 bytes IE 6 - 508 bytes IE 6 SP 2 - 488 bytes IE 7 - 2084 bytes Firefox + Safari - > 2000 bytes IE6 has the smallest length, and that includes the javascript: pseudo protocol.
-
Avoid the double quote character ("). Since the user is going to install your bookmarklet from a link, it will be wrapped with quotes (assuming xhtml). If you absolutely require quotes, try using the entity: %22
Allan Jardine | Reflections | Secret - 1 views
Dynamically including Github code | PeterBraden.co.uk - 0 views
-
/** * GitHub code inclusion * By Peter Braden */ var PBgithub = PBgithub || {}; /* You'll want to change these to your credentials */ PBgithub.login = "peterbraden"; PBgithub.token = "9d567812a941dc331cf4e431e7fc4ebc"; PBgithub.base = "http://github.com/api/v2/json/"; /** Load github content for this code element **/ PBgithub.codify= function(code_elem){ PBgithub.c = $(code_elem); $.getScript(PBgithub.make_url(PBgithub.base + 'repos/show/', "/branches", 'PBgithub.handle_branch')); } PBgithub.make_url = function(front, end, callback){ var data = "?callback=" + callback + "&login=" + PBgithub.login + "&token=" + PBgithub.token; return front + PBgithub.c.attr('username') + "/" + PBgithub.c.attr('repository') + end + data; } PBgithub.handle_file = function(data){ PBgithub.c.html( data['blob']['data'].replace(//g, '>')); PBgithub.next(); } PBgithub.handle_branch = function(data){ var branch = data['branches'][PBgithub.c.attr('branch')]; $.getScript(PBgithub.make_url(PBgithub.base + 'blob/show/', "/" + branch + "/" + PBgithub.c.attr('path'), 'PBgithub.handle_file')); } PBgithub.next = function(){ if (PBgithub.i < PBgithub.elems.length){ PBgithub.i+=1; PBgithub.codify(PBgithub.elems.get(PBgithub.i-1)); } } $(function(){ PBgithub.i = 0; PBgithub.elems = $('code.from-github'); PBgithub.next(); });
JavaScript, Tail-Call Optimization - 2 views
Tingkat Eselon - 0 views
Suplemen Pakan Berbahan Tepung Cacing - 0 views
Antibiotik Organik untuk Unggas - 0 views
Microsoft LightSwitch: Querying Multiple Entities | Packt Publishing - 0 views
Embedding a DataGridView in a ComboBox - CodeProject - 0 views
DAUR ULANG PLASTIK menjadi BBM - 0 views
jQuery and XOOPS - 0 views
‹ Previous
21 - 39 of 39
Showing 20▼ items per page