Click to See Complete Forum and Search --> : yet another pop-up question!


MeLC
12-09-2003, 10:58 AM
Ok so I have a pop-up window with a Javascript tree menu, and a couple of html based links.
I need the links to open in the SAME pop up window. The HTML links work fine, but my tree menu links open in my content page of my MAIN page.

(if you are replying with a script please tell me what page I should put it in..ie- pop up window, main page, java tree page)

Thanks!!
MeL

Pittimann
12-09-2003, 11:07 AM
Hi!

Can you post a link to the site or the code dealing with the links?

Cheers - Pit

MeLC
12-09-2003, 11:19 AM
Sure (let me know if you need something else!!!):

ok here is the "pop up" link:

<input type=button value="Help & References" onClick="javascript:popUp('help/overview2.htm')" name="Window Name">

on here is the js tree menu:

var TREE_ITEMS = [
['Help and Reference', 'null',
['Glossary', 'glossary.htm'],
['Overview of Integrated Value', 'overviewIV.htm',
['Scope and Purpose', 'scope.htm'],
['Origin of the Integrated Value', 'orgin.htm'],
['Point of Arrival', 'point.htm'],
['Feedback', 'feedback.htm'],
['Technical Support', 'support.htm'],
['Availability of Value Management Tools', 'availability.htm'],
],
['The Value Management Toolset (VMT)', 'vmt.htm',
['VMT', 'vmt.htm'],
],
['Using the VMT', 'usingvmt.htm',
['VMT', 'vmt.htm'],
],
['FAQ', 'faq.htm',
['VMT', 'vmt.htm'],
],
['Reference Library', 'reference.htm',
['VMT', 'vmt.htm'],
],


],
];

Pittimann
12-09-2003, 11:27 AM
Hi!

In which of the two windows did you put the js tree menu and how do the links to the files you fail to open in the popup look like?

Cheers - Pit

MeLC
12-09-2003, 12:15 PM
The tree menu goes into the pop up window, and when you click on a menu option the pop up stays the same and the file opens in the main window of the non-pop up page.(but I need it to open in the pop up window)
--pop up .html source:

<td width="66%" height="27"><a href="contents.htm">
<img border="0" src="../images/contents.gif" width="95" height="28"></a><a href="find.htm"><img border="0" src="../images/find.gif" width="64" height="28"></a><hr></td>
</tr>
<tr>
<td width="66%" height="29"><font face="Arial" size="2">Click a book, Contents or
Find </font><hr></td>
</tr>
</table>
<tr>
<td height="200"><script language="JavaScript" src="tree2.js""></script>
<script language="JavaScript" src="tree_items2.js" target="_self"></script>
<script language="JavaScript" src="tree_tpl2.js"></script>
<script language="JavaScript">
new tree (TREE_ITEMS, tree_tpl);
</script>

Pittimann
12-09-2003, 12:35 PM
Hi!

One thing concerning the script - tag; it should look like that:
<script language="JavaScript" type="text/javascript"></script>
or (if pointing to an external .js file) - example:
<script language="JavaScript" type="text/javascript" src="myscriptfile.js"></script>

Your tags are missing the type attribute and in one case there is a target attribute. Please remove that one.

Apart from the above mentioned things:

I'm sure, the content of your external .js files is responsible for your problem...

Cheers - Pit

MeLC
12-09-2003, 01:01 PM
Thanks for helping me clean up my script......but that didn't fix the problem.
Do you know if there is a "target" attibute for js that works the same as a HTML frame target script?
MeL