ˇ@

Home 

javascript Programming Glossary: bonus

Getting selected text in a browser, cross-platform

http://stackoverflow.com/questions/10478/getting-selected-text-in-a-browser-cross-platform

2 3 and Safari 2 . If it works in Opera that'd be a bonus but it's not a requirement. Anyone have a function that does..

Keeping history of hash/anchor changes in JavaScript

http://stackoverflow.com/questions/1078501/keeping-history-of-hash-anchor-changes-in-javascript

but it has worked fine for me so far. Surprise quirk bonus Can it be It turns out that Firefox only confirmed in 3.5 decodes.. Internet Explorer 7 works fine though. Surprise quirk bonus #1 In Internet Explorer 6 whenever there's a question mark in.. hash by parsing the location.href property. Surprise quirk bonus #2 If the location.search property is set any subsequent # characters..

What tools are available for documenting JavaScript?

http://stackoverflow.com/questions/1221413/what-tools-are-available-for-documenting-javascript

would be useful. If it has a maven plugin that would be a bonus but not required. javascript documentation documentation generation..

How can I prevent the backspace key from navigating back?

http://stackoverflow.com/questions/1495219/how-can-i-prevent-the-backspace-key-from-navigating-back

way which works on Firefox or in a cross browser way for a bonus For the record document .keydown function e if e.keyCode 8 e.stopPropagation..

Prevent form submission with enter key

http://stackoverflow.com/questions/1563062/prevent-form-submission-with-enter-key

enters during input of a textarea. Also would be an added bonus to replace the enter key behavior of input fields with behavior..

The entity name must immediately follow the '&' in the entity reference

http://stackoverflow.com/questions/16303779/the-entity-name-must-immediately-follow-the-in-the-entity-reference

XML special characters in your JS code. As an additional bonus this gives you the opportunity to let the browser cache the..

Geolocation API on the iPhone

http://stackoverflow.com/questions/221592/geolocation-api-on-the-iphone

for me on the iPhone web browser Safari and as an added bonus it even worked with FireFox 3.5 on my laptop The Geolocation..

JSONP vs IFrame?

http://stackoverflow.com/questions/3224429/jsonp-vs-iframe

html code together with simple css rules which is a clear bonus for maintenance As for the drawbacks an iframe is heavy weight..

Export Javascript Console log from Google Chrome

http://stackoverflow.com/questions/3462648/export-javascript-console-log-from-google-chrome

window.log as one of its parameters Step 4 Profit An added bonus to this system is that once you have it setup you can use console.log..

flot graph, use legend to turn on/off series

http://stackoverflow.com/questions/4230945/flot-graph-use-legend-to-turn-on-off-series

because change here is more appropriate. And finally as a bonus we loop through the legend table and pull the colors from there..

CSS/Javascript to force html table row on a single line

http://stackoverflow.com/questions/426398/css-javascript-to-force-html-table-row-on-a-single-line

this is the column two test div td tr table body html As a bonus IE will place an ellipsis in the case of an overflow using the..

Finding memory leaks in JavaScript using firebug?

http://stackoverflow.com/questions/5028479/finding-memory-leaks-in-javascript-using-firebug

built in that is great for that kind of thing. As an added bonus it also shows you all browser events such as repaints so you..

Are there any JavaScript live syntax highlighters?

http://stackoverflow.com/questions/61655/are-there-any-javascript-live-syntax-highlighters

or regex based lexers that you'll see in the wild. As a bonus he discusses a lot of real world issues you'll run into when..

Making a javascript string sql friendly

http://stackoverflow.com/questions/7744912/making-a-javascript-string-sql-friendly

test but it does seem to work and just as an added bonus it escapes tabs backspaces and ' ' so it can also be used in..

Javascript - dumping all global variables

http://stackoverflow.com/questions/8369338/javascript-dumping-all-global-variables

names it will be enough to me. Seeing its values is a bonus. javascript jquery share improve this question Object.keys..

What is the new proper way to use a child selector with a context node in jQuery?

http://stackoverflow.com/questions/8406642/what-is-the-new-proper-way-to-use-a-child-selector-with-a-context-node-in-jquery

traverses the immediate children of a context node As a bonus can anyone explain why this is depreciated All the alternatives..

Move a div in a curved path (like tweening in Flash old days)?

http://stackoverflow.com/questions/8438830/move-a-div-in-a-curved-path-like-tweening-in-flash-old-days

BĂ©zier curve trivial using the animateMotion element. As a bonus you can even cause it to calculate the rotation for you. Some..

Convert Lat/Longs to X/Y Co-ordinates

http://stackoverflow.com/questions/1019997/convert-lat-longs-to-x-y-co-ordinates

know might work X Y can be form any corner of the image Bonus points for the same solution in PHP but I really need the JS..

registering clicks on an element that is under another element

http://stackoverflow.com/questions/1148424/registering-clicks-on-an-element-that-is-under-another-element

off. You can edit it on jsbin to try out your solution. Bonus points if you can have the boxes toggle on hover. DOCTYPE html..

What's the difference between a continuation and a callback?

http://stackoverflow.com/questions/14019341/whats-the-difference-between-a-continuation-and-a-callback

function replaced by the stack frame of the tail call . Bonus Proceeding to continuation passing style. Consider the following..

Display value in jQueryUI ProgressBar

http://stackoverflow.com/questions/1476542/display-value-in-jqueryui-progressbar

I'd just use the value . I can't seem to get this to work. Bonus Question How do I format the displayed text e.g. color alignment..

MSIE and addEventListener Problem in Javascript?

http://stackoverflow.com/questions/1695376/msie-and-addeventlistener-problem-in-javascript

any ideas about what I'm doing wrong Thanks in advance. Bonus points for anyone who can tell me what the 3rd parameter False..

Using a Relative Path for a Service Call in AngularJS

http://stackoverflow.com/questions/17011616/using-a-relative-path-for-a-service-call-in-angularjs

be the root path of the site so using a base tag helps. Bonus it works for every other asset too. You can have a base path..

Validate numbers in JavaScript - IsNumeric()

http://stackoverflow.com/questions/18082/validate-numbers-in-javascript-isnumeric

effective way to validate decimal numbers in JavaScript Bonus points for Clarity. Solution should be clean and simple. Cross..

How to write high quality Javascript [closed]

http://stackoverflow.com/questions/3142250/how-to-write-high-quality-javascript

Follow the Top Rated bloggers because they know stuff Bonus avoid gotchas Gotchas using for.. in for arrays use simple loop..

Getting the contents of an element WITHOUT its children

http://stackoverflow.com/questions/3172166/getting-the-contents-of-an-element-without-its-children

var result '#thisone' .contents .first .text alert result Bonus If there are other text nodes in the outer span that you want..

Do events handlers on a DOM node get deleted with the node?

http://stackoverflow.com/questions/4337582/do-events-handlers-on-a-dom-node-get-deleted-with-the-node

or are they cleared out when their DOM nodes are deleted Bonus question how can test this myself javascript dom javascript..

How to distort an image to create flag waving in the wind effect using html5 canvas

http://stackoverflow.com/questions/4362248/how-to-distort-an-image-to-create-flag-waving-in-the-wind-effect-using-html5-can

waving in the wind using javascript and an html5 canvas. Bonus I also would like to be able to export this animation as a png...

UserScripts & Greasemonkey: calling a website's JavaScript functions

http://stackoverflow.com/questions/5006460/userscripts-greasemonkey-calling-a-websites-javascript-functions

location.assign javascript Grooveshark.playNextSong void 0 Bonus Script Here's a complete Greasemonkey script that demonstrates..

How to load images dynamically (or lazily) when users scrolls them into view

http://stackoverflow.com/questions/5117421/how-to-load-images-dynamically-or-lazily-when-users-scrolls-them-into-view

that can achieve this behavior with minimum coding. Edit Bonus can someone explain if there is a onScrolledIntoView or similar..

Cross-browser Save As .txt

http://stackoverflow.com/questions/6464828/cross-browser-save-as-txt

the browser won't offer to download the file then . Bonus reading there was a W3.org discussion in February 2010 on fixing..

(Open Source) Examples of JavaScript Prototypical OO

http://stackoverflow.com/questions/6534333/open-source-examples-of-javascript-prototypical-oo

OO is too heavily influenced by classical emulation. Bonus points If It's well comented documented Has unit tests Is on..

How to synchronize scrolling positions for several iframes

http://stackoverflow.com/questions/762274/how-to-synchronize-scrolling-positions-for-several-iframes

other iframes allowing the user to compare the same data. Bonus points iframe content is loaded only when the user opens the..

jQueryReplacing images at time intervals

http://stackoverflow.com/questions/8366684/jqueryreplacing-images-at-time-intervals

every 0.5 secs setInterval swapImages 500 Working example Bonus Random change function swapImages var random Math.floor Math.random..

How do I display a date/time in the user's locale format and time offset?

http://stackoverflow.com/questions/85116/how-do-i-display-a-date-time-in-the-users-locale-format-and-time-offset

the client site convert it to the user's local timezone. Bonus if I can output in the user's locale date format. javascript..

Concatenate and minify JavaScript on the fly OR at build time - ASP.NET MVC

http://stackoverflow.com/questions/890561/concatenate-and-minify-javascript-on-the-fly-or-at-build-time-asp-net-mvc

have about 5 or 6 I would like concatenated and minified. Bonus points for anyone who also incorporates CSS concatenation and..

Inserting arbitrary HTML into a DocumentFragment

http://stackoverflow.com/questions/9284117/inserting-arbitrary-html-into-a-documentfragment

div and the span inside of frag with an easy one liner. Bonus points for no loops. jQuery is allowed but I've already tried..