Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I would like to pass spme parameters using QueryString asper normal to a a listview or DWP. But i don't want the page to refersh.I tried using hash which works but no idea i can pass the parameter to my DWP. THanks in advance

My snippet code below.

$("#dropdown").change(function () { 

checkSelected(); 
});



function checkSelected() {
    var m = $('#dropdown').find("option:selected").val();

    if (m !== 'Choose') {

        //This works but reloads the page
        var url = "?s=" + m;
        window.location.href = url;

        //This doesn't do any postback but doesn't refersh DWP
        //window.location.hash = "?store=" + m;

       //var param = document.URL.split('#')[1];
       //alert(param);

       //return false;


    }

  }
share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.