I am taking some data from user-2 paramerters(using JS,html,jquery) , when user pclicks on GO, then calling servlet, passing these two parameters in get request:
$.get("/Myservlet?param1="+myval+"®ion="+myregion,function(data){addToTables(data);hideLoading();},"text");
Servlet is returning data for these 2 parametrs, and i am showing that as tables in browser. But the prob is ,the browser URL is not changing , suppose it was abc.com earlier and it displays data for the 2 parameters it is still abc.com
why doesnt it change to abc.com?param1=myval®ion=myregion
Why URL doesnt show the query string ?
Your code is really hard readable. It seems for me you did misunderstand $.get. Thsi Command does not change the browser url. It sends a get request. You can see the in Firebug tab Network.
Then you need a success function which is executed then the request was successfull.
By the way: GET is insecure (or at leat easier to change), use POST instead.