jquery-bbq

Deep linking using BBQ plugin

删除回忆录丶 提交于 2019-12-24 20:43:37
问题 I'm not sure what it is that I am doing wrong here. When I open the HTML code for it, it just crashes. Does anyone have any idea if my syntax is wrong, or I'm just fundamentally not understanding how the BBQ plugin works? Thanks so much! $.bbq.pushState({ lat: pointArray[0][0].lat(), lng: pointArray[0][0].lng() }); $(window).bind('hashchange', function(e) { var searchParams= e.getState(); pointArray[0][0] = new google.maps.LatLng(searchParams.lat, searchParams.lng); mapSearch(); }); $(window)

Disabling hashchange listener when updating hash programatically (jQuery BBQ)

怎甘沉沦 提交于 2019-12-23 15:35:26
问题 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 updating the hash using $.bbq.pushState(hash)? (code below doesn't work) hashChangeEnabled : true, bindHashChange : function(){ var that = this; $(window).bind( 'hashchange', function( event ) { if(that.hashChangeEnabled == true){ stateObj = event

Why does including prototype.js break the functioning of jquery bbq?

假装没事ソ 提交于 2019-12-20 04:04:49
问题 I have: <!DOCTYPE html> <html> <head> <title></title> <link rel="stylesheet" type="text/css" href="/temp/css/menu.css" /> <link rel="stylesheet" type="text/css" href="/temp/css/bottomchatdiv.css" /> <link rel="stylesheet" type="text/css" href="/temp/css/centercontent.css" /> <link rel="stylesheet" type="text/css" href="/temp/css/basics.css" /> <script type="text/javascript" src="jquery-1.7.js"></script> <script type="text/javascript" src="jquery.ba-bbq.js"></script> <script type="text

JQuery BBQ: Where to store URLs?

自作多情 提交于 2019-12-11 13:34:25
问题 Link To Demo Page: http://benalman.com/code/projects/jquery-bbq/examples/fragment-advanced/ SCRIPT: <script type="text/javascript" language="javascript"> $(function(){ // For each .bbq widget, keep a data object containing a mapping of // url-to-container for caching purposes. $('.bbq').each(function(){ $(this).data( 'bbq', { cache: { // If url is '' (no fragment), display this div's content. '': $(this).find('.bbq-default') } }); }); // For all links inside a .bbq widget, push the

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

情到浓时终转凉″ 提交于 2019-12-11 03:39:43
问题 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 used it before and just want to avoid wasting time hopelessly in getting it working... 回答1: I know this is an old thread, but just in case anyone comes across it like I have - I'm using jQuery 1.9.1 and just by including the jQuery BBQ plugin I get a

How can I learn about enabling the back button in a jQuery AJAX application?

99封情书 提交于 2019-12-11 02:28:56
问题 I have looked at all of the most popular questions on here, including the ones that reference the most popular plugins like BBQ and jQuery Address. However, there is something I am missing. I need instruction a step back from anything I have seen in those projects. They assume some basic knowledge that I apparently don't have, and I am unable to deduce what each line of code in the examples is actually doing. I want to do four things: 1) Make the forward button work like it does in a non-AJAX

Support browser back-button with ajax without relying on a hash change?

不打扰是莪最后的温柔 提交于 2019-12-05 04:13:26
问题 I'm currently using the jQuery BBQ plugin to enable the bowser navigation buttons to work, but I have a problem in that if a bookmark is saved by a user for one of the pages, say... www.mysite.com/#page1 when the user returns via the bookmark the full page has to first load... www.mysite.com/ before the hash part of the url can be used for the ajax call back to complete the page. To address the problem I've tried creating only a 'skeleton' page on all url calls to the main page so that all

Why does including prototype.js break the functioning of jquery bbq?

痴心易碎 提交于 2019-12-02 07:02:33
I have: <!DOCTYPE html> <html> <head> <title></title> <link rel="stylesheet" type="text/css" href="/temp/css/menu.css" /> <link rel="stylesheet" type="text/css" href="/temp/css/bottomchatdiv.css" /> <link rel="stylesheet" type="text/css" href="/temp/css/centercontent.css" /> <link rel="stylesheet" type="text/css" href="/temp/css/basics.css" /> <script type="text/javascript" src="jquery-1.7.js"></script> <script type="text/javascript" src="jquery.ba-bbq.js"></script> <script type="text/javascript" src="jquery.ba-bbq-addtl.js"> </script> <script type="text/javascript" src="prototype.js"></script