Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Client-side Scripting _ Javascript is messing up my URLs!

Posted by: thegreatpursuit Mar 31 2011, 10:35 AM

At least, I think it is.

On my test site (http://goo.gl/P4SLu), you'll see that the URL first goes to "emineer.com/thesis/," but then quickly changes to "emineer.com/thesis/#page=tabsservices" which refers to a piece of .js I have lower on the page (the tabbed navigation).

Is there a way for me to configure this js or CSS so that the URLs are unchanged? I know it's possible because my main site functions perfectly fine: (emineer.com). The code on my main site is just clunky so I decided to start from scratch.

Any help here? I'd really like my URLs clean and free of any tags or anything like that.

Thanks,

Brandon

Posted by: Christian J Mar 31 2011, 01:55 PM

QUOTE(thegreatpursuit @ Mar 31 2011, 05:35 PM) *

Is there a way for me to configure this js or CSS so that the URLs are unchanged? I know it's possible because my main site functions perfectly fine: (emineer.com).

There seem to be two issues here: that #page=tabsconsulting is added when the page loads, and that clicking on the tabs on http://www.emineer.com/ doesn't modify the URL despite doing so even on the example page http://blixt.org/articles/tabbed-navigation-using-css#section=introduction

I suggest you first remove other scripts on your test page one by one to rule out they don't interfere.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)