|
 |
asp_web_howto thread: HOW TO REFRESH A CERTAIN FRAME?
Message #1 by charalyi@n... on Thu, 3 Oct 2002 13:12:53
|
|
Dear All
I have a simple page with 3 frames.
The left and top pages include a simple image.
The main frame (main.asp), has links to other pages(intpage1.asp and
intpage2.asp)
If I am in intpage1.asp or intpage2.asp and refresh the page by pressing
F5, the browser loads the main page.(main.asp)
Is there a way to refresh a certain frame ( intpage1.asp or
intpage2.asp ) ?
Please find below the code:
Thanks in advanced for your help.
<html>
<frameset cols="204,*" frameborder="no" framespacing="0" border="0">
<frame scrolling="no" noresize frameborder="0" framespacing="0" border="0"
marginwidth="0" marginheight="0" name="nav" src="leftbar.jpg">
<frameset rows="100,*" frameborder="no" framespacing="0" border="0">
<frame scrolling="no" noresize frameborder="0"
framespacing="0" border="0" marginwidth="0" marginheight="0" name="topa"
src="top.asp">
<frame scrolling="auto" noresize frameborder="0"
framespacing="0" border="0"
marginwidth="0" marginheight="0" name="topa" src="main.asp">
</frameset>
</frameset>
</html>
Message #2 by "Rasmus Pedersen" <rp@m...> on Thu, 3 Oct 2002 14:15:05 +0200
|
|
Try right click in the frame and select "refresh.." or "update"..
Regards
Rasmus Lund Pedersen
Senior Programmer
M&P Internetbureau
email: rp@m...
tlf: + 45 33 13 10 40
fax: + 45 33 11 03 07
----- Original Message -----
From: <charalyi@n...>
To: "ASP Web HowTo" <asp_web_howto@p...>
Sent: Thursday, October 03, 2002 1:12 PM
Subject: [asp_web_howto] HOW TO REFRESH A CERTAIN FRAME?
> Dear All
> I have a simple page with 3 frames.
> The left and top pages include a simple image.
> The main frame (main.asp), has links to other pages(intpage1.asp and
> intpage2.asp)
> If I am in intpage1.asp or intpage2.asp and refresh the page by
pressing
> F5, the browser loads the main page.(main.asp)
>
> Is there a way to refresh a certain frame ( intpage1.asp or
> intpage2.asp ) ?
>
> Please find below the code:
> Thanks in advanced for your help.
>
> <html>
>
> <frameset cols=3D"204,*" frameborder=3D"no" framespacing=3D"0"
border=3D"0">
> <frame scrolling=3D"no" noresize frameborder=3D"0" framespacing=3D"0"
border=3D"0"
> marginwidth=3D"0" marginheight=3D"0" name=3D"nav" src=3D"leftbar.jpg">
>
> <frameset rows=3D"100,*" frameborder=3D"no" framespacing=3D"0"
border=3D"0">
> <frame scrolling=3D"no" noresize frameborder=3D"0"
> framespacing=3D"0" border=3D"0" marginwidth=3D"0" marginheight=3D"0"
name=3D"topa"
> src=3D"top.asp">
>
>
> <frame scrolling=3D"auto" noresize frameborder=3D"0"
> framespacing=3D"0" border=3D"0"
> marginwidth=3D"0" marginheight=3D"0" name=3D"topa" src=3D"main.asp">
>
> </frameset>
>
> </frameset>
>
> </html>
>
>
>
>
>
> ---
>
> Improve your web design skills with these new books from Glasshaus.
>
> Usable Web Menus
>
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
> r-20
> Constructing Accessible Web Sites
>
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
> r-20
> Practical JavaScript for the Usable Web
>
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
> r-20
>
Message #3 by "Charalampakis Yiannis" <CharalYi@n...> on Thu, 3 Oct 2002 15:29:50 +0200
|
|
Rasmus,
thanks you for your advice.
This method works, but I cannot instruct all our intranet users (about
500) to use this method.
That is why I would like to know I can refresh a certain frame by
pressing F5.
Thanks for you help.
Charalampakis Yiannis.
-----Original Message-----
From: Rasmus Pedersen [mailto:rp@m...]
Sent: Thursday, October 03, 2002 2:15 PM
To: ASP Web HowTo
Subject: [asp_web_howto] Re: HOW TO REFRESH A CERTAIN FRAME?
Try right click in the frame and select "refresh.." or "update"..
Regards
Rasmus Lund Pedersen
Senior Programmer
M&P Internetbureau
email: rp@m...
tlf: + 45 33 13 10 40
fax: + 45 33 11 03 07
----- Original Message -----
From: <charalyi@n...>
To: "ASP Web HowTo" <asp_web_howto@p...>
Sent: Thursday, October 03, 2002 1:12 PM
Subject: [asp_web_howto] HOW TO REFRESH A CERTAIN FRAME?
> Dear All
> I have a simple page with 3 frames.
> The left and top pages include a simple image.
> The main frame (main.asp), has links to other pages(intpage1.asp and
> intpage2.asp)
> If I am in intpage1.asp or intpage2.asp and refresh the page by
pressing
> F5, the browser loads the main page.(main.asp)
>
> Is there a way to refresh a certain frame ( intpage1.asp or
> intpage2.asp ) ?
>
> Please find below the code:
> Thanks in advanced for your help.
>
> <html>
>
> <frameset cols=3D"204,*" frameborder=3D"no" framespacing=3D"0"
border=3D"0">
> <frame scrolling=3D"no" noresize frameborder=3D"0" framespacing=3D"0"
border=3D"0"
> marginwidth=3D"0" marginheight=3D"0" name=3D"nav" src=3D"leftbar.jpg">
>
> <frameset rows=3D"100,*" frameborder=3D"no" framespacing=3D"0"
border=3D"0">
> <frame scrolling=3D"no" noresize frameborder=3D"0"
> framespacing=3D"0" border=3D"0" marginwidth=3D"0" marginheight=3D"0"
name=3D"topa"
> src=3D"top.asp">
>
>
> <frame scrolling=3D"auto" noresize frameborder=3D"0"
> framespacing=3D"0" border=3D"0"
> marginwidth=3D"0" marginheight=3D"0" name=3D"topa" src=3D"main.asp">
>
> </frameset>
>
> </frameset>
>
> </html>
>
>
>
>
>
> ---
>
> Improve your web design skills with these new books from Glasshaus.
>
> Usable Web Menus
>
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
> r-20
> Constructing Accessible Web Sites
>
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
> r-20
> Practical JavaScript for the Usable Web
>
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
> r-20
>
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
r-20
Message #4 by "Rasmus Pedersen" <rp@m...> on Thu, 3 Oct 2002 15:04:33 +0200
|
|
No you can not refresh one frame just by pressing F5.
But perhaps you can use this, it a little trick to work around the
clients cache.
I use this in my ASP scripts when i am calling a page that need to be
refreshed, for example on a link. (i do used it most if i for exampel
updates my database, and redirect the user back to a page whith a list
of items form the database i just updated)
The trick is to cheat the browser to think that it a "new" page it is
loading, i do like this:
<%
Dim nocache
nocache =3D replace(now," ","")
nocache=3D replace(nocache,":","")
nocache=3D replace(nocache,"/","")
%>
This create a unik string based on the current time, this i add to my
links as a paramter, like this.
<a href=3D"myPage.asp?nocache=3D"<%=3D nocache %>">My link text</a>
OR
<% response.redirect("myPage.asp?nocache=3D" & nocache) %>
This will trick the browser to think that it is a new page !!
Then your users don't have to reload the page, to see the updated
context.
Another method i have used is this one:
<!-- Place this code in top of your page -->
<%
Response.Expires =3D 0
Response.Expiresabsolute =3D DateAdd("d", -2, Now())
Response.AddHeader "pragma","no-cache"
Response.AddHeader "cache-control","private"
Response.CacheControl =3D "private"
%>
This also forces no cache of pages - but i think the first solution
works best, or it has for me.
read also more at microsoft at :
http://support.microsoft.com/default.aspx?scid=3DKB;EN-US;Q172896&
Regards
/Rasmus :-)
----- Original Message -----
From: "Charalampakis Yiannis" <CharalYi@n...>
To: "ASP Web HowTo" <asp_web_howto@p...>
Sent: Thursday, October 03, 2002 3:29 PM
Subject: [asp_web_howto] Re: HOW TO REFRESH A CERTAIN FRAME?
Rasmus,
thanks you for your advice.
This method works, but I cannot instruct all our intranet users (about
500) to use this method.
That is why I would like to know I can refresh a certain frame by
pressing F5.
Thanks for you help.
Charalampakis Yiannis.
-----Original Message-----
From: Rasmus Pedersen [mailto:rp@m...]
Sent: Thursday, October 03, 2002 2:15 PM
To: ASP Web HowTo
Subject: [asp_web_howto] Re: HOW TO REFRESH A CERTAIN FRAME?
Try right click in the frame and select "refresh.." or "update"..
Regards
Rasmus Lund Pedersen
Senior Programmer
M&P Internetbureau
email: rp@m...
tlf: + 45 33 13 10 40
fax: + 45 33 11 03 07
----- Original Message -----
From: <charalyi@n...>
To: "ASP Web HowTo" <asp_web_howto@p...>
Sent: Thursday, October 03, 2002 1:12 PM
Subject: [asp_web_howto] HOW TO REFRESH A CERTAIN FRAME?
> Dear All
> I have a simple page with 3 frames.
> The left and top pages include a simple image.
> The main frame (main.asp), has links to other pages(intpage1.asp and
> intpage2.asp)
> If I am in intpage1.asp or intpage2.asp and refresh the page by
pressing
> F5, the browser loads the main page.(main.asp)
>
> Is there a way to refresh a certain frame ( intpage1.asp or
> intpage2.asp ) ?
>
> Please find below the code:
> Thanks in advanced for your help.
>
> <html>
>
> <frameset cols=3D"204,*" frameborder=3D"no" framespacing=3D"0"
border=3D"0">
> <frame scrolling=3D"no" noresize frameborder=3D"0" framespacing=3D"0"
border=3D"0"
> marginwidth=3D"0" marginheight=3D"0" name=3D"nav" src=3D"leftbar.jpg">
>
> <frameset rows=3D"100,*" frameborder=3D"no" framespacing=3D"0"
border=3D"0">
> <frame scrolling=3D"no" noresize frameborder=3D"0"
> framespacing=3D"0" border=3D"0" marginwidth=3D"0" marginheight=3D"0"
name=3D"topa"
> src=3D"top.asp">
>
>
> <frame scrolling=3D"auto" noresize frameborder=3D"0"
> framespacing=3D"0" border=3D"0"
> marginwidth=3D"0" marginheight=3D"0" name=3D"topa" src=3D"main.asp">
>
> </frameset>
>
> </frameset>
>
> </html>
>
>
>
>
>
> ---
>
> Improve your web design skills with these new books from Glasshaus.
>
> Usable Web Menus
>
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
> r-20
> Constructing Accessible Web Sites
>
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
> r-20
> Practical JavaScript for the Usable Web
>
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
> r-20
>
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
r-20
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
r-20
Message #5 by "Debreceni, David" <david_debreceni@r...> on Thu, 3 Oct 2002 10:16:26 -0400
|
|
You could put a link or button on the frame to allow users to refresh.
<a href="javascript:location.reload(true);" >refresh</a>
HTH
Dave Debreceni
Associate Developer
david.debreceni@r...
xxx-xxx-xxxx x1086
-----Original Message-----
From: charalyi@n... [mailto:charalyi@n...]
Sent: Thursday, October 03, 2002 9:13 AM
To: ASP Web HowTo
Subject: [asp_web_howto] HOW TO REFRESH A CERTAIN FRAME?
Dear All
I have a simple page with 3 frames.
The left and top pages include a simple image.
The main frame (main.asp), has links to other pages(intpage1.asp and
intpage2.asp)
If I am in intpage1.asp or intpage2.asp and refresh the page by pressing
F5, the browser loads the main page.(main.asp)
Is there a way to refresh a certain frame ( intpage1.asp or
intpage2.asp ) ?
Please find below the code:
Thanks in advanced for your help.
<html>
<frameset cols="204,*" frameborder="no" framespacing="0" border="0"> <frame
scrolling="no" noresize frameborder="0" framespacing="0" border="0"
marginwidth="0" marginheight="0" name="nav" src="leftbar.jpg">
<frameset rows="100,*" frameborder="no" framespacing="0" border="0">
<frame scrolling="no" noresize frameborder="0"
framespacing="0" border="0" marginwidth="0" marginheight="0" name="topa"
src="top.asp">
<frame scrolling="auto" noresize frameborder="0"
framespacing="0" border="0"
marginwidth="0" marginheight="0" name="topa" src="main.asp">
</frameset>
</frameset>
</html>
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20
Message #6 by "Charalampakis Yiannis" <CharalYi@n...> on Fri, 4 Oct 2002 09:59:24 +0200
|
|
All the solutions work!!!!!
Thanks for your help
Charalampakis Yiannis.
-----Original Message-----
From: Debreceni, David [mailto:david_debreceni@r...]
Sent: Thursday, October 03, 2002 4:16 PM
To: ASP Web HowTo
Subject: [asp_web_howto] RE: HOW TO REFRESH A CERTAIN FRAME?
You could put a link or button on the frame to allow users to refresh.
<a href=3D"javascript:location.reload(true);" >refresh</a>
HTH
Dave Debreceni
Associate Developer
david.debreceni@r...
xxx-xxx-xxxx x1086
-----Original Message-----
From: charalyi@n... [mailto:charalyi@n...]
Sent: Thursday, October 03, 2002 9:13 AM
To: ASP Web HowTo
Subject: [asp_web_howto] HOW TO REFRESH A CERTAIN FRAME?
Dear All
I have a simple page with 3 frames.
The left and top pages include a simple image.
The main frame (main.asp), has links to other pages(intpage1.asp and
intpage2.asp)
If I am in intpage1.asp or intpage2.asp and refresh the page by
pressing
F5, the browser loads the main page.(main.asp)
Is there a way to refresh a certain frame ( intpage1.asp or
intpage2.asp ) ?
Please find below the code:
Thanks in advanced for your help.
<html>
<frameset cols=3D"204,*" frameborder=3D"no" framespacing=3D"0"
border=3D"0"> <frame
scrolling=3D"no" noresize frameborder=3D"0" framespacing=3D"0"
border=3D"0"
marginwidth=3D"0" marginheight=3D"0" name=3D"nav" src=3D"leftbar.jpg">
<frameset rows=3D"100,*" frameborder=3D"no" framespacing=3D"0"
border=3D"0">
<frame scrolling=3D"no" noresize frameborder=3D"0"
framespacing=3D"0" border=3D"0" marginwidth=3D"0" marginheight=3D"0"
name=3D"topa"
src=3D"top.asp">
=09
<frame scrolling=3D"auto" noresize frameborder=3D"0"
framespacing=3D"0" border=3D"0"
marginwidth=3D"0" marginheight=3D"0" name=3D"topa" src=3D"main.asp">
</frameset>
</frameset>
</html>
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
r-20
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
r-20
Message #7 by "Rasmus Pedersen" <rp@m...> on Fri, 4 Oct 2002 09:06:21 +0200
|
|
your welcome. :-D
Regards
Rasmus Lund Pedersen
Senior Programmer
email: rp@m...
----- Original Message -----
From: "Charalampakis Yiannis" <CharalYi@n...>
To: "ASP Web HowTo" <asp_web_howto@p...>
Sent: Friday, October 04, 2002 9:59 AM
Subject: [asp_web_howto] RE: HOW TO REFRESH A CERTAIN FRAME?
All the solutions work!!!!!
Thanks for your help
Charalampakis Yiannis.
-----Original Message-----
From: Debreceni, David [mailto:david_debreceni@r...]
Sent: Thursday, October 03, 2002 4:16 PM
To: ASP Web HowTo
Subject: [asp_web_howto] RE: HOW TO REFRESH A CERTAIN FRAME?
You could put a link or button on the frame to allow users to refresh.
<a href=3D"javascript:location.reload(true);" >refresh</a>
HTH
Dave Debreceni
Associate Developer
david.debreceni@r...
xxx-xxx-xxxx x1086
-----Original Message-----
From: charalyi@n... [mailto:charalyi@n...]
Sent: Thursday, October 03, 2002 9:13 AM
To: ASP Web HowTo
Subject: [asp_web_howto] HOW TO REFRESH A CERTAIN FRAME?
Dear All
I have a simple page with 3 frames.
The left and top pages include a simple image.
The main frame (main.asp), has links to other pages(intpage1.asp and
intpage2.asp)
If I am in intpage1.asp or intpage2.asp and refresh the page by
pressing
F5, the browser loads the main page.(main.asp)
Is there a way to refresh a certain frame ( intpage1.asp or
intpage2.asp ) ?
Please find below the code:
Thanks in advanced for your help.
<html>
<frameset cols=3D"204,*" frameborder=3D"no" framespacing=3D"0"
border=3D"0"> <frame
scrolling=3D"no" noresize frameborder=3D"0" framespacing=3D"0"
border=3D"0"
marginwidth=3D"0" marginheight=3D"0" name=3D"nav" src=3D"leftbar.jpg">
<frameset rows=3D"100,*" frameborder=3D"no" framespacing=3D"0"
border=3D"0">
<frame scrolling=3D"no" noresize frameborder=3D"0"
framespacing=3D"0" border=3D"0" marginwidth=3D"0" marginheight=3D"0"
name=3D"topa"
src=3D"top.asp">
<frame scrolling=3D"auto" noresize frameborder=3D"0"
framespacing=3D"0" border=3D"0"
marginwidth=3D"0" marginheight=3D"0" name=3D"topa" src=3D"main.asp">
</frameset>
</frameset>
</html>
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
r-20
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
r-20
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
r-20
|
|
 |