History.js plugin - how to use

I need a hand with the history.js plugin.

I put together a short page to test the functionality - http://www.salesmelbourne.com/

I am currently struggling with the following:

  • The Back / Forward buttons do not reload the AJAX div - is this an additional history.js function that I haven't added yet or shouldn't encode it myself? or both.

  • I notice when the title updates it - I believe that it will briefly show the page meta tag. Can I make it smooth?

  • IE (I use verison 9) displays a popup every time I change the page, saying "message from the site" - sort of like an error - can I sort it out somehow?

  • Also under IE (HTML4 browser) I get "suid = 13383514298760299522541335484" etc. I don’t understand why I need this - can I remove suid?

thanks heaps

+2
source share
3 answers
The history.js plugin does not work very well ... its a good idea, and I would still give the author credit for his attempts, but almost none of the cased sites used it:

https://github.com/browserstate/history.js/wiki/Showcase

and HTML4 support just gives me IE errors.

I can advise if you are looking for such a solution to write your own solution in accordance with the site you created ...

-ten
source

To answer your questions: 1) Yes, you need to link history.js with your code. History.js will remember any parameters that you pass to it, etc., but, of course, you decide something with these parameters.

2) You will need to understand what you are talking about. My implementation did not β€œlaunch” the page, but again, I do not use the β€œtitle” function of history.js. See Point No. 4 below for related information. I would argue that your implementation loads the page twice, each time you go back / forward.

3) I am using IE9 and do not receive such a warning. Provide more information about what he says. If this is an error message, then most likely you have a Javascript error in your code.

4) The suid parameter appears in browsers other than HTML5 (e.g. IE9) when you use the History.pushState data and header parameters (data, title, URL). My implementation of history.js uses only the url parameter, so I use History.pushState (null, null, url), and suid is not displayed in IE9.

+4
source

3.IE (I use verison 9) shows a popup every time I change the page, saying "message from the site" - sort of like an error - can I sort it out somehow?

Reason: you need to remove "History.log ()" from the code ... In IE, this History.log writes the log output to the alert field ...

+3
source

All Articles