Change the parent frameset attributes

M

Mr. x

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 :)
 
M

Mr. x

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 :)
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,038
Latest member
OrderProperKetocapsules

Latest Threads

Top