How do we refresh without affecting the whole page?

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.

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"
 
T

Thomas A. Rowe

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.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
T

Thomas A. Rowe

You have to call a page that either first set the session variable or retrieves the session
variable.

To display: <%=session("Variable")%>

To use: Variable = session("Variable")
--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
P

Paul

HI! I did retrieve the session var in the mainpage. as <% Session("ifh") =
Request.QueryString("ifh") %>
is this not right. I passed it with menu that is not shown in the code that
is below as I wanted to make things shorter.

I pass the value using the following in the main page which loads the child
iframe page as well.

Main_iframe_Pages/about_us.asp?ifh="1000"

Paul
 
S

Stefan B Rusynko

Opening multiple threads in different newsgroups on the same subject is counter productive to all
- see my detailed response to your other post in the programming newsgroup
(which is also the correct newsgroup for this type of post)

PS
Based on all your prior posts about using ASP
- I strongly suggest you stop and learn about ASP before proceeding at say http://www.w3schools.com/asp/default.asp



| HI! I did retrieve the session var in the mainpage. as <% Session("ifh") =
| Request.QueryString("ifh") %>
| is this not right. I passed it with menu that is not shown in the code that
| is below as I wanted to make things shorter.
|
| I pass the value using the following in the main page which loads the child
| iframe page as well.
|
| Main_iframe_Pages/about_us.asp?ifh="1000"
|
| Paul
|
|
| | > You have to call a page that either first set the session variable or
| > retrieves the session variable.
| >
| > To display: <%=session("Variable")%>
| >
| > To use: Variable = session("Variable")
| > --
| > ==============================================
| > Thomas A. Rowe (Microsoft MVP - FrontPage)
| > ==============================================
| > If you feel your current issue is a results of installing
| > a Service Pack or security update, please contact
| > Microsoft Product Support Services:
| > http://support.microsoft.com
| > If the problem can be shown to have been caused by a
| > security update, then there is usually no charge for the call.
| > ==============================================
| >
| > | >> HI! how do we request it from the server is this case?
| >>
| >> --
| >> Thanks in advance :)
| >>
| >> Paul
| >> | >>> 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.
| >>>
| >>> --
| >>> ==============================================
| >>> Thomas A. Rowe (Microsoft MVP - FrontPage)
| >>> ==============================================
| >>> If you feel your current issue is a results of installing
| >>> a Service Pack or security update, please contact
| >>> Microsoft Product Support Services:
| >>> http://support.microsoft.com
| >>> If the problem can be shown to have been caused by a
| >>> security update, then there is usually no charge for the call.
| >>> ==============================================
| >>>
| >>> | >>>> 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.
| >>>>
| >>>> 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"
| >>>> -----------------------------------------------
| >>>>
| >>>> Thanks in advance :)
| >>>>
| >>>> Paul
| >>>>
| >>>
| >>>
| >>
| >>
| >
| >
|
|
 

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

Top