| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Anchoring using href="# and clean URL not working | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I am trying to create a tabbed section on my product detail page and am using
<a href="#layer1">layer1</a> which works perfectly if I dont use clean URL However, if I enable clean URL, clicking on the link goes to - www.mydomain.com/#layer1 as opposed to www.mydomain.com/product1.html#layer1 Anything I am missing? I just want it to append the #layer1 to the current product URL as opposed to the homepage. Here is an excerpt of the code: <li class="active"><span class="leftspan-leftmosttab"></span><a href="#layer1"><span class="textspan">Recommended Products</span><span class="rightspan-middletab"></span></a><span class="clrb"></span></li> <li class=""><span class="leftspan-middletab"></span><a href="#layer2"><span class="textspan">Send to Friend</span><span class="rightspan-rightmosttab"></span></a><span class="clrb"></span></li> <li class=""><span class="leftspan-middletab"></span><a href="#layer3"><span class="textspan">Review</span><span class="rightspan-rightmosttab"></span></a><span class="clrb"></span></li> Any help is highly appreciated. Thanks so much for your time.
__________________
X-Cart: 4.2.1 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() Use href="product.php?productid={$product.productid}#l ayer1"
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#3
|
|||||||
|
|||||||
![]() Quote:
Wouldn't that cause the page to be refreshed and take the user to the next visible tab? Isn't there a way to just make the other layer visible without having the page refreshed? Thanks so much for your help.
__________________
X-Cart: 4.2.1 |
|||||||
#4
|
|||||||||
|
|||||||||
![]() Are you talking about tabs that are on top of each other and open when you click on ther title or bookmarks inside the page? If the first one that code won't work, for bookmarks - it will work, it won't reload the page
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#5
|
|||||||
|
|||||||
![]() Quote:
I should have tried before making that statement. Sorry I doubted you ![]() I give it a shot and it worked like a charm. See it in action here - http://www.specialgifts2india.com/Mawa-Peda-Kesar.html Thanks once again.
__________________
X-Cart: 4.2.1 |
|||||||
#6
|
|||||||||
|
|||||||||
![]() No problem, glad you got it working. Like the design. I see some issues in IE though
1. JS error for variants 2. Advance Search doesn't line up with search 3. Review tab is missing its left side when "send to friend" is active
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|