P
Paul
HI! I have an iframe in which the iframe gets its height value from a
session variable. The value gets passed to the session ok because I am able
to display it but the main Iframe does not get updated with the new value
that has being passed to it. how can I accomplish this?
After the main page loads its height is at 620px. if a click on a link which
passes the value 1000, the variable does hold the new value 1000 BUT the
iframe height is still 620 if I do a view source. how can I update the
iframe value so it reloads using the new value?
I don't want to reload the whole page by doing a meta refresh either because
I have flash scene which I want to keep at it scene.
I was told that the page must be requested from the server in order to use
the session value or to see a change in
the value, since ASP is server-side technology.
Can someone give me an example on how I may use the way with the above
problem?
Example. The first Main page.----NOTE: ignore the ifp value its to set a
default page------------
<% Session("ifh") = Request.QueryString("ifh") %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
<html>
<head>
<title>Untitled Document</title>
</head>
<body>
<%
dim ifp
ifp = Request.QueryString("ifp")
if ifp <> "" then
%>
<iframe src=<%= ifp %> id="Iframemain" name="Iframemain"
height="<%=Session("ifh")%>"
width="760px"></iframe>
<% else %>
<iframe src="Main_iframe_Pages/main.htm" id="Iframemain" name="Iframemain"
height="620" width="760" ></iframe>
<% end if %>
</body>
</html>
-------------End of main page.------------------------
From a menu link I pass the value like such.
Main_iframe_Pages/about_us.asp?ifh="1000"
session variable. The value gets passed to the session ok because I am able
to display it but the main Iframe does not get updated with the new value
that has being passed to it. how can I accomplish this?
After the main page loads its height is at 620px. if a click on a link which
passes the value 1000, the variable does hold the new value 1000 BUT the
iframe height is still 620 if I do a view source. how can I update the
iframe value so it reloads using the new value?
I don't want to reload the whole page by doing a meta refresh either because
I have flash scene which I want to keep at it scene.
I was told that the page must be requested from the server in order to use
the session value or to see a change in
the value, since ASP is server-side technology.
Can someone give me an example on how I may use the way with the above
problem?
Example. The first Main page.----NOTE: ignore the ifp value its to set a
default page------------
<% Session("ifh") = Request.QueryString("ifh") %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
<html>
<head>
<title>Untitled Document</title>
</head>
<body>
<%
dim ifp
ifp = Request.QueryString("ifp")
if ifp <> "" then
%>
<iframe src=<%= ifp %> id="Iframemain" name="Iframemain"
height="<%=Session("ifh")%>"
width="760px"></iframe>
<% else %>
<iframe src="Main_iframe_Pages/main.htm" id="Iframemain" name="Iframemain"
height="620" width="760" ></iframe>
<% end if %>
</body>
</html>
-------------End of main page.------------------------
From a menu link I pass the value like such.
Main_iframe_Pages/about_us.asp?ifh="1000"