-3
I have a page that presents information through AJAX
. Each time I do a search, I have the value of the search and page on URL
, as follows:
/Material/Index?? palavraChave?? numPagina
I can trace those values through .split("??")
, but wanted to implement something more intuitive:
/Material/Index? qw=palavraChave&pag=numPagina
How do I save to a single variable a cuss and another to in a magazine and most importantly: the keyword may be missing, but have the page number. With the question marks I have I can’t tell if what I have on URL
is a search value, or a page.
How is your ajax to create this Url?
– Randrade
I do not use ajax to create the url, I am using pushState() and pass the variables that the user enters into a search box,
– ihavenokia