Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5975887
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:08:59+00:00 2026-05-22T21:08:59+00:00

I am using Ben Alman’s jQuery BBQ to get the current page Querystring and

  • 0

I am using Ben Alman’s jQuery BBQ to get the current page Querystring and Hash Values and storing them in a Javascript object using the following code:

var params = $.deparam.querystring();
var paramsHash = $.deparam.fragment();

These are all being set correctly; if I console.log them I get the returned values:

distance         "0.1"
floorFrom        "0"
floorTo          "1000"
floorUnit        "1"
ipp              "10"
locationName     "London"
location_val     "LK||001"
tab              "3"

Now what I want to do is pass these values to a page using a jQuery .load call.

At the moment I am using the code below

$('#result').load('mypage.php', { querystringData : params, hashData : paramsHash }, function()
{
...
}

Obviously though this is passing the data to mypage.php as: querystringData[locationName]=London

I need it to be passed through as locationName=London etc but unsure the best way to achieve this.

Update, adding clarification, copy of comment made on answer below

The thing I want to move away from is using querystringData and hashData in the .load call. If I was to write it all out it would look something like:

$('#result').load('mypage.php', { distance : '0.1', floorFrom: '0', floorTo : '1000', floorUnit : '1', ipp : '10', locationName : 'London', location_val : 'LK||001', tab : '3' }

I don’t know how to get the values out the object and display them in the .load call like that. The other problem is that I will add and remove querystring values so I don’t think it is something I can hardcode.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T21:09:00+00:00Added an answer on May 22, 2026 at 9:09 pm

    This is untested, but I think it should work, with my limited knowledge of BBQ:

    var params = $.deparam.querystring();
    var paramsHash = $.deparam.fragment();
    
    var data = $.extend({}, params, paramsHash);
    
    $('#result').load('mypage.php', data, function()
    {
    ...
    }
    

    I believe params and paramsHash are already in the proper format, they just need to be merged. This may not be true for hash as I’m not familiar with BBQ.

    http://api.jquery.com/jQuery.extend/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using jquery + the hashchange plugin from ben alman. Below is a
I'm using Ben Almans plugin for hash change tracking: http://benalman.com/projects/jquery-hashchange-plugin/ Also I've modified my
I'm using http://benalman.com/projects/jquery-hashchange-plugin/ to listen for hash changes in my project, but his plugin
I use Ben Almans's jQuery BBQ and jQuery hashchange plugins on pagination links. Both
I'm using the jQuery plugin hashchange: http://benalman.com/projects/jquery-hashchange-plugin/ $(function(){ $(window).hashchange( function(){ // location.hash }) $(window).hashchange();
I'm trying to use Ben Alman's jquery plugin debounce which will limit the times
I'm using Ben Nadel's iFrame Upload function for an editing tool on a site
Using MySQL 5 with table abrechnung id datum title betrag wal jon al ben
I am using this javascript ( Super Table ) to transform my table in
I’m using Heather Solomon’s minimal publishing master page, I’ve got a simple feature with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.