Change the parent frameset attributes

Discussion in 'HTML' started by Mr. x, Nov 29, 2003.

  1. Mr. x

    Mr. x Guest

    Hello,

    Can I change and get the attributes of the parent frameset from a child
    frame ?

    Suppose I have something like this :

    <frameset cols = "*,776,*" FRAMEBORDER=0 BORDER=0 FRAMESPACING=0
    FRAMEPADDING=0>
    <frame SCROLLING="NO" NORESIZE />
    <frameset rows = "129,*" FRAMEBORDER=0 BORDER=0 FRAMESPACING=0
    FRAMEPADDING=0>
    <frame src = "table1.html" SCROLLING="NO" NORESIZE/>
    <frameset cols = "*,180" FRAMEBORDER=0 BORDER=0 FRAMESPACING=0
    FRAMEPADDING=0>
    <frame src = "table2.html" SCROLLING="NO" NORESIZE />
    <frame src = "table3.html" SCROLLING="NO" NORESIZE />
    </frameset>
    </frameset>
    <frame />
    </frameset>

    I am doing something in table1.html.
    I want that the owner of table1.html - change the line of :
    <frame src = "table3.html" SCROLLING="NO" NORESIZE />

    to other line, with different attributes :


    <frame src = "new_table.html" SCROLLING="NO" NORESIZE />

    (change the attribute src, in another child frame that is belong to frameset
    of table1.html).

    Can I do that ?

    Thanks :)
     
    Mr. x, Nov 29, 2003
    #1
    1. Advertising

  2. Mr. x

    Whitecrest Guest

    In article <3fc7f586$1@news.012.net.il>, says...
    > Can I change and get the attributes of the parent frameset from a child
    > frame ?


    Yes, via javascript and the DOM

    > Can I do that ?


    Did you try?

    --
    Whitecrest Entertainment
    www.whitecrestent.com
     
    Whitecrest, Nov 29, 2003
    #2
    1. Advertising

  3. Mr. x

    Mr. x Guest

    I have already solved the problem.

    I used asp(x), and pass parameters to the aspx page, where the parameter is
    the number of the screen to open
    (current_view_page)
    In the asp page I have wrote something like :

    <%
    dim current_view_page
    current_view_page = "1"

    if not (Request.QueryString("view_page") is nothing) then
    current_view_page = Request.QueryString("view_page")
    end if

    %>

    ....

    <frameset cols = "*,776,*" FRAMEBORDER=0 BORDER=0 FRAMESPACING=0
    FRAMEPADDING=0>
    <frame SCROLLING="NO" NORESIZE />

    <frameset rows = "129,*" FRAMEBORDER=0 BORDER=0 FRAMESPACING=0
    FRAMEPADDING=0
    onunload="if(ie) {FrameSetIsPresent = false;}">
    <frame src = "main_banner.html" SCROLLING="NO" NORESIZE/>
    <frameset cols = "*,180" FRAMEBORDER=0 BORDER=0 FRAMESPACING=0
    FRAMEPADDING=0>
    <% if current_view_page = "1" then
    response.write("<frame src = ""table1.html"" SCROLLING=""NO""
    NORESIZE />")
    elseif current_view_page = "2" then
    response.write("<frame src = ""table2.html"" SCROLLING=""NO""
    NORESIZE />")
    end if
    %>
    <frame src = "main_details" SCROLLING="NO" NORESIZE />
    </frameset>
    </frameset>

    <frame />
    </frameset>

    Thanks, anyway :)

    "Mr. x" <> wrote in message news:3fc7f586$1@news.012.net.il...
    > Hello,
    >
    > Can I change and get the attributes of the parent frameset from a child
    > frame ?
    >
    > Suppose I have something like this :
    >
    > <frameset cols = "*,776,*" FRAMEBORDER=0 BORDER=0 FRAMESPACING=0
    > FRAMEPADDING=0>
    > <frame SCROLLING="NO" NORESIZE />
    > <frameset rows = "129,*" FRAMEBORDER=0 BORDER=0 FRAMESPACING=0
    > FRAMEPADDING=0>
    > <frame src = "table1.html" SCROLLING="NO" NORESIZE/>
    > <frameset cols = "*,180" FRAMEBORDER=0 BORDER=0 FRAMESPACING=0
    > FRAMEPADDING=0>
    > <frame src = "table2.html" SCROLLING="NO" NORESIZE />
    > <frame src = "table3.html" SCROLLING="NO" NORESIZE />
    > </frameset>
    > </frameset>
    > <frame />
    > </frameset>
    >
    > I am doing something in table1.html.
    > I want that the owner of table1.html - change the line of :
    > <frame src = "table3.html" SCROLLING="NO" NORESIZE />
    >
    > to other line, with different attributes :
    >
    >
    > <frame src = "new_table.html" SCROLLING="NO" NORESIZE />
    >
    > (change the attribute src, in another child frame that is belong to

    frameset
    > of table1.html).
    >
    > Can I do that ?
    >
    > Thanks :)
    >
    >
     
    Mr. x, Nov 29, 2003
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    694
  2. xzzy
    Replies:
    4
    Views:
    653
  3. ck388
    Replies:
    1
    Views:
    606
    ck388
    Sep 24, 2003
  4. Julius Mong
    Replies:
    1
    Views:
    392
    Randy Webb
    May 10, 2004
  5. Replies:
    0
    Views:
    346
Loading...

Share This Page