mikeurturn
06-03-2009, 04:41 PM
I have the following function:
function goToPageWithAttributes(page,attr,value){
//alert("goToPageWithAttributes :" + page + " attr : " + attr + " value : " + value );
var container = MyOpenSpace.MySpaceContainer.get();
var qryString = container.getQueryString();
var qryString = replaceQueryString(qryString,attr,value);
alert(qryString)
window.location = page + "?" + qryString
}
I am wondering how I would go about altering or using this function so that I am able to pass multiple attributes and values to it. In other words, I would like to generate a page similar to page.php?a=1&b=2&c=3&d=something&e=test.
Any thoughts from anyone? Thanks in advance!
function goToPageWithAttributes(page,attr,value){
//alert("goToPageWithAttributes :" + page + " attr : " + attr + " value : " + value );
var container = MyOpenSpace.MySpaceContainer.get();
var qryString = container.getQueryString();
var qryString = replaceQueryString(qryString,attr,value);
alert(qryString)
window.location = page + "?" + qryString
}
I am wondering how I would go about altering or using this function so that I am able to pass multiple attributes and values to it. In other words, I would like to generate a page similar to page.php?a=1&b=2&c=3&d=something&e=test.
Any thoughts from anyone? Thanks in advance!