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. Advertisements

  2. Mr. x

    Whitecrest Guest

    Yes, via javascript and the DOM
    Did you try?
     
    Whitecrest, Nov 29, 2003
    #2
    1. Advertisements

  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, Nov 29, 2003
    #3
    1. Advertisements

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.