Zen Cart Logo
Forums / All Other Contributions/Addons / Tabbed Prod Pro (TPP): Adding Anchor Links

Tabbed Prod Pro (TPP): Adding Anchor Links

Views: 1,719

Results 1 to 11 of 11
11 May 2016, 9:48 PM
#1
feznizzle avatar

feznizzle

Totally Zenned

Join Date:
Apr 2010
Posts:
900
Plugin Contributions:
0

Tabbed Prod Pro (TPP): Adding Anchor Links

Hi,

I decided not to put this in the TPP Support thread because what I want to do is sort of off the books. I did comb thru the thread and found others trying to do this, but no solution was posted.

In a nutshell I'd like a way to use standard anchors to trigger a Tab switch. Here is a link to where I am playing with this:
http://justusedmedicalequipmentDOTcom/Used_Medical_Equipment/Experimenting

Here is the pertinent html:

<strong><img alt="" src="/images/satisfaction/guarantee-seal.png" style="width: 200px; height: 150px;" /><br />
			<a href="#qualityassurance">Quality Assurance</a></strong>

<!--%Quality Assurance%-->

<p><strong><a name="qualityassurance">Quality Assurance</a></strong><br />

What would be awesome is if I could do this:

<!--%<a name="qualityassurance">Quality Assurance</a>%-->

Any suggestions for me?

Thanks!

12 May 2016, 2:09 PM
#2
feznizzle avatar

feznizzle

Totally Zenned

Join Date:
Apr 2010
Posts:
900
Plugin Contributions:
0

Re: Tabbed Prod Pro (TPP): Adding Anchor Links

Ok, halfway there!

I added this to get it to switch:
<a href="javascript:void(0)" onclick="expandcontent('sc2', this)">Quality Assurance</a>

Now it will switch, but it's wonky. The new tab is not highlighted! :(

12 May 2016, 6:54 PM
#3
feznizzle avatar

feznizzle

Totally Zenned

Join Date:
Apr 2010
Posts:
900
Plugin Contributions:
0

Re: Tabbed Prod Pro (TPP): Adding Anchor Links

Ack! I'm going nuts! Can somebody pretty please help me out?

My link now works, but I can't get the tab to behave properly. It's supposed to highlight the tab being viewed in blue.

You can see what I mean here:
http://justusedmedicalequipment(DOT)com/Used_Medical_Equipment/Experimenting

Click back and forth between the two tabs, Product Description & Quality Assurance. Then click on the link I supply beneath the Satisfaction Guarantee image.

What am I missing?

Thanks!

13 May 2016, 7:56 PM
#4
feznizzle avatar

feznizzle

Totally Zenned

Join Date:
Apr 2010
Posts:
900
Plugin Contributions:
0

Re: Tabbed Prod Pro (TPP): Adding Anchor Links

Anybody?

:please:

19 May 2016, 8:59 PM
#5
feznizzle avatar

feznizzle

Totally Zenned

Join Date:
Apr 2010
Posts:
900
Plugin Contributions:
0

Re: Tabbed Prod Pro (TPP): Adding Anchor Links

Ok, in case anybody else stumbles in here trying to do the same thing, this is how I solved it:
<a href="javascript:void(0)" onclick="expandcontent('sc2', this)"><span>Quality Assurance</span></a>

Easy peasy! New it was something simple. Props to my homey Dave!

19 May 2016, 9:05 PM
#6
feznizzle avatar

feznizzle

Totally Zenned

Join Date:
Apr 2010
Posts:
900
Plugin Contributions:
0

Re: Tabbed Prod Pro (TPP): Adding Anchor Links

I lied, still not working...

20 May 2016, 1:03 AM
#7
lankeeyankee avatar

lankeeyankee

Totally Zenned

Join Date:
Jan 2007
Posts:
1,514
Plugin Contributions:
1

Re: Tabbed Prod Pro (TPP): Adding Anchor Links

The other thing I noticed was the tabs are in list tags as well as the spans and they are in a div with an ID which I can't remember now. So it's possible that that is related.

20 May 2016, 1:15 AM
#8
lankeeyankee avatar

lankeeyankee

Totally Zenned

Join Date:
Jan 2007
Posts:
1,514
Plugin Contributions:
1

Re: Tabbed Prod Pro (TPP): Adding Anchor Links

It might be more likely to be a js issue. You could post in the dynamic drive forum if it is a js issue to see if you can get help there if no one can help here.

20 May 2016, 11:05 AM
#9
feznizzle avatar

feznizzle

Totally Zenned

Join Date:
Apr 2010
Posts:
900
Plugin Contributions:
0

Re: Tabbed Prod Pro (TPP): Adding Anchor Links

lankeeyankee:

The other thing I noticed was the tabs are in list tags as well as the spans and they are in a div with an ID which I can't remember now. So it's possible that that is related.

You're right, there are list tags and div ids. I'm going to fiddle around with that this morning. And I'll also repost in a dif forum.... thanks!

30 May 2016, 6:50 PM
#11
lankeeyankee avatar

lankeeyankee

Totally Zenned

Join Date:
Jan 2007
Posts:
1,514
Plugin Contributions:
1

Re: Tabbed Prod Pro (TPP): Adding Anchor Links

Excellent! I am sure I will use this when I update my site and template and even more sure this will be useful to many other TPP users.