Questions tagged [jquery-bbq]

jQuery BBQ is a "Back Button & Query Library" that enables simple bookmarkable #hash history via a cross-browser window.onhashchange event.

81 questions
18
votes
2 answers

How to replace the location hash and only keep the last history entry?

I'm using the jQuery BBQ plug-in to track the users progress through the page. However, I only want to create 1 additional entry in the user's history, not one for every hash change. I've tried the jQuery.bbq.pushState and merge_mode methods,…
Hoppe
  • 6,508
  • 17
  • 60
  • 114
9
votes
1 answer

Difference between a querystring and a fragment?

When using jQuery BBQ they are using the words "querystring" and "fragment". What is the difference btween the two?
ajsie
  • 77,632
  • 106
  • 276
  • 381
8
votes
1 answer

Is there a standard way of defining the href that opens in a document.open call?

The dilemma that I'm dealing with is that in the jquery-bbq code, because IE6 and IE7 do not support hashchange, they load pages twice in order to have a history state. This has a negative effect because code runs twice on both server-side and…
meder omuraliev
  • 183,342
  • 71
  • 393
  • 434
8
votes
1 answer

Updating the hash programmatically without triggering hashchange event?

I'm using the jQuery BBQ plugin to push states to the location.hash. To prevent a feedback loop, I'd like to disable the hashchange listener temporarily while setting the state programmatically. I've seen this solution: Change hash without…
dani
  • 4,880
  • 8
  • 55
  • 95
8
votes
3 answers

jQuery hash-based nav with jquery-bbq makes page jump around

I have a site at www.tinytoepress.com that uses #hash anchor tag based navigation, using jQuery and the jquery-bbq plugin. It works great, except that sometimes it causes the page to jump down below the header as if it were going to an actual
mrjf
  • 1,117
  • 1
  • 12
  • 22
5
votes
1 answer

Disabling hashchange listener when updating hash programatically (jQuery BBQ)

To prevent a feedback loop when setting the URL hash (#) programmatically (in contrast to manually changing the URL) I want to disable the hashChange listener temporarily. How should I change this code to actually disable the hashchange event when…
dani
  • 4,880
  • 8
  • 55
  • 95
5
votes
2 answers

IE 8 shows raw ajax response on page reloading with jQuery BBQ

I use Ben Almans's jQuery BBQ and jQuery hashchange plugins on pagination links. Both work as expected in Opera and Firefox but do not in IE 8 (surprised, huh?). IE also works good with ajax, back button and hashchange, but fails when I clicking the…
sunki
  • 672
  • 11
  • 20
5
votes
2 answers

jQuery BBQ generates error with jQuery 2

jQuery BBQ noob question: I have downloaded jQuery BBQ 1.2.1 and I'm trying to use it with jQuery 2.1.0. BBQ works in the sense that it does what I want it to do, but I've noticed an error message in the console. I've tracked it down to what appears…
Lee Jenkins
  • 2,299
  • 3
  • 24
  • 39
5
votes
1 answer

Angularjs history support for IE6 and IE7

I am using routing in Angularjs for my SPA but I have to support IE7 (and IE8 in IE7 compatibility mode). I want the browser history to still work though. I don't care if I have to use a jQuery plugin.
3
votes
1 answer

How to use multiple hashes?

Currently I use page numbers in hashes with Ben's Alman jquery-hashchange plugin: $(document).ready(function(){ $(window).hashchange( function(){ var hash = (location.hash) ? location.hash.slice(1) : 'page1'; $.ajax({ url:…
LA_
  • 19,823
  • 58
  • 172
  • 308
3
votes
4 answers

Is there any way to make jQuery BBQ Google Indexable?

I'm working on a AJAX powered web site and I decided to use Ben Alman's BBQ plugin for hashchange event. But, with this plugin, I can't make Hashchanges for Google search (!#) Is there any other plugin for it? Thanks
Burak F. Kilicaslan
  • 535
  • 2
  • 8
  • 20
3
votes
1 answer

jquery tabs back button support

I have looked around and found a couple of solutions for back button support with tabs using hash etc. My question is this: I want to implement a page, that has a tab widget and that is called into a div using ajax. If I click on a couple of tabs I…
Kevin Bradshaw
  • 6,327
  • 13
  • 55
  • 78
3
votes
3 answers

jquery bbq - detect when user clicks back button

I've successfully implemented the jQuery BBQ plugin to build a quick prototype, however I am having one small issue related to my particular setup: One of the pages, "#catalogue", includes a grid of items that are generated randomly using a…
ale
  • 791
  • 1
  • 5
  • 12
2
votes
2 answers

Is jQuery BBQ-Plugin still working with JQuery 1.7x?

Short question, but couldn't find a hint to that anywhere: it seems that the jQuery BBQ Plugin is only tested to work with jQuery until v1.4.2. Now the current version of jQuery is v1.7.1 and i wonder if the Plugin will be still working? Haven't…
Stefan
  • 317
  • 1
  • 3
  • 11
2
votes
0 answers

How to avoid repeated hashchange events with jquery bbq and dependent controls?

Say I've got three select boxes all of which are set up to $.bbq.pushState onChange. If the selects also have interdependencies (e.g. selecting a different model changes what colors are available) changing one select can result in window.hashchange…
sprugman
  • 19,351
  • 35
  • 110
  • 163
1
2 3 4 5 6