jquery - Redirect/Refresh to fragment identifier -
If you are not familiar with this to create a site using the III framework, then you have a page that divs And navigate between the segment identifiers between the user and you
The problem with this is that unless your user adds content, it does not appear until refresh. In my system, they add data to a list via jquery post, but as I say they do not see anything until one refreshes and when you refresh, this parent goes to div as That #fragment is lost
so I have managed to get the page to go to mywebsite.com/#_fragment, it has been updated after using the window. Location = mywebsite.com/#_fragment But this does not actually reload the page
While using a set interval () call, the documents are actively working to monitor. Location.Hash property, the easiest thing to do is replace the query string ARG, for example:
window.location = mywebsite.com/#_fragment A query string component such as:
window.location = mywebsite.com/?refresh=1#_fragment "refresh = 1" ( Or any other key / value pair) will cause the browser to request the server during the protection of #hash identifier.
For more information about JS location object here:
Comments
Post a Comment