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
17
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
  • 5,820
  • 13
  • 51
  • 102
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
  • 171,706
  • 64
  • 370
  • 423
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,614
  • 6
  • 47
  • 91
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,017
  • 1
  • 11
  • 22
8
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
  • 70,516
  • 97
  • 259
  • 375
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,614
  • 6
  • 47
  • 91
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
  • 19
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
  • 1,804
  • 2
  • 16
  • 34
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
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
  • 525
  • 2
  • 7
  • 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,122
  • 11
  • 45
  • 73
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
  • 711
  • 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 Müller
  • 157
  • 1
  • 2
  • 10
2
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_
  • 18,018
  • 53
  • 160
  • 288
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
  • 17,781
  • 31
  • 105
  • 160
1
2 3 4 5 6