SitePoint Sponsor |
|
User Tag List
Results 1 to 4 of 4
Thread: Please help-Should be simple!!!!
-
Aug 1, 2007, 10:23 #1
- Join Date
- Aug 2007
- Posts
- 69
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Please help-Should be simple!!!!
Maybe I havenīt been explaining this properly it should be really easy I have changed things to make it easier now.
http://216.219.94.105/AJAX1.htm
I have four tabs which work fine and when clicked on change the panels (if you click on "Second Panel" for example you see the second panel).
The problem is that I am trying to make the two links on the first panel which is the panel that you see when you first load the page in your browser.
In my clearest most simple english I want to make the two links (or just one is fine and I can work out how to do the other one) work(they donīt at the moment).
What are the links and how should they work?:
There are two href links(letīs call them 1 and 2 so we know what we are talking about):
1.Click on me to see the second panel
2.Click on me to see the third panel
What I want to happen is that when you click on the 1 link you should see the second panel (which effectively mimics the same action as clicking on the Second panel link in the panel).
When you click on the 2 link you should see the third panel (which effectively mimics the same action as clicking on the Third panel link).
Thatīs it-it should be pretty simple but I donīt have a clue how to do it!! How do I do it? Thank you very much in advance
The links:
<!-- first panel -->
<div class="gw_aTab">
<!-- the links -->
<h3>This is the first panel</h3>
<a href="">Click on me to see the second panel</a> <br />
<a href="">Click on me to see the third panel</a></div>
-
Aug 1, 2007, 11:29 #2
- Join Date
- Oct 2004
- Location
- Birtley, UK
- Posts
- 2,439
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
On inspection you can call the showTab function, with the parentId and tab index you want to show.
Code:<a href="javascript:showTab('gw_tabView1', 1);">Click on me to see the second panel</a> <br /> <a href="javascript:showTab('gw_tabView1', 2);">Click on me to see the third panel</a></div>
-
Aug 1, 2007, 12:27 #3
- Join Date
- Aug 2007
- Posts
- 69
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Thanks Gav that is awesome!! Greatly appreciated!
I can use the same link as well in flash I imagine which is excellent, thanks
-
Aug 1, 2007, 13:29 #4
- Join Date
- Oct 2004
- Location
- Birtley, UK
- Posts
- 2,439
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
you certainly can, just use getURL("javascript:showTab('gw_tabView1', 1);"); I think.
Bookmarks