Finally, I found an article at http://code.google.com/intl/en/web/ajaxcrawling/docs/getting-started.html msnbc using this method. Thanks to all my friends.
Thank you for your help. I will study this for myself: -}
Today I am updating my question again, deleting all my code. Maybe I think that everything is wrong.
I want to make a product display page.
One of them - index.php, the other - search.php(like a jquery box page). index.phphas some lists of product catalogs; each click on a catagory item of a product passes each value to search.php. search.phpwill create a mysql query and view the details of the products. It ( search.php) also has a search box. ( search.phpcan display a page to display multiple products, the search result is similar to the jQuery gallery ...).
I need to do something in search.php, but without an update index.php.
I tried many methods while thinking: make search.php as iframe (but can't judge the height of search.php when it turns the page and index.php without updating); use jquery ajax / json pass value from index.php for search.php and then return the whole page value to index.php. (there is still some problem with the URL rule. php depends on the URL values in search.php, but if the value changes, the two pages will refresh everything.)
So. I think, ask, find, try ... By chance, I find the site as my request.
in this url, change the search word after% 3D, refresh only the side page
in this url, change the search word after = the page will refresh
I found something in my source code, are these key rules?
<script type="text/javascript">
var fastReplace = function() {
var href = document.location.href;
var siteUrl = window.location.port ? window.location.protocol+'//'+window.location.hostname +':'+window.location.port : window.location.protocol+'//'+window.location.hostname;
var delimiter = href.indexOf('#!') !== -1 ? '#!wallState=' : '#wallState=';
var pieces = href.split(delimiter);
if ( pieces[1] ) {
var pieces2 = pieces[1].split('__');
if ( pieces2[1] && pieces2[1].length > 1) {
window.location.replace( unescape(pieces2[1].replace(/\+/g, " ")));
}
}
}();
</script>
. . - index.php. - search.php.
js url
index.php#search.php?word=XXX&page=XXX
index.php?
, - , js, pass value get value.
.