I want to load the page without refreshing. While preferring ajax technique the URL won’t crawl in SEO. So I am choosing Hijax techinique to change the content without reload. I am new to this technique. So Kindly anyone suggest the guide for this. Also Say whether it support the dynamic content load? Because I am choosing the content based on the primary key value.
Thanks in advance.
I did something similar using JQuery alone.
If you attach an onClick to the links on your website, the search engines won’t be able to trigger them as they are JS meaning that they can crawl properly. For a JS enabled browser you can catch the onClick, get the URL of the link clicked and then load that using AJAX into a div of your choice.
Here is the JS I used:
And the hyperlink would be something like:
This will load
www.example.cominto theajax_container_wrapperdiv when the link is clicked. If you only want to load a portion ofwww.example.comthen you can substitute this line:with something like this:
This will load the content of
some_divonwww.example.cominto yourajax_container_wrapper.