[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

11/24/2006 at 05:00PM PST, ID: 22071845
[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!

9.4

Trouble calling JavaScript function

Asked by newbieweb in JavaScript

Tags: javascript, function, calling

Greetings,

I have virtually integrated the free node tree available at: www.mattkruse.com.  But I'm having selecting a node of a given ID.

I hve created a test with three frames, each included here for viewing.  There a:

1) right frame which contains my main test page.
2) left frame which contains the node tree (an index)
3) lower left frame which contains link to other pages(a glossary)

I have everything working, but am having trouble calling "function expandToItem(treeId,itemId)" contained in mktree.js.

I call this from the lowerLeftFrame to select the corresponding node ID to display the correct page which contains the information selected in the glossary.

Can anybody find the problem?  I don't think it should be very hard.  I'm new to JS and am missing something easy.

Thanks,
newbieweb


>frameTest.html<
<HTML>
 <HEAD>
  <TITLE>TreeView Demo: JavaScript Functions</TITLE>

 </HEAD>

 <FRAMESET cols="200,*" onResize="if (navigator.family == 'nn4') window.location.reload()">
  <FRAMESET rows="*,100">
   <FRAME src="leftFrame.html" name="index" SCROLLING="yes">
   <FRAME SRC="lowerLeftFrame.html" name="glossary" SCROLLING="yes">
  </FRAMESET>
  <FRAME SRC="rightFrame1.html" name="main">
 </FRAMESET>

</HTML>


>leftFrame.html<
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html>
<head>
<title> Sample Tree </title>
<link rel="stylesheet" href="mktree.css">
<script type='text/javascript' src='mktree.js'></script>
<script language="Javascript">
     function nav(right, lower){
          window.top.frames['main'].location="rightFrame" + right + ".html#link" + lower;
     }
</script>
</head>
<body>
<p>
<ul class='mktree' id='index'>
  <li>One</li>
  <li class='liClosed' id='A1'>Two
    <ul>
      <li onClick="nav('1', '1')" id="A1A">Uno</li>
      <li onClick="nav('1', '2')">Dos</li>
      <li onClick="nav('1', '3')">Tres</li>
    </ul>
  </li>
  <li>Three</li>
</ul>
</p>
</body>
</html>

>lowerLeftFrame.html<
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html>
<head>
<link rel="stylesheet" href="mktree.css">
<script type='text/javascript' src='mktree.js'></script>
<script language="Javascript">
     function nav(right, lower){
          window.top.frames['main'].location="rightFrame" + right + ".html#link" + lower;
     }
</script>
</head>
<body>

<br>
<a name="Link1" onClick="expandToItem("index", "A1A")">Link1</a>
<br>
<a name="Link2" onClick="nav(1,2)">Link2</a>
<br>
<a name="Link3" onClick="nav(1,3)">Link3</a>

</body>
</html>


>rightFrame1.html<
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
      <meta name="vs_snapToGrid" content="False">
      <meta name="vs_showGrid" content="False">
      <link href="mystyle.css" rel="stylesheet" type="text/css">
</head>
<BODY>
<a name="link1"></a>link1
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br><a name="link2"></a>link2
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<a name="link3"></a>link3
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br></BODY>
</html>
 
 
Loading Advertisement...
 
[+][-]11/24/06 07:11 PM, ID: 18010238

View this solution now by starting your 30-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

Zone: JavaScript
Tags: javascript, function, calling
Sign Up Now!
Solution Provided By: sajuks
Participating Experts: 2
Solution Grade: A
 
 
[+][-]11/24/06 08:33 PM, ID: 18010358

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/24/06 08:41 PM, ID: 18010367

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/24/06 08:45 PM, ID: 18010370

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/25/06 12:55 AM, ID: 18010773

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
 
Loading Advertisement...
20090824-EE-VQP-74