C
Christopher.Eckman
Hello,
I am trying to do a function to force a redirect with new query string
(depending on when a user clicks a radio button so it triggers on
onClick). When I call the function I can see (in Firebug) it sets the
new query string variable correctly but the page won't refresh or set
the new URL. I set the query string with:
var queryString = "?Dealer="+Trim(dealer)+"&seed="+Math.random();
I added the seed value to ensure this wasn't a cache problem. Anyhow,
when I call:
window.location.search = queryString;
it ignores the command. You can see it hit the command in Firebug and
the arguments are as expected but it does nothing. If I build out the
complete URL and set:
window.location.href = newURL;
That will also do nothing. This is happening for both Firefox 2 and
IE 7 on a Windows XP box. Is there something I'm missing or some
standard browser setting that blocks this?
Any insight would be appreciated,
--Chris
I am trying to do a function to force a redirect with new query string
(depending on when a user clicks a radio button so it triggers on
onClick). When I call the function I can see (in Firebug) it sets the
new query string variable correctly but the page won't refresh or set
the new URL. I set the query string with:
var queryString = "?Dealer="+Trim(dealer)+"&seed="+Math.random();
I added the seed value to ensure this wasn't a cache problem. Anyhow,
when I call:
window.location.search = queryString;
it ignores the command. You can see it hit the command in Firebug and
the arguments are as expected but it does nothing. If I build out the
complete URL and set:
window.location.href = newURL;
That will also do nothing. This is happening for both Firefox 2 and
IE 7 on a Windows XP box. Is there something I'm missing or some
standard browser setting that blocks this?
Any insight would be appreciated,
--Chris