Jump to content

Full seo friendly Ajax website


Anjmao

Recommended Posts

Hello everybody , I'm working with PHP , AJAX and jQuery to create dynamic full AJAX website that will be full seo friendly (it's very important for me) . For example , if I have url

<a class="ajaxURL" href="www.mydomain.com/products/laptops/">Laptops</a>

I can load this url conent using AJAX

 

// We're using jQuery functions to make our lives loads easier
$('a.ajaxUR').click(function(e) {
href = $(this).attr("href");

//This function would get content from the server and insert it into the id="content" element
$.ajax(
    {
	   
	   url:href;
	   context:document.body,
	   success:function(data)
	   {
		 $('#conentt').html(data);
		 $('title').html(title);   // dynamic change page title

	   }

   }); 

//This is where we update the address bar with the 'url' parameter
window.history.pushState('object', 'New Title', url);

//This stops the browser from actually following the link
e.preventDefault();
}

 

It seems that if your javascript is enabled , it will load all conent with AJAX otherwise

just simple use url normally , and search engines also can access this conent.So that do you think about this method of building full AJAX website ? Is it can be full seo friendly ? :)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.