I dont know if you got a solution or not but some time back I tried to
change the url in browser so that user could copy the url and then paste it
somewhere else  and it would still work.

The part relevent to ur needs is changing the url, The URL CAN'T be changed
to some other page though you can add as many #s as you want.
To do this you'll have to simply write : location.href = '#'+<new link>;

Other way to do things is the hard way.
My website : http://jodhpuriguy.com, you will see that It looks very simple.
but if you pay attention, you will see that it loads content using AJAX if
javascript is available and otherwise uses mod_rewrite as was suggested in
an earlier post. Once the content is loaded, the content is stored in the
memory and it is never re-loaded as long as you do not refresh the page.

When js is disabled, the actual links work and the content is loaded via
page refresh. these are the links that are read by google for indexing. I'm
posing a snippet of the code for you to see:

HTML:
<a href="about" id="link_about" onClick="load('about'); return false;"
class="white center ">link</a>

and
function load(content) {
 if(!website.cache[content])
 {
   $.get(content+"&contentOnly=true&rand="+Math.random(),receive);
   $('#content').html('Loading...');
 }
 else
 {
   $('#content').html(website.cache [content]);

 }
 website.current = content;
 $('a').removeClass('active');
 $('#link_'+content).addClass('active');
 $('#link_'+content).color('')
 location.href = '#'+content;

}

This code ofcourse has been stripped of the php code that I put in to reduce
my work....

See the full souce of the page to get the code ;).

avi




--
------------------------------------------------------
Visit me at http://jodhpuriguy.com
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to