AJAX and using javascript history() -
i have page, loads in data using ajax (a form filter) using jquery. gives me list of items click on.
when page of item loads, have button, using:
<script type="text/javascript"> function navigateback(){ if (document.referrer.indexof("press")> -1){ history.go(-1); return false; } return true; } </script> <a href="" onclick="navigateback()">
but i'd happen, returns ajax filtered results.
is possible?
thanks
this requirement has implemented such have key appended url
http://abc.com/xyz.html#search-key=keyword
in java script should have global (like static) variable map of objects search results various keys. if map contains key in url return form map else fire ajax request , fetch value server.
be sure append url key whenever there server call made , result stored in map. frameworks dwr make simple handle.
Comments
Post a Comment