OutFront Forums
     Home    Register     Search      Help      Login    

Sponsors
Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax
Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.
Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Follow Us
On Facebook
On Twitter
RSS
Via Email

Recent Posts
Todays Posts
Most Active posts
Posts since last visit
My Recent Posts
Mark posts read

 

RE: Refresh the Page Once OnLoad

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP, PHP, and Database >> RE: Refresh the Page Once OnLoad
Page: <<   < prev  1 [2]
 
 
costin

 

Posts: 1
Joined: 1/2/2007
Status: offline

 
RE: Refresh the Page Once OnLoad - 1/3/2007 0:25:06   
Heres what i did to refresh a page once when visitor click back browser button:
1. framset with 2 pages. created 1 mainframe page and 2 blank hiddenframe pages.
frameset parts: ......<frame src="hiddenframe1 url" name="hiddenframe" id="hiddenframe">......
2. mainframe parts:
<body><script language="javascript">
a=top.hiddenframe.location.href;
if (a.match('hiddenframe2 url')){top.mainframe.location='mainframe url';top.hiddenframe.location='hiddenframe1 url'}</script>
<form......<input type="submit".......onclick="top.hiddenframe.location='hiddenframe2 url';">
</form>.......

(in reply to hhammash)
redondo

 

Posts: 14
Joined: 6/26/2007
Status: offline

 
RE: Refresh the Page Once OnLoad - 6/26/2007 11:09:53   
well I'm here for the same problem but I don't see any solution :(

ok, my problem is :
I've a product table when I click on delete one products from table a popup window appear for confirmation (yes or no), after I delete yes it close and I'm back to the same window (with table), here I need that page to refresh to delete the deleted product from table!

(in reply to hhammash)
redondo

 

Posts: 14
Joined: 6/26/2007
Status: offline

 
RE: Refresh the Page Once OnLoad - 6/28/2007 7:50:50   
yeah I found it :)
it is not opener.reload() it is opener.location.reload()

my script is :

quote:


function closingWin(){

if (opener != null && !opener.closed){
opener.location.reload();
opener.focus();
}
self.close();

}



and it is working 100% hehehe ... knowledge must be free :)

u can see it on http://www.frontpagewebmaster.com/m-368448/tm.htm#368614

(in reply to redondo)
gregk

 

Posts: 1
Joined: 12/22/2007
Status: offline

 
Response.Expires = -1000, doesent work? - 12/22/2007 20:14:25   
Hey all
my site does not seem to be working with this code
<%
Response.Expires = -1000
Response.Buffer = True
%>

Even though the session is cleared from the database and the session is abandoned, you can still click back on the browser (Firefox) and view the logged in only page. But the thing is when I type in the url separately it display's the guest info. Help would be nice.
Thank you very much guys.

(in reply to hhammash)
Thane Franklyn

 

Posts: 14
Joined: 3/28/2008
Status: offline

 
[Awaiting Approval]
LowelG

 

Posts: 1
Joined: 8/13/2009
Status: offline

 
RE: Refresh the Page Once OnLoad - 8/13/2009 19:59:28   
Hi All,
I know this thread is old, but I had I problem with my (frontpage) html pages not fully expanding except when a page refresh was done. I tried several scripts from this forum and nothing worked until I tried this java script. Now every html page refreshes and my pages look the way they should.
----------------------------------------------
Add Code between the <head></head> on your pages.
----------------------------------------------

----------------------------------------------
Copy and Paste The Code Below Into A Text Editor, And Then Into Your Web Page.
----------------------------------------------

<script type="text/javascript">

if (window.name!="xxxxxx")
{
window.name="xxxxxx";

location.reload();
}

</script>






(in reply to JasonBoyd)
wallisda

 

Posts: 1
Joined: 11/12/2009
Status: offline

 
RE: Refresh the Page Once OnLoad - 11/12/2009 15:04:24   
quote:

if (window.name!="xxxxxx")
{
window.name="xxxxxx";

location.reload();
}


-----
This works OK but here is a solution I found to work better for my needs and it's a mixture of steps from what has been described in the previous posts:

<script language="JavaScript">
function MyReload() {
if (window.name != 'xxxxxx') {
location.reload(true);
window.name = "xxxxxx";
}
}
</script>

<body onLoad="MyReload();">

The problem I experienced with this is once the window name is changed it remains changed even if you click a link or leave the page. So after clicking a link and then hitting the back button the page would not reload because window.name stayed = 'xxxxxx'. So as a workaround in my web app I did an onClick event that changes the window.name value when a link is clicked or something that would take the user off of the page that needs to be reloaded.

So I changed my links from:
<a href='?action=something'>
to
<a href='?action=something' onClick = "window.name = 'aaaaaa';"> link </a>

Just so the name of the window changes before leaving that page. This works well. Thanks everyone!

(in reply to LowelG)
Page:   <<   < prev  1 [2]

All Forums >> Web Development >> ASP, PHP, and Database >> RE: Refresh the Page Once OnLoad
Page: <<   < prev  1 [2]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts