Dynamically load part of website - change URL

my question about this site is http://www.bits-apogee.org/2011/

whenever you click on the link in the side navigation bar, the middle part of the site is dynamically loaded. In addition, the URL also changes, everything else remains the same. how it's done?

Is this some kind of query plugin?

+3
source share
4 answers

I totally agree with @JMCCreative. This is similar to the actual update. You should see the following post in StackOverflow.

Change the url without reloading the page

+1
source

The site uses hashes (#) in the URL to indicate new content being uploaded.

, ( , ), ...

http://www.highrankings.com/urls-with-hashtags-307 (SEO)... , , , SEO .

+1

2 :

  • HTML5 URL- (history pushState), . SO: ?.
  • hashtag (#) , .

jQuery, jQuery Address. .

+1

. ajax URL-, : http://www.bits-apogee.org/2011/getcontent/?even=Rachel+Armstrong .


:

  • , .
  • user window.history.pushState URL-
  • -
  • URL- .
  • ajax URL

2 The libraries I used are both simpler than the above, since they rely on loading a regular html page through AJAX instead of the example site you point to that used the JSON format to get the data.

  • Pjax - refresh fragments of a page by pulling this HTML node from another URL.
  • Ajaxify is a simple solution, you can do it on an HTML site in 10 minutes.
0
source

All Articles