473,544 Members | 1,760 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 1845

<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
1903
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 ...
7
1441
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
4504
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...
3
2153
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...
8
3633
by: chrisdude911 | last post by:
how do i add video into a javascript web page with my own custom buttons?
4
2315
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
2763
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
1786
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...
0
7598
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7757
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...
1
7360
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...
0
7699
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...
1
5288
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...
0
3400
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...
0
3398
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1833
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
0
651
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.