Saturday, 31 August 2013

URL not showing request parameters

URL not showing request parameters

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+"&region="+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&region=myregion
Why URL doesnt show the query string ?

No comments:

Post a Comment