Member Avatar

Tablesorter (currently v2.0.5) includes an "update" method. This method keeps a Tablesorter object up to date with dynamic changes made to its table(s). Like other Tablesorter methods "update" is implemented in the form of a custom event. A typical method call would be $table.trigger("update"); , where $table is a jQuery object. For some reason unknown to me, the "update" event code is written inside a setTimeout(function(){...}, 1) structure. Presumably this overcomes a problem in some browser or other. This works fine within itself but means that statement(s) immediately following a .trigger("update") call will be executed before the "update". This is …

Member Avatar
0
14
Member Avatar

[B]INTRODUCTION[/B] Have you ever wanted to pass data from one web page to another when server-side scripting is unavailable, and without setting a cookie? Ever wanted an efficient way to build url query strings? Well now you can. [B]SOLUTION[/B] It is maybe little realised is that data can be successfully passed directly from page to page in a url's query string (the bit to the right of the ?, excluding the #name), as you might do for server-side interpretation, but in this case with client-side interpretation in Javascript. This is possible because Javascript makes the query string available as [ICODE]location.search[/ICODE], …

Member Avatar
2
6
Member Avatar

[B]INTRODUCTION[/B] The W3C's [URL=http://www.w3.org/TR/Window]Window Object 1.0[/URL] specification (Working Draft dated 07 April 2006 at the time of writing) defines in it's [URL=http://www.w3.org/TR/Window/#location-attributes]Location Interface[/URL] section a set of attributes (or fragments) by which a Location object may be addressed. Despite the draft status of this document, many implementations of javascript have provided such an interface for many years. The Location attributes .href and its fragments [.protocol, .hostname, .port, .pathname, .search, .hash] are all read/write. Whilst reading is reasonably reliable across various browsers (there are some small differences in the detail of what is returned), some (principally IE6) fail to implement the …

0
4

The End.