0

I have a page where I need to add parameter to this url when particular tipster is clicked on.

This is what I have:

$(document).ready(function () { $("#Tipster").hide();

var qs = jQuery.parseQuerystring();

if (qs['tipster']) {
    currentTipster = parseInt(qs['tipster']);
    ShowTipster(currentTipster);


    if (qs['tipstertip']) {
        ShowTipsterTip(parseInt(qs['tipstertip']));
    }
}

if (qs['tipsterbio']) {
    currentTipster = parseInt(qs['tipsterbio']);
    ShowTipster(currentTipster); ShowTipsterBio();
}



$("#TipstersHomeContainer").css("display", "");
$("#TipsterContainer").css("display", "");

});

jQuery.extend({
  parseQuerystring: function(){
    var nvpair = {};
    var qs = window.location.search.replace('?', '');
    pairs = qs.split('&');
    $.each(pairs, function(i, v){
      var pair = v.split('=');
      nvpair[pair[0]] = pair[1];

});
return nvpair;

} });

marb
  • 53
  • 1
  • 12

1 Answers1

0

This problem was solved. I was on the right truck, simple variable misspelling was the problem

marb
  • 53
  • 1
  • 12