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

The URI block identifiers are only client-side and are not sent to the server, that is, if you inspect the HTTP request header, you will not see the #_frame. Additionally, by modifying the URI only by modifying the piece, no DOM event will trigger.

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

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -