Ajax and Seo

Source: Internet
Author: User
Tags xsl forum software

From (butian.org/knowledge/develop/ajax/20090622/1526.html

)

Not long ago, I saw an article titled "Ajax is a search engine killer" on a foreign website.

For search engines, most of the content of a website is invisible, cannot be connected, cannot be located, or cannot be found. Therefore, this restricts Ajax technology in many applications ". However, this is not the case. These ideas are not completely correct.

 

We want Ajax technology and search engines to coexist and be compatible with each other. This idea has always been considered impossible, but the boonex application will give us some inspiration and suggestions.

 

Ajax is a great technology, and most of the so-called "disadvantages" can be overcome. In web development, Ajax is very popular, but we have also heard a lot of deficiencies and defects in Ajax technology, it is said that the search engine cannot be very compatible with it (for example, the web page cannot be accessed and the search engine cannot be found ). However, you can use technology to control these problems.

 

There is an interactive orca forum software and the soon-to-be-developed product-directory, wiki, and blog. Ajax technology will be widely used to solve the above problems.

 

Orca is a very successful product. It 100% uses the Ajax technology and is a forum software. It already has an operable back button, permanent connection, Friendly search engine structure and tag page. Want to know more? In the next two weeks, we will see the version 1.1 of orca, which has many cool new features, including unique page title tags and more user-friendly URLs (selectable copies, in phpBB or VBulletin Forum, or other URL structures ). In a few months, we will plan to make orca more friendly and useful than other traditional forums.

 

Orca is an open-source product with GPL certification and free of charge. We decided to release orca in open waters to make it truly popular and widely available. You can see its effect, use it, or participate in its development. Orca-interactive forum.

 

Now, in order for search engines to find sites that are widely used in Ajax technology, we will share this information to help website administrators develop sites based on AJAX technology and Se-dldly.

 

The website administrator has developed two versions of websites: one for browsing users and the other for search engines. We combine the two into one. We use XSL to generate site content. XSL conversion can be performed on the client (browser) or on the server (PHP language ). This effectively avoids writing different codes for Ajax and search engines.Code. The same Code provides different functions for search engines and users.

For example, if you look at the url in orca, you will find that it is written in this way:

orca installation

When a user clicks this link, the browser will execute the onclick event, if "Return F. if the return value of selectforum (5, 0) is false, the browser will execute the onclick code without executing the link pointed to by the href attribute. In this case, we execute the XSL transformation on the client (this can improve the server performance because the XSL transformation runs on the client ).

 

When a search engine searches for a URL, it only displays the href attribute of the URL and opens the webpage with a regular URL with the same content. In this case, the XSL conversion is performed in the server segment. This URL generates a regular HTML page.

The back button-What should I do if I used to be an Ajax enemy? Simple!

In orca, the back button is based on the # sign after the URL. Javascript can read and change the value after # in the URL. This does not require page reload. Instead, the browser will add new content to the URL) path in the browser's history.

The order is as follows (taking orca as an example ):

1. You can open a forum through Ajax.

2. the JavaScript function reloads the target area on the page and stores the behavior information in the URL (for example, # action = goto & forum_id = 5 ).

3. the browser saves the URL in the historical folder of the browser.

4. Click the back button.

5. in the Javascript script, the # part after the URL has changed. Put the new content after # and parse it, call the JavaScript function to reload the target region of the industry (for example, # action = goto & forum_id = 3 will open id = 3 ).

The suffix of the page description language: Mozilla and IE browsers process these URLs in different ways. Therefore, the JavaScript code written for them is different,AlgorithmIt is the same.

 

Note that the XSL conversion is very strict-you must carefully write the XSL template and finally write the correct HTML code.

This is just the beginning. We will plan to improve these technologies and use them in orca and other boonex products.

 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.