I am trying to redirect one url using JavaScript for passing values to Java code using
location.href = "/something/uId=" + Idvalue + "time=" + "timeValue"
Here I am checking from two radio buttons that are today and Week radio buttons.
It is working fine for week and passing id and time value i.e., 200(example), week(Example).
But when it comes to today option it is passing only time value only. I tried the following ways
location.href += "&uId=" + uId;
// and
location.href += "time=" + today + "&uId=" + uId;
But it is passing only today only. I was surprised to see additional variables timeframe=today&x=26&y=4 but I did’t pass these x and y values.
I believe that
xandyvariables comes because you have image button.About your redirect page, try as follows: