Reload/refresh web page
am 04.05.2007 10:51:05 von Alf C Stockton
I need to add some coding to a web page that forces a reload from the
server every time the page loads, no matter where the user came from.
I already have the following meta tags but that does not do what is
required.
I also cannot use the full URL, as has been recommendedon the web, as
these pages could be at various of my users branches and they could well
have their own URLs.
ie No standard URL available.
My first thought was to add refresh within a onload but this would be
daft as one would end up in a permanent loop.
Please make suggestions.
--
Regards,
Alf Stockton www.stockton.co.za
Cold hands, no gloves.
My email disclaimer is available at www.stockton.co.za/disclaimer.html
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Reload/refresh web page
am 04.05.2007 15:30:12 von Jody Williams
what about using:
On 5/4/07, Alf Stockton wrote:
> I need to add some coding to a web page that forces a reload from the
> server every time the page loads, no matter where the user came from.
>
> I already have the following meta tags but that does not do what is
> required.
>
>
>
> I also cannot use the full URL, as has been recommendedon the web, as
> these pages could be at various of my users branches and they could well
> have their own URLs.
> ie No standard URL available.
>
> My first thought was to add refresh within a onload but this would be
> daft as one would end up in a permanent loop.
>
> Please make suggestions.
>
> --
> Regards,
> Alf Stockton www.stockton.co.za
>
> Cold hands, no gloves.
> My email disclaimer is available at www.stockton.co.za/disclaimer.html
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Reload/refresh web page
am 04.05.2007 15:36:36 von Alf C Stockton
Jody Williams wrote:
> what about using:
>
>
That would refresh after 600 seconds. Not quite what I want. I want to
refresh on reload but as I said in my original email:-
>> My first thought was to add refresh within a onload but this would be
>> daft as one would end up in a permanent loop.
but thank you for trying.
--
Regards,
Alf Stockton www.stockton.co.za
Never commit yourself! Let someone else commit you.
My email disclaimer is available at www.stockton.co.za/disclaimer.html
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Reload/refresh web page
am 04.05.2007 15:39:46 von Jody Williams
I have seen references to using the "refresh" without the content.
could this be incorporated into an onload event?
On 5/4/07, Alf Stockton wrote:
> Jody Williams wrote:
> > what about using:
> >
> >
> That would refresh after 600 seconds. Not quite what I want. I want to
> refresh on reload but as I said in my original email:-
> >> My first thought was to add refresh within a onload but this would be
> >> daft as one would end up in a permanent loop.
> but thank you for trying.
>
> --
> Regards,
> Alf Stockton www.stockton.co.za
>
> Never commit yourself! Let someone else commit you.
> My email disclaimer is available at www.stockton.co.za/disclaimer.html
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Reload/refresh web page
am 04.05.2007 15:46:05 von Kevin Smith
--------------030301080405090309040703
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
// The argument to the location.reload function determines
// if the browser should retrieve the document from the
// web-server. In this example all we need to do is cause
// the JavaScript block in the document body to be
// re-evaluated. If we needed to pull the document from
// the web-server again (such as where the document contents
// change dynamically) we would pass the argument as 'true'.
//
Jody Williams wrote:
> I have seen references to using the "refresh" without the content.
> could this be incorporated into an onload event?
>
> On 5/4/07, Alf Stockton wrote:
>> Jody Williams wrote:
>> > what about using:
>> >
>> >
>> That would refresh after 600 seconds. Not quite what I want. I want to
>> refresh on reload but as I said in my original email:-
>> >> My first thought was to add refresh within a onload but this would be
>> >> daft as one would end up in a permanent loop.
>> but thank you for trying.
>>
>> --
>> Regards,
>> Alf Stockton www.stockton.co.za
>>
>> Never commit yourself! Let someone else commit you.
>> My email disclaimer is available at www.stockton.co.za/disclaimer.html
>>
>
--------------030301080405090309040703--
Re: Reload/refresh web page
am 04.05.2007 15:53:29 von Alf C Stockton
Jody Williams wrote:
> I have seen references to using the "refresh" without the content.
> could this be incorporated into an onload event?
>
www.html-reference.com says that
Indicates the document displays for a specified amount of time before
switching to a new URL. The full absolute URL must be specified.
Therefore that is not on.>
--
Regards,
Alf Stockton www.stockton.co.za
Always the dullness of the fool is the whetstone of the wits.
-- William Shakespeare, "As You Like It"
My email disclaimer is available at www.stockton.co.za/disclaimer.html
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Reload/refresh web page
am 04.05.2007 15:58:38 von Alf C Stockton
Kevin Smith wrote:
> // The argument to the location.reload function determines
> // if the browser should retrieve the document from the
> // web-server. In this example all we need to do is cause
> // the JavaScript block in the document body to be
> // re-evaluated. If we needed to pull the document from
> // the web-server again (such as where the document contents
> // change dynamically) we would pass the argument as 'true'.
> //
>
>
Try that with true setting and you end up in the loop I spoke of in my
original email
and yes the page I want reloaded is dynamic and every time it displays I
want it to be retrieved from the server, but how?
--
Regards,
Alf Stockton www.stockton.co.za
Always the dullness of the fool is the whetstone of the wits.
-- William Shakespeare, "As You Like It"
My email disclaimer is available at www.stockton.co.za/disclaimer.html
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
RE: Reload/refresh web page
am 04.05.2007 15:59:09 von Bill Bolte
Can we ask why you need a reload every time? Maybe there's a better
approach?
But, if you need to reload the first time someone hit's a page, add a
querystring value to the url and track it. If the value isn't there (
if(!isset($_GET['reload'])){// do a reload} ), then do a header:
location call. Otherwise, it's the second time to the page, so let it
load...
-----Original Message-----
From: Alf Stockton [mailto:alf@stockton.co.za]=20
Sent: Friday, May 04, 2007 3:51 AM
To: php windows
Subject: [PHP-WIN] Reload/refresh web page
I need to add some coding to a web page that forces a reload from the=20
server every time the page loads, no matter where the user came from.
I already have the following meta tags but that does not do what is=20
required.
I also cannot use the full URL, as has been recommendedon the web, as=20
these pages could be at various of my users branches and they could well
have their own URLs.
ie No standard URL available.
My first thought was to add refresh within a onload but this would be=20
daft as one would end up in a permanent loop.
Please make suggestions.
--=20
Regards,
Alf Stockton www.stockton.co.za
Cold hands, no gloves.
My email disclaimer is available at www.stockton.co.za/disclaimer.html
--=20
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Reload/refresh web page
am 04.05.2007 16:03:29 von Alf C Stockton
Bill Bolte wrote:
> Can we ask why you need a reload every time? Maybe there's a better
> approach?
>
The page I want reloaded is dynamic and every time it displays I want it
to be retrieved from the server, but how? If you can make another
suggestion I would be happy to hear it.
--
Regards,
Alf Stockton www.stockton.co.za
Perfect day for scrubbing the floor and other exciting things.
My email disclaimer is available at www.stockton.co.za/disclaimer.html
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
RE: Reload/refresh web page
am 04.05.2007 16:05:05 von Bill Bolte
Why isn't it being retrieved the first time the page is called?
-----Original Message-----
From: Alf Stockton [mailto:alf@stockton.co.za]=20
Sent: Friday, May 04, 2007 9:03 AM
To: php windows
Subject: Re: [PHP-WIN] Reload/refresh web page
Bill Bolte wrote:
> Can we ask why you need a reload every time? Maybe there's a better
> approach?
>=20
The page I want reloaded is dynamic and every time it displays I want it
to be retrieved from the server, but how? If you can make another=20
suggestion I would be happy to hear it.
--=20
Regards,
Alf Stockton www.stockton.co.za
Perfect day for scrubbing the floor and other exciting things.
My email disclaimer is available at www.stockton.co.za/disclaimer.html
--=20
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Reload/refresh web page
am 04.05.2007 16:05:45 von Kevin Smith
I'll go with Bill's suggestion. Just track whether the page has already
been loaded.
Bill Bolte wrote:
> Can we ask why you need a reload every time? Maybe there's a better
> approach?
>
> But, if you need to reload the first time someone hit's a page, add a
> querystring value to the url and track it. If the value isn't there (
> if(!isset($_GET['reload'])){// do a reload} ), then do a header:
> location call. Otherwise, it's the second time to the page, so let it
> load...
>
>
> -----Original Message-----
> From: Alf Stockton [mailto:alf@stockton.co.za]
> Sent: Friday, May 04, 2007 3:51 AM
> To: php windows
> Subject: [PHP-WIN] Reload/refresh web page
>
> I need to add some coding to a web page that forces a reload from the
> server every time the page loads, no matter where the user came from.
>
> I already have the following meta tags but that does not do what is
> required.
>
>
>
> I also cannot use the full URL, as has been recommendedon the web, as
> these pages could be at various of my users branches and they could well
>
> have their own URLs.
> ie No standard URL available.
>
> My first thought was to add refresh within a onload but this would be
> daft as one would end up in a permanent loop.
>
> Please make suggestions.
>
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Reload/refresh web page
am 04.05.2007 17:02:16 von Alf C Stockton
Bill Bolte wrote:
> Why isn't it being retrieved the first time the page is called?
>
It is but the page I need to reload is a dynamic page that may be used
as a menu to call another php that would be used to update a database
contents of which were displayed on the original page and on return to
the dynamic page I want this new data to be included.
--
Regards,
Alf Stockton www.stockton.co.za
Perfect day for scrubbing the floor and other exciting things.
My email disclaimer is available at www.stockton.co.za/disclaimer.html
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
RE: Reload/refresh web page
am 04.05.2007 17:12:53 von Bill Bolte
Aaah, so it's a caching issue then. Is that particular content using
PHP's caching mechanism or is it simply the browser's cache settings
mucking things up?
AJAX techniques run into the browser cache issue all the time (not that
your doing anything with AJAX here). One way to get around this is by
putting a random value in the querystring when calling a script by and
HTTP JavaScript call. Maybe by borrowing this concept and put a random
value in the querystring (that servers no purpose) will fool the browser
and load the new content.
-----Original Message-----
From: Alf Stockton [mailto:alf@stockton.co.za]=20
Sent: Friday, May 04, 2007 10:02 AM
To: php windows
Subject: Re: [PHP-WIN] Reload/refresh web page
Bill Bolte wrote:
> Why isn't it being retrieved the first time the page is called?
>=20
It is but the page I need to reload is a dynamic page that may be used=20
as a menu to call another php that would be used to update a database=20
contents of which were displayed on the original page and on return to=20
the dynamic page I want this new data to be included.
--=20
Regards,
Alf Stockton www.stockton.co.za
Perfect day for scrubbing the floor and other exciting things.
My email disclaimer is available at www.stockton.co.za/disclaimer.html
--=20
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Reload/refresh web page
am 04.05.2007 17:20:35 von Alf C Stockton
Bill Bolte wrote:
> Aaah, so it's a caching issue then. Is that particular content using
> PHP's caching mechanism or is it simply the browser's cache settings
> mucking things up?
>
You are correct, it is the broser, and I have no control over which
browser they are using or how that browser is configured.
>
> AJAX techniques run into the browser cache issue all the time (not that
> your doing anything with AJAX here). One way to get around this is by
> putting a random value in the querystring when calling a script by and
> HTTP JavaScript call. Maybe by borrowing this concept and put a random
> value in the querystring (that servers no purpose) will fool the browser
> and load the new content.
>
Please tell me more. An example would be good, if you could.
--
Regards,
Alf Stockton www.stockton.co.za
You may be gone tomorrow, but that doesn't mean that you weren't here today.
My email disclaimer is available at www.stockton.co.za/disclaimer.html
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Reload/refresh web page
am 04.05.2007 17:22:48 von Aleksandar Vojnovic
If you are allready using ajax, then don't request the page with get
paramater but using POST. The script you are calling must have headers
set to expire immidiatly ala
header('Cache-Control: max-age=0, must-revalidate');
?>
Bill Bolte wrote:
> Aaah, so it's a caching issue then. Is that particular content using
> PHP's caching mechanism or is it simply the browser's cache settings
> mucking things up?
>
> AJAX techniques run into the browser cache issue all the time (not that
> your doing anything with AJAX here). One way to get around this is by
> putting a random value in the querystring when calling a script by and
> HTTP JavaScript call. Maybe by borrowing this concept and put a random
> value in the querystring (that servers no purpose) will fool the browser
> and load the new content.
>
>
>
> -----Original Message-----
> From: Alf Stockton [mailto:alf@stockton.co.za]
> Sent: Friday, May 04, 2007 10:02 AM
> To: php windows
> Subject: Re: [PHP-WIN] Reload/refresh web page
>
> Bill Bolte wrote:
>
>> Why isn't it being retrieved the first time the page is called?
>>
>>
> It is but the page I need to reload is a dynamic page that may be used
> as a menu to call another php that would be used to update a database
> contents of which were displayed on the original page and on return to
> the dynamic page I want this new data to be included.
>
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
RE: Reload/refresh web page
am 04.05.2007 17:30:49 von Bill Bolte
Do a search with AJAX CACHE ISSUE. There are tons of links and it seems
to be directed mostly at Internet Explorer.
At it simplest, when your user is getting sent back to the page to view,
make sure the URL has an extra value in the querystring (if you're
passing stuff back already) such as:
http://www.somesite.com/originalpage.php?random=3Dnco8agoafn vpqfq4iu=20
You can generate an random value pretty easily - don't have any code
right in front of me at the moment.
-----Original Message-----
From: Alf Stockton [mailto:alf@stockton.co.za]=20
Sent: Friday, May 04, 2007 10:21 AM
Cc: php windows
Subject: Re: [PHP-WIN] Reload/refresh web page
Bill Bolte wrote:
> Aaah, so it's a caching issue then. Is that particular content using
> PHP's caching mechanism or is it simply the browser's cache settings
> mucking things up?
>=20
You are correct, it is the broser, and I have no control over which=20
browser they are using or how that browser is configured.
>
> AJAX techniques run into the browser cache issue all the time (not
that
> your doing anything with AJAX here). One way to get around this is by
> putting a random value in the querystring when calling a script by and
> HTTP JavaScript call. Maybe by borrowing this concept and put a random
> value in the querystring (that servers no purpose) will fool the
browser
> and load the new content.
>=20
Please tell me more. An example would be good, if you could.
--=20
Regards,
Alf Stockton www.stockton.co.za
You may be gone tomorrow, but that doesn't mean that you weren't here
today.
My email disclaimer is available at www.stockton.co.za/disclaimer.html
--=20
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Reload/refresh web page
am 05.05.2007 14:15:48 von Alf C Stockton
Thank you all for your suggestions and help.
I have decided, as the pages are all created in PHP, to go with
URL?Diva=rand() or URL?UID=&Diva=rand() and it
seems to work.
Let us now see how idiot proof it is and give it to the users and see if
God has made a better idiot.
--
Regards,
Alf Stockton www.stockton.co.za
Your sister swims out to meet troop ships.
My email disclaimer is available at www.stockton.co.za/disclaimer.html
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Reload/refresh web page
am 07.05.2007 03:32:49 von bedul
use this
20 mean 20 sec will reload it self
index2.php change into your page name (index.php)
the next meta u must include.. or not?
----- Original Message -----
From: "Alf Stockton"
To: "php windows"
Sent: Friday, May 04, 2007 3:51 PM
Subject: [PHP-WIN] Reload/refresh web page
> I need to add some coding to a web page that forces a reload from the
> server every time the page loads, no matter where the user came from.
>
> I already have the following meta tags but that does not do what is
> required.
>
>
>
> I also cannot use the full URL, as has been recommendedon the web, as
> these pages could be at various of my users branches and they could well
> have their own URLs.
> ie No standard URL available.
>
> My first thought was to add refresh within a onload but this would be
> daft as one would end up in a permanent loop.
>
> Please make suggestions.
>
> --
> Regards,
> Alf Stockton www.stockton.co.za
>
> Cold hands, no gloves.
> My email disclaimer is available at www.stockton.co.za/disclaimer.html
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Reload/refresh web page
am 07.05.2007 07:26:51 von Alf C Stockton
bedul wrote:
> use this
>
>
>
>
> 20 mean 20 sec will reload it self
> index2.php change into your page name (index.php)
> the next meta u must include.. or not?
>
I have decided to use "URL?Diva=" and it seems to work for me
--
Regards,
Alf Stockton www.stockton.co.za
All things that are, are with more spirit chased than enjoyed.
-- Shakespeare, "Merchant of Venice"
My email disclaimer is available at www.stockton.co.za/disclaimer.html
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php