jQuery BBQ plugin v1.0.3

|

I’ve just updated jQuery BBQ to 1.0.3, fixing a really stupid IE 6 bug, and making a few internal tweaks and API refinements.

The stupid IE6 bug? Commenter Bogdan Stoica noticed that with a URL like http://example.com#foo?bar, IE 6 would mistakenly report location.hash to be “foo” and location.search to be “bar” which.. is completely insane.

Since jQuery BBQ already contained some code to fix a few cross-browser location idiosyncrasies, I just expanded and generalized it a bit, creating a pair of internal “get the actual fragment and query string” utility methods, that the publicly available methods can utilize.

The API refinements are minor.. the $.param.querystring and $.param.fragment methods now need a valid URL as the first parameter. For example “a=1&b=2” won’t work there, while “?a=1&b=2” will. This probably doesn’t affect you anyways, so don’t worry about it.

Post A Comment

  • Any of these HTML tags may be used for style: a, b, i, br, p, strong, em, pre, code.
  • Multi-line JavaScript code should be wrapped in <pre class="brush:js"></pre>
    (supported syntax highlighting brushes: js, css, php, plain, bash, ruby, html, xml)
  • Use &lt; instead of < and &gt; instead of > in the examples themselves.