I know you are talking about rewriting the URL once
you click on an anchor tag, but FYI in case you
weren't aware, you can use mod_rewrite (if your server
is running apache) in a .htaccess file to rewrite
urls. I've been doing this for years, because indeed,
search engines like it better if your url is something
like 2.html instead of index.php?id=2. With the
mod_rewrite option the url essentially is rewritten
when someone tries to visit .php?id=blah (or whatever
pattern you give it), which makes search engines
happy.

Once you are on the page though, of course, this
server side solution won't matter :)

-kim

--- Vaska <[EMAIL PROTECTED]> wrote:

> 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
> > [email protected]
> > 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
> > [email protected]
> > http://jquery.com/discuss/
> >
> 
> 
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
> 



 
____________________________________________________________________________________
Looking for earth-friendly autos? 
Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.
http://autos.yahoo.com/green_center/

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to