Advertisement

07.02.2008 at 07:42PM PDT, ID: 23535699
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.2

Dynamic Tabing with Querystring...

Asked by bdobyns in JavaScript, Hypertext Markup Language (HTML), Asynchronous Javascript and XML (AJAX)

Tags: ,

Hello Experts,

I have a video page that plays videos based on a playlist. There are two main tabs that when clicked, display a certain number of channels. One tab is for instructional videos and the other tab is for events. Within these tabs are the buttons that we call "channels". The script below writes the buttons (channels), controls the hover behavior and makes the first channel listed in the code the "active" channel, which means that the button has a certain style applied to it and any content for the active tab gets viewed first on the page. If the user clicks on another channel, then that button becomes active and the same thing happens.

Here is how the script is called from the page: (3 channels)
<script language="Javascript">
     bktButton('btn_foo1', 'econtainer'); (name of button graphic, name of the div which holds the button)
     bktButton('btn_foo2', 'econtainer');
     bktButton('btn_foo3', 'econtainer');
</script>

What I need for the script to do is this:

When a call to the page looks like --> www.domain.com/video/?c=foo3
the button in the querystring (foo3) needs to be the active button no matter where it is in the code. We use AJAX so that can be an acceptable solution.

I hope that is enough information. There will be extra points if I can get this solution by Saturday or Sunday at the latest. Let me know if you have any questions.

Thanks Experts,
BradStart Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
<script language="JavaScript">
function bktButton (btn, parentDiv) {
	document.write(
		'<div class="navtab" onmouseover="bktHover(this, true);" onmouseout="bktHover(this, false);" onclick="bktActive(this, \''+parentDiv+'\');">'
			+'<img src="http://i.cdn.turner.com/pga/.element/img/1.0/sect/video/'+btn+'.gif" />'
			+'<img src="http://i.cdn.turner.com/pga/.element/img/1.0/sect/video/'+btn+'_hover.gif" class="hover" />'
			+'<img src="http://i.cdn.turner.com/pga/.element/img/1.0/sect/video/'+btn+'_on.gif" class="on" />'
		+'</div>'
	);
}
 
function bktHover (node, mode) {
	if (mode === null) mode = true;
	var hover = getElementByClass('hover', 'img', node);
	if (mode) show(hover);
	else hide(hover);
}
 
function bktActive (node, parentDiv) {
	if (window.event) {
		window.event.cancelBubble = true;
	}
 
	topDiv = $(parentDiv);
	btns = getElementsByClass('navtab','div', topDiv);
	btnPics = getElementsByClass('on','img', topDiv);
	panes = getElementsByClass('pane','div', topDiv);
 
	// turn all buttons "off"
	for (var j=0; j<btnPics.length; j++) hide(btnPics[j]);
	// turn current "on"
	show(getElementByClass('on', 'img', node));
	var i=0;
	for (i=0; i<btns.length; i++) {
		if (btns[i] === node) break;
	}
	for (var j=0; j<panes.length; j++) {
		if(j==i) show(panes[j]);
		else hide(panes[j]);
	}
}
<script>
[+][-]07.03.2008 at 06:58AM PDT, ID: 21925459

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 11:52AM PDT, ID: 21928117

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 12:03PM PDT, ID: 21928194

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 12:07PM PDT, ID: 21928220

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 12:16PM PDT, ID: 21928286

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 12:17PM PDT, ID: 21928291

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 12:58PM PDT, ID: 21928536

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 01:54PM PDT, ID: 21928967

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 01:56PM PDT, ID: 21928983

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 03:06PM PDT, ID: 21929711

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 03:45PM PDT, ID: 21929959

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 07:12PM PDT, ID: 21930620

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.04.2008 at 05:29AM PDT, ID: 21932695

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.04.2008 at 10:03PM PDT, ID: 21935905

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.07.2008 at 07:27AM PDT, ID: 21945294

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.07.2008 at 07:54AM PDT, ID: 21945572

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.07.2008 at 09:00AM PDT, ID: 21946182

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.07.2008 at 09:22AM PDT, ID: 21946395

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.07.2008 at 01:46PM PDT, ID: 21948515

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.08.2008 at 10:09AM PDT, ID: 21955880

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.08.2008 at 10:19AM PDT, ID: 21955964

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.08.2008 at 10:32AM PDT, ID: 21956077

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.08.2008 at 10:39AM PDT, ID: 21956144

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: JavaScript, Hypertext Markup Language (HTML), Asynchronous Javascript and XML (AJAX)
Tags: Javascript, Any
Sign Up Now!
Solution Provided By: flipz
Participating Experts: 2
Solution Grade: A
 
 
[+][-]07.08.2008 at 11:50AM PDT, ID: 21956825

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.08.2008 at 11:57AM PDT, ID: 21956896

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 - Hierarchy / EE_QW_2_20070628