471,089 Members | 1,342 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,089 software developers and data experts.

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:openWin('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>Click Here</b> to take a look at our new press
area.<font color='#000099'><strong> more...</strong></font></u>"
desturl1 = "newsdis.htm"
delay1 = 5
autofit1 = "start"
addheight1 = 30;
autofit1 = "end"

The problem I have is when i call the framset for the news area
(news_frame1.htm)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 1703

<li*************@intuita.co.uk> escreveu na mensagem
news:11*********************@f14g2000cwb.googlegro ups.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:openWin('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>Click Here</b> to take a look at our new press
area.<font color='#000099'><strong> more...</strong></font></u>"
desturl1 = "newsdis.htm"
delay1 = 5
autofit1 = "start"
addheight1 = 30;
autofit1 = "end"

The problem I have is when i call the framset for the news area
(news_frame1.htm)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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Bert Visscher | last post: by
8 posts views Thread by chrisdude911 | last post: by
4 posts views Thread by lmarceglia | last post: by
2 posts views Thread by hugoatkol | last post: by

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.