Thanks Dans,

That's exatcly my problem, following your advice, this is my new
code :

$(document).ready(function()
     {
         $("a").bind("click",function()
              {
                    var link=$(this).attr("id");
                    $("#primaryContentContainer").load("pages/"+link
+".html",function()
                                {
                                        $("a").unbind("click");
                                        $("a").bind("click",function()
                                                {
                                                        var 
link=$(this).attr("id");
                                                        $
("#primaryContentContainer").load("pages/"+link+".html");
                                                });
                                });
              };
} );

I had to had an unbind, else my page was loaded twice. But i works the
way you told me.

What you told about duplicate IDs is right.

If i use href="#dos622" instead of id="dos622" isn't there a risk of
confusion with anchor?

Can i use rel="dos622" instead of ID or href?

I don't want to use href, because i don't want to intercept external
links nor anchors in my pages.

Reply via email to