473,698 Members | 1,947 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

My menu disappears...

Hello,
I've got a problem and I hope someone could help me.
I have a page that contains frames. Below a piece of code:
....
<FRAMESET COLS="120,*">
<FRAME NAME="menu" SRC="menu.html" >
<FRAME NAME="main" SRC="main.html" >
</FRAMESET>
....
The page menu.html contains the following code:
....
<a href="javascrip t:window.open(' test1.pdf','mai n')" doc1 </a>
<BR>
<a href="javascrip t:window.open(' test2.pdf','mai n')" doc2 </a>
.....
The problem is that when I click on frame "menu" the links "doc1" and
"doc2" the pdf is correctly loaded (through the plug-in) but the
content of the frame "menu" disappears and appears the inscription
"[object]". This does not happen if the links doc1 and doc2 are
realized without JavaScript.
This problem is the exemplification of a more complicate case where
the menu.html contains a tree menu that for each item you have to
specify a ref = "code". Inside it I put a javascript function to be
executed because I have to load a pdf inside a different frame.
The question is if I could avoid the disappearing of menu frame using
a different approach or a simply modification of my javascript code.
Could you help me?

Reagards,

Camelot

Apr 17 '07 #1
2 1960
On 17 Apr 2007 05:15:12 -0700, in comp.lang.javas cript camelot
<sc****@tiscali net.it>
<11************ **********@l77g 2000hsb.googleg roups.comwrote:
>| Hello,
| I've got a problem and I hope someone could help me.
| I have a page that contains frames. Below a piece of code:
| ...
| <FRAMESET COLS="120,*">
| <FRAME NAME="menu" SRC="menu.html" >
| <FRAME NAME="main" SRC="main.html" >
| </FRAMESET>
| ...
| The page menu.html contains the following code:
| ...
| <a href="javascrip t:window.open(' test1.pdf','mai n')" doc1 </a>
| <BR>
| <a href="javascrip t:window.open(' test2.pdf','mai n')" doc2 </a>
| ....
| The problem is that when I click on frame "menu" the links "doc1" and
| "doc2" the pdf is correctly loaded (through the plug-in) but the
| content of the frame "menu" disappears and appears the inscription
| "[object]". This does not happen if the links doc1 and doc2 are
| realized without JavaScript.
| This problem is the exemplification of a more complicate case where
| the menu.html contains a tree menu that for each item you have to
| specify a ref = "code". Inside it I put a javascript function to be
| executed because I have to load a pdf inside a different frame.
| The question is if I could avoid the disappearing of menu frame using
| a different approach or a simply modification of my javascript code.
| Could you help me?
|
| Reagards,
|
| Camelot
You can either place
<base target="main.ht ml" />
within the menu.html header
or
<a href="javascrip t:window.open(' test2.pdf','mai n')"
target="main.ht ml" >

---------------------------------------------------------------
jn******@yourpa ntsyahoo.com.au : Remove your pants to reply
---------------------------------------------------------------
Apr 17 '07 #2
On Apr 17, 2:26 pm, Jeff North <jnort...@yahoo .com.auwrote:
On 17 Apr 2007 05:15:12 -0700, in comp.lang.javas cript camelot
<sco...@tiscali net.it>

<1176812112.252 828.298...@l77g 2000hsb.googleg roups.comwrote:
| Hello,
| I've got a problem and I hope someone could help me.
| I have a page that contains frames. Below a piece of code:
| ...
| <FRAMESET COLS="120,*">
| <FRAME NAME="menu" SRC="menu.html" >
| <FRAME NAME="main" SRC="main.html" >
| </FRAMESET>
| ...
| The page menu.html contains the following code:
| ...
| <a href="javascrip t:window.open(' test1.pdf','mai n')" doc1 </a>
| <BR>
| <a href="javascrip t:window.open(' test2.pdf','mai n')" doc2 </a>
| ....
| The problem is that when I click on frame "menu" the links "doc1" and
| "doc2" the pdf is correctly loaded (through the plug-in) but the
| content of the frame "menu" disappears and appears the inscription
| "[object]". This does not happen if the links doc1 and doc2 are
| realized without JavaScript.
| This problem is the exemplification of a more complicate case where
| the menu.html contains a tree menu that for each item you have to
| specify a ref = "code". Inside it I put a javascript function to be
| executed because I have to load a pdf inside a different frame.
| The question is if I could avoid the disappearing of menu frame using
| a different approach or a simply modification of my javascript code.
| Could you help me?
|
| Reagards,
|
| Camelot

You can either place
<base target="main.ht ml" />
within the menu.html header
or
<a href="javascrip t:window.open(' test2.pdf','mai n')"
target="main.ht ml" >

---------------------------------------------------------------
jnort...@yourpa ntsyahoo.com.au : Remove your pants to reply
---------------------------------------------------------------- Hide quoted text -

- Show quoted text -
Thank you! The "base" solution is perfect!

Camelot

Apr 17 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1616
by: der kommissar | last post by:
Hi all I'm having a small problem with a navigation menu on a site i'm doing. The address of the site is: http://www.statik.be/radiomol/ All works perfectly fine in FireFox, Opera and Safari, but IE behaves differently:
12
8503
by: Kyle James Matthews | last post by:
Hello, I have been lurking here for a little bit (truth be told, I lurk on too many newsgroups to be truly effective). I have made a CSS rollover menu, and would like some advice. The menu is at the URL http://www.digitalovertone.com/index3.php. You will notice that the each link disappears the first time you hover over it (this is most noticable in Opera, in my experience). Each link consists of 2 images (1 for a:hover, 1 for...
3
2520
by: unurban | last post by:
I have a javascript menu based off of unordered lists that only shows the subnav links when you click on the main nav links. is there a way to keep any subnav items open after you click on a link and are transferred to a new page? Here is some of the code:
3
2319
by: ThunderMusic | last post by:
Hi, I'm trying to have a MSN Messenger like form/app closing behavior. When I click on the X button, I only want the form to disappear and when I double-click on the notify icon or right-click on it and choose Open from the context menu, I want the form to reappear. For that, I got the point covered. Even when the form is minimize, the behavior is like MSN Messenger. But one problem arose. When I close the form (the first time), it...
0
1884
by: Tom | last post by:
AccessXP in Access2000 mode I have a membership form with several subforms where membership information is entered. I have a popup form that displays the membership number, name and address. I have the following code in the double click event of the membership number field on the popup form: Me.Visible = False DoCmd.OpenForm "FrmMembership", , , " = " & Me!MemberID, , acDialog Me.Visible = True
5
5490
by: Dean L. Howen | last post by:
Dear friends, Could we determine when context menu should appear?
4
3970
by: Fred | last post by:
Hi, I have a list box with a context menu. When I right click the menu appears as expected. However when I select an option on the context menu the menu does not close. The click event on the menu is fired but the menu remains. Is there anyway I can get this menu to close when I select a menu option?
4
4050
by: stuckagain | last post by:
Hi, I have a page with a scrollable DIV, and within that DIV, I have a few asp.net menu controls. The idea being, the user mouses over the small icons and is presented with a list of options. One of these lists has more data than the page allows for, so the menu control automatically creates the scroll up / scroll down commands at both ends of the menu. The problem is; since it is within a scrollable div, the menu scroller are hidden! ...
0
8671
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8856
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7709
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6515
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5858
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4360
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4613
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3037
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2321
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.