Javascript frameset problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • lindsey.crocker@intuita.co.uk

    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

  • Oscar Monteiro

    #2
    Re: Javascript frameset problem


    <lindsey.crocke r@intuita.co.uk > escreveu na mensagem
    news:1105614908 .687154.19450@f 14g2000cwb.goog legroups.com...[color=blue]
    >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
    >[/color]
    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.


    Comment

    Working...