Thanks, Jquery does have a nice script for doing that as well.

I'm trying this out...

$(document).ready(function(){
     $("a.remote").click(function(){
         vari = $(this).attr("name");
         window.location = vari;
         alert(vari);
         return false;
     });
});

And it does the trick in getting the anchor and alert it out. What  
I'm trying to do is then use the anchor (#whatever) and have it add  
itself to the link in the browser bar - I haven't found the formula  
yet as window.location initiates a refresh.

If it were possible to do, I would be able to make search engine and  
javascriptless things degrade without any problems.

Is THIS the dead end? Is there a way to get that anchor in there via  
javascript?



On 02 Feb 2007, at 11:33, Alexandre Plennevaux wrote:

> Rewriting the url out of pure javascript is not possible: you can  
> only do
> this on the server siede AFAIK.
> I haven't tried it myself, but did u check out this "Really Simple  
> History
> framework":
> http://codinginparadise.org/weblog/2005/09/ajax-how-to-handle- 
> bookmarks-and-
> back.html
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:discuss- 
> [EMAIL PROTECTED] On
> Behalf Of Vaska
> Sent: vendredi 2 février 2007 10:37
> To: jQuery Discussion.
> Subject: [jQuery] rewriting the browser address (without refresh)?
>
> I have a really messy situation...I'll try to keep this short.
>
> I'm wondering if there is a way to rewrite the url in the browser bar
> without refreshing the page. I'm using Jquery/ajax to do something but
> unless I can rewrite that url I don't think we can do this. I could  
> use an
> anchor (#...) but the problem here is that they links need to be  
> accessible
> to Google. People need to be able to cut, paste, bookmark whatever  
> they are
> looking at.
>
> I'm hoping this is somehow possible...OR...is there some other logical
> solution that might be considered?
>
> Thanks...v
>
> _______________________________________________
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
> -- 
> Ce message Envoi est certifié sans virus connu.
> Analyse effectuée par AVG.
> Version: 7.5.441 / Base de données virus: 268.17.19/663 - Date:  
> 1/02/2007
> 14:28
>
>
>
> _______________________________________________
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to