473,703 Members | 2,970 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Javascript frameset problem

I have a problem calling a framset from javascript - I will explain as
best I can.

I have a site with 2 frames. Left frame contains a javascript menu.
Right frame contains the page and a scrolling javascript news item.

I want to have a function on my scroller that when clicked on it calls
the frameset for the news area and it replaces the entire current
frameset.

Code on the scroller that calls the page is as follows...

/*---------------------------------------------
Scrolling Message Settings
-----------------------------------------------*/
desc0 = "<b>intuita 's</b> current newsletter is now available. <font
color='#000099' ><strong> more...</strong></font>"
hldesc0 = "<u><b>intuita' s</b> current newsletter is now available.
<font color='#000099' ><strong> more...</strong></font></u>"
desturl0 = "javascript:ope nWin('pop_up_1. htm')"
delay0 = 5
autofit0 = "start"
addheight0 = 30;
autofit0 = "end"
//fontweight0 = "bold"
//fontfamily0 = "Arial"

desc1 = "<b>Click Here</b> to take a look at our new press area.<font
color='#000099' ><strong> more...</strong></font>"
hldesc1 = "<u><b>Clic k Here</b> to take a look at our new press
area.<font color='#000099' ><strong> more...</strong></font></u>"
desturl1 = "newsdis.ht m"
delay1 = 5
autofit1 = "start"
addheight1 = 30;
autofit1 = "end"

The problem I have is when i call the framset for the news area
(news_frame1.ht m)the entire frameset is placed into the right frame so
i end up with 2 menus. If i call the actual news page newsdis.htm the
menu in the left frame isn't replaced and so I have a menu that doesn't
match the page.

How do i call a frameset from the right frame that replaces the entire
page??

My frame names are "leftframe" and "mainframe" .
Any help on this would be greatly appreciated.

Thanks

Lindsey

Jul 23 '05 #1
1 1856

<li************ *@intuita.co.uk > escreveu na mensagem
news:11******** *************@f 14g2000cwb.goog legroups.com...
I have a problem calling a framset from javascript - I will explain as
best I can.

I have a site with 2 frames. Left frame contains a javascript menu.
Right frame contains the page and a scrolling javascript news item.

I want to have a function on my scroller that when clicked on it calls
the frameset for the news area and it replaces the entire current
frameset.

Code on the scroller that calls the page is as follows...

/*---------------------------------------------
Scrolling Message Settings
-----------------------------------------------*/
desc0 = "<b>intuita 's</b> current newsletter is now available. <font
color='#000099' ><strong> more...</strong></font>"
hldesc0 = "<u><b>intuita' s</b> current newsletter is now available.
<font color='#000099' ><strong> more...</strong></font></u>"
desturl0 = "javascript:ope nWin('pop_up_1. htm')"
delay0 = 5
autofit0 = "start"
addheight0 = 30;
autofit0 = "end"
//fontweight0 = "bold"
//fontfamily0 = "Arial"

desc1 = "<b>Click Here</b> to take a look at our new press area.<font
color='#000099' ><strong> more...</strong></font>"
hldesc1 = "<u><b>Clic k Here</b> to take a look at our new press
area.<font color='#000099' ><strong> more...</strong></font></u>"
desturl1 = "newsdis.ht m"
delay1 = 5
autofit1 = "start"
addheight1 = 30;
autofit1 = "end"

The problem I have is when i call the framset for the news area
(news_frame1.ht m)the entire frameset is placed into the right frame so
i end up with 2 menus. If i call the actual news page newsdis.htm the
menu in the left frame isn't replaced and so I have a menu that doesn't
match the page.

How do i call a frameset from the right frame that replaces the entire
page??

My frame names are "leftframe" and "mainframe" .
Any help on this would be greatly appreciated.

Thanks

Lindsey

In Html try defining the target of the frame instead of is name "leftframe"
or "mainframe" to target ="_top" that
should replace the hole frame.
Jul 23 '05 #2

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

Similar topics

9
1914
by: Dom | last post by:
I have a frameset with a left right columns, called 'index' and 'content'. The left column of the frameset ('index') loads an index.htm file which have these hrefs (summarized the code a bit) for readability : <a href="studio/index.htm" target=content id="studio"> studio </a> <a href="bandw/index.htm" target=content id="bandw"> bandw </a> <a href="arch/index.htm" target=content id="arch"> arch </a> <a href="etc/index.htm" ...
7
1449
by: Bert Visscher | last post by:
Hello everyone, I would like to let visitors of my website be able to go directly to a desired page, by using a URL like www.example.com?progname. I thought I could do this as follows: <html> <frameset rows="88,*"> <frame name="head" noresize src="head.htm" /> <frameset cols="152,*">
9
4520
by: CW | last post by:
I wrote an HTML based chat application. The front end is built entirely on HTML + javascript. Essentially, I have a hidden frame that's refreshed frequently and any new messages are displayed in another frame using document.write. My problem is that since chat screen can be obscured by other applications/windows, I have no way of informing users that new messages have arrived other than popping the window to the top using window.focus....
3
2161
by: John Ortt | last post by:
I appologise for reposting this but I have been trying to find a solution all week with no avail and I was hoping a repost might help somebody more knowledgable than myself to spot the message... I am trying to write a webpage in Javascript. The page loads with three frames, a top, left and right frame. Depending on the users actions the background page rewrites the code for the relevant frames.
8
3667
by: chrisdude911 | last post by:
how do i add video into a javascript web page with my own custom buttons?
4
2327
by: lmarceglia | last post by:
Hi, I have this website that doesn't work in Firefox 1.5: www.pianetaluca.com The HTML source is: <TITLE>PianetaLuca</TITLE> </HEAD>
2
2772
by: hugoatkol | last post by:
How to Resize a frameset without an id eg. <frameset rows="85,*" framespacing="0" border="0" frameborder="NO"> <frame src="url1" name="dot_tk_frame_top" noresize scrolling="NO"> <frame src="url2" scrolling="auto" noresize> </frameset> sow thw rows change to eg. 75,* instead of 85,*
2
1794
by: spiralof5 | last post by:
Hi. I must first say I'm not an experienced scripter. Here's my problem and how far I am so far. I struggled for awhile to get the browser to fill most of it with my flash movie and keep it proportional if the user chooses to size up or size down. This pretty much takes care of the browser size complications. Here is original script and it works. But now I have few problems after this. CODE#1 <!-- masked --> <html> <head>...
0
8744
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
9103
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8996
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8952
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...
1
6585
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
5920
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
4417
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
4674
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3113
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

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.