Refreshing text question!
Refreshing text question!
am 18.01.2006 02:51:49 von jusa_98
--0-439938717-1137549109=:48176
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Hi,
I did a little bit of script that refreshes a text slogan every 5 or so seconds with a new slogans and wraps to each slogan, I had about 5, and loops over and over again. This was done WITHOUT the need of refreshing the page. I think I used JavaScript but not 100% sure of this. Has anyone seen this before I seen a site use it?
I can't recall the site I did it for, I know I have done it before. I need the code again without needing to re-do it all again as it took me a while to configure it last time.
The site is written in PHP and uses MySQL.
Any help would be mostly appreciated.
J
---------------------------------
Do you Yahoo!?
Messenger 7.0: Free worldwide PC to PC calls
--0-439938717-1137549109=:48176--
Re: Refreshing text question!
am 18.01.2006 06:39:41 von Julien Bonastre
Yes I can help you there..
There is a technique you can use which is actually more "browser"
friendly then the Javascript alternative you mentioned..
You can use the META tags in your page as such:
will refresh page in 10 seconds
CONTENT="10;url=http://www.operation-scifi.com">
will reload page in 10 seconds and direct browser to one of my first
highschool webpages..
For a quick reference I found this via the I'm Feeling Lucky of Google:
http://webdesign.about.com/cs/metatags/a/aa080300a.htm
Otherwise the good ole' W3C at www.w3c.org will have some great doco's
on it too
enjoy ;-)
---oOo--- Allowing users to execute CGI scripts in any directory should
only be considered if: ... a.. You have no users, and nobody ever visits
your server. ... Extracted Quote: Security Tips - Apache HTTP
Server ---oOo--- ------oOo---------------oOo------ Julien Bonastre
[The_RadiX] The-Spectrum Network CEO ABN: 64 235 749 494
julien@the-spectrum.org
www.the-spectrum.org ------oOo---------------oOo------
----- Original Message -----
From: "JeRRy"
To:
Sent: Wednesday, January 18, 2006 11:51 AM
Subject: [PHP-DB] Refreshing text question!
> Hi,
>
> I did a little bit of script that refreshes a text slogan every 5 or
> so seconds with a new slogans and wraps to each slogan, I had about 5,
> and loops over and over again. This was done WITHOUT the need of
> refreshing the page. I think I used JavaScript but not 100% sure of
> this. Has anyone seen this before I seen a site use it?
>
> I can't recall the site I did it for, I know I have done it before.
> I need the code again without needing to re-do it all again as it took
> me a while to configure it last time.
>
> The site is written in PHP and uses MySQL.
>
> Any help would be mostly appreciated.
>
> J
>
>
> ---------------------------------
> Do you Yahoo!?
> Messenger 7.0: Free worldwide PC to PC calls
------------------------------------------------------------ --------------------
> Incoming mail is certified Virus Free.
> Checked by AVG Anti-Virus (http://www.grisoft.com).
> Version: 7.0.148 / Virus Database: 267.14.20 - Release Date:
> 17/01/2006
>
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.1.375 / Virus Database: 267.14.20/233 - Release Date: 18/01/2006
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Refreshing text question!
am 18.01.2006 08:47:02 von Aaron Koning
------=_Part_21485_20804975.1137570422563
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
I think that refreshing the web page with META Refresh every 5 or 10 second=
s
would surly P.O. anyone actually trying to read your web pages.
Anyways:
http://www.webreference.com/js/column3/
Or try googling the topic...
Aaron
On 1/17/06, Julien Bonastre wrote:
>
> Yes I can help you there..
>
> There is a technique you can use which is actually more "browser"
> friendly then the Javascript alternative you mentioned..
>
> You can use the META tags in your page as such:
>
>
>
>
> will refresh page in 10 seconds
>
>
>
> CONTENT=3D"10;url=3Dhttp://www.operation-scifi.com">
>
> will reload page in 10 seconds and direct browser to one of my first
> highschool webpages..
>
>
>
>
>
> For a quick reference I found this via the I'm Feeling Lucky of Google:
> http://webdesign.about.com/cs/metatags/a/aa080300a.htm
>
> Otherwise the good ole' W3C at www.w3c.org will have some great doco's
> on it too
>
>
>
> enjoy ;-)
>
>
>
>
> ---oOo--- Allowing users to execute CGI scripts in any directory should
> only be considered if: ... a.. You have no users, and nobody ever visits
> your server. ... Extracted Quote: Security Tips - Apache HTTP
> Server ---oOo--- ------oOo---------------oOo------ Julien Bonastre
> [The_RadiX] The-Spectrum Network CEO ABN: 64 235 749 494
> julien@the-spectrum.org
> www.the-spectrum.org ------oOo---------------oOo------
> ----- Original Message -----
> From: "JeRRy"
> To:
> Sent: Wednesday, January 18, 2006 11:51 AM
> Subject: [PHP-DB] Refreshing text question!
>
>
> > Hi,
> >
> > I did a little bit of script that refreshes a text slogan every 5 or
> > so seconds with a new slogans and wraps to each slogan, I had about 5,
> > and loops over and over again. This was done WITHOUT the need of
> > refreshing the page. I think I used JavaScript but not 100% sure of
> > this. Has anyone seen this before I seen a site use it?
> >
> > I can't recall the site I did it for, I know I have done it before.
> > I need the code again without needing to re-do it all again as it took
> > me a while to configure it last time.
> >
> > The site is written in PHP and uses MySQL.
> >
> > Any help would be mostly appreciated.
> >
> > J
> >
> >
> > ---------------------------------
> > Do you Yahoo!?
> > Messenger 7.0: Free worldwide PC to PC calls
>
>
>
> ------------------------------------------------------------ -------------=
-------
>
>
> > Incoming mail is certified Virus Free.
> > Checked by AVG Anti-Virus (http://www.grisoft.com).
> > Version: 7.0.148 / Virus Database: 267.14.20 - Release Date:
> > 17/01/2006
> >
>
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.1.375 / Virus Database: 267.14.20/233 - Release Date:
> 18/01/2006
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
------=_Part_21485_20804975.1137570422563--
Re: Refreshing text question!
am 18.01.2006 11:08:58 von Julien Bonastre
Sorry I had misinterpreted your question Jerry..
I thought you were trying to refresh the page, missed that keyword :-)
Therefore in context the page refresh would be quite annoying, I was
only introducing its concept in order to reload the page at a different
location.
Again, my apologies for this..
Kind Regards,
Julien Bonastre
----- Original Message -----
From: "Aaron Koning"
To:
Sent: Wednesday, January 18, 2006 5:47 PM
Subject: Re: [PHP-DB] Refreshing text question!
I think that refreshing the web page with META Refresh every 5 or 10
seconds
would surly P.O. anyone actually trying to read your web pages.
Anyways:
http://www.webreference.com/js/column3/
Or try googling the topic...
Aaron
On 1/17/06, Julien Bonastre wrote:
>
> Yes I can help you there..
>
> There is a technique you can use which is actually more "browser"
> friendly then the Javascript alternative you mentioned..
>
> You can use the META tags in your page as such:
>
>
>
>
> will refresh page in 10 seconds
>
>
>
> CONTENT="10;url=http://www.operation-scifi.com">
>
> will reload page in 10 seconds and direct browser to one of my first
> highschool webpages..
>
>
>
>
>
> For a quick reference I found this via the I'm Feeling Lucky of
> Google:
> http://webdesign.about.com/cs/metatags/a/aa080300a.htm
>
> Otherwise the good ole' W3C at www.w3c.org will have some great doco's
> on it too
>
>
>
> enjoy ;-)
>
>
>
>
> ---oOo--- Allowing users to execute CGI scripts in any directory
> should
> only be considered if: ... a.. You have no users, and nobody ever
> visits
> your server. ... Extracted Quote: Security Tips - Apache HTTP
> Server ---oOo--- ------oOo---------------oOo------ Julien Bonastre
> [The_RadiX] The-Spectrum Network CEO ABN: 64 235 749 494
> julien@the-spectrum.org
> www.the-spectrum.org ------oOo---------------oOo------
> ----- Original Message -----
> From: "JeRRy"
> To:
> Sent: Wednesday, January 18, 2006 11:51 AM
> Subject: [PHP-DB] Refreshing text question!
>
>
> > Hi,
> >
> > I did a little bit of script that refreshes a text slogan every 5
> > or
> > so seconds with a new slogans and wraps to each slogan, I had about
> > 5,
> > and loops over and over again. This was done WITHOUT the need of
> > refreshing the page. I think I used JavaScript but not 100% sure of
> > this. Has anyone seen this before I seen a site use it?
> >
> > I can't recall the site I did it for, I know I have done it before.
> > I need the code again without needing to re-do it all again as it
> > took
> > me a while to configure it last time.
> >
> > The site is written in PHP and uses MySQL.
> >
> > Any help would be mostly appreciated.
> >
> > J
> >
> >
> > ---------------------------------
> > Do you Yahoo!?
> > Messenger 7.0: Free worldwide PC to PC calls
>
>
>
> ------------------------------------------------------------ --------------------
>
>
> > Incoming mail is certified Virus Free.
> > Checked by AVG Anti-Virus (http://www.grisoft.com).
> > Version: 7.0.148 / Virus Database: 267.14.20 - Release Date:
> > 17/01/2006
> >
>
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.1.375 / Virus Database: 267.14.20/233 - Release Date:
> 18/01/2006
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
------------------------------------------------------------ --------------------
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.1.375 / Virus Database: 267.14.20/233 - Release Date:
18/01/2006
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.1.375 / Virus Database: 267.14.20/233 - Release Date: 18/01/2006
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Refreshing text question!
am 18.01.2006 11:13:52 von Julien Bonastre
And in response, i was sort of heading there with my response..
Checkout my sexy 'quotes' engine on www.operation-scifi.com
At bottom of page, there's a link "HOVER ON THIS LINK (Click to change
quote)"
click it to see the wowness effect
Implementing this with a timeout function of JS is quite easy too..
Anyway, back to work for me..
---oOo--- Allowing users to execute CGI scripts in any directory should
only be considered if: ... a.. You have no users, and nobody ever visits
your server. ... Extracted Quote: Security Tips - Apache HTTP
Server ---oOo--- ------oOo---------------oOo------ Julien Bonastre
[The_RadiX] The-Spectrum Network CEO ABN: 64 235 749 494
julien@the-spectrum.org
www.the-spectrum.org ------oOo---------------oOo------
----- Original Message -----
From: "Julien Bonastre"
To:
Sent: Wednesday, January 18, 2006 8:08 PM
Subject: Re: [PHP-DB] Refreshing text question!
> Sorry I had misinterpreted your question Jerry..
>
> I thought you were trying to refresh the page, missed that keyword :-)
>
>
> Therefore in context the page refresh would be quite annoying, I was
> only introducing its concept in order to reload the page at a
> different location.
>
>
> Again, my apologies for this..
>
>
> Kind Regards,
> Julien Bonastre
>
>
>
> ----- Original Message -----
> From: "Aaron Koning"
> To:
> Sent: Wednesday, January 18, 2006 5:47 PM
> Subject: Re: [PHP-DB] Refreshing text question!
>
>
> I think that refreshing the web page with META Refresh every 5 or 10
> seconds
> would surly P.O. anyone actually trying to read your web pages.
>
> Anyways:
> http://www.webreference.com/js/column3/
>
> Or try googling the topic...
>
> Aaron
>
>
> On 1/17/06, Julien Bonastre wrote:
>>
>> Yes I can help you there..
>>
>> There is a technique you can use which is actually more "browser"
>> friendly then the Javascript alternative you mentioned..
>>
>> You can use the META tags in your page as such:
>>
>>
>>
>>
>> will refresh page in 10 seconds
>>
>>
>>
>> CONTENT="10;url=http://www.operation-scifi.com">
>>
>> will reload page in 10 seconds and direct browser to one of my first
>> highschool webpages..
>>
>>
>>
>>
>>
>> For a quick reference I found this via the I'm Feeling Lucky of
>> Google:
>> http://webdesign.about.com/cs/metatags/a/aa080300a.htm
>>
>> Otherwise the good ole' W3C at www.w3c.org will have some great
>> doco's
>> on it too
>>
>>
>>
>> enjoy ;-)
>>
>>
>>
>>
>> ---oOo--- Allowing users to execute CGI scripts in any directory
>> should
>> only be considered if: ... a.. You have no users, and nobody ever
>> visits
>> your server. ... Extracted Quote: Security Tips - Apache HTTP
>> Server ---oOo--- ------oOo---------------oOo------ Julien Bonastre
>> [The_RadiX] The-Spectrum Network CEO ABN: 64 235 749 494
>> julien@the-spectrum.org
>> www.the-spectrum.org ------oOo---------------oOo------
>> ----- Original Message -----
>> From: "JeRRy"
>> To:
>> Sent: Wednesday, January 18, 2006 11:51 AM
>> Subject: [PHP-DB] Refreshing text question!
>>
>>
>> > Hi,
>> >
>> > I did a little bit of script that refreshes a text slogan every 5
>> > or
>> > so seconds with a new slogans and wraps to each slogan, I had about
>> > 5,
>> > and loops over and over again. This was done WITHOUT the need of
>> > refreshing the page. I think I used JavaScript but not 100% sure
>> > of
>> > this. Has anyone seen this before I seen a site use it?
>> >
>> > I can't recall the site I did it for, I know I have done it
>> > before.
>> > I need the code again without needing to re-do it all again as it
>> > took
>> > me a while to configure it last time.
>> >
>> > The site is written in PHP and uses MySQL.
>> >
>> > Any help would be mostly appreciated.
>> >
>> > J
>> >
>> >
>> > ---------------------------------
>> > Do you Yahoo!?
>> > Messenger 7.0: Free worldwide PC to PC calls
>>
>>
>>
>> ------------------------------------------------------------ --------------------
>>
>>
>> > Incoming mail is certified Virus Free.
>> > Checked by AVG Anti-Virus (http://www.grisoft.com).
>> > Version: 7.0.148 / Virus Database: 267.14.20 - Release Date:
>> > 17/01/2006
>> >
>>
>>
>>
>> --
>> No virus found in this outgoing message.
>> Checked by AVG Anti-Virus.
>> Version: 7.1.375 / Virus Database: 267.14.20/233 - Release Date:
>> 18/01/2006
>>
>> --
>> PHP Database Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>
>
>
> ------------------------------------------------------------ --------------------
>
>
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.1.375 / Virus Database: 267.14.20/233 - Release Date:
> 18/01/2006
>
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.1.375 / Virus Database: 267.14.20/233 - Release Date:
> 18/01/2006
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.1.375 / Virus Database: 267.14.20/233 - Release Date:
> 18/01/2006
>
>
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.1.375 / Virus Database: 267.14.20/233 - Release Date: 18/01/2006
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Refreshing text question!
am 18.01.2006 11:20:45 von jeffreyb
Well, somebody's got to say it: that question has nothing to do with PHP
and MySQL, which are server side.
I suggest you Google "free javascript" and you will find dozens of sites
offering free java scripts. Many of them will have text/text banner
offerings that do what you want to do.
Good luck,
Jeffrey
JeRRy wrote:
>Hi,
>
> I did a little bit of script that refreshes a text slogan every 5 or so seconds with a new slogans and wraps to each slogan, I had about 5, and loops over and over again. This was done WITHOUT the need of refreshing the page. I think I used JavaScript but not 100% sure of this. Has anyone seen this before I seen a site use it?
>
> I can't recall the site I did it for, I know I have done it before. I need the code again without needing to re-do it all again as it took me a while to configure it last time.
>
> The site is written in PHP and uses MySQL.
>
> Any help would be mostly appreciated.
>
> J
>
>
>---------------------------------
>Do you Yahoo!?
> Messenger 7.0: Free worldwide PC to PC calls
>
>
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Refreshing text question!
am 18.01.2006 13:41:02 von jusa_98
--0-692748401-1137588062=:92345
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Hi,
No, no that is not what i am after, I know how to do that but it's not what I want.
I wrote some code a year or so ago with words, they refreshed every 5 or so seconds WITHOUT REFRESHING THE PAGE. It was written in JavaScript as i can remember. But I can't find where I did it. I want to have the code or a similar one without the need to re-write it.
The code does not require the page refreshing at all, just loops in a script and outputs. I might have to do some web surfing on it, pity I can't remeber where it is.
If anyone could help that would be great.
It's for a PHP site using MySQL. I am considering having the slogans in a database this time rather than just a text file.
J
Julien Bonastre wrote:
Yes I can help you there..
There is a technique you can use which is actually more "browser"
friendly then the Javascript alternative you mentioned..
You can use the META tags in your page as such:
will refresh page in 10 seconds
CONTENT="10;url=http://www.operation-scifi.com">
will reload page in 10 seconds and direct browser to one of my first
highschool webpages..
For a quick reference I found this via the I'm Feeling Lucky of Google:
http://webdesign.about.com/cs/metatags/a/aa080300a.htm
Otherwise the good ole' W3C at www.w3c.org will have some great doco's
on it too
enjoy ;-)
---oOo--- Allowing users to execute CGI scripts in any directory should
only be considered if: ... a.. You have no users, and nobody ever visits
your server. ... Extracted Quote: Security Tips - Apache HTTP
Server ---oOo--- ------oOo---------------oOo------ Julien Bonastre
[The_RadiX] The-Spectrum Network CEO ABN: 64 235 749 494
julien@the-spectrum.org
www.the-spectrum.org ------oOo---------------oOo------
----- Original Message -----
From: "JeRRy"
To:
Sent: Wednesday, January 18, 2006 11:51 AM
Subject: [PHP-DB] Refreshing text question!
> Hi,
>
> I did a little bit of script that refreshes a text slogan every 5 or
> so seconds with a new slogans and wraps to each slogan, I had about 5,
> and loops over and over again. This was done WITHOUT the need of
> refreshing the page. I think I used JavaScript but not 100% sure of
> this. Has anyone seen this before I seen a site use it?
>
> I can't recall the site I did it for, I know I have done it before.
> I need the code again without needing to re-do it all again as it took
> me a while to configure it last time.
>
> The site is written in PHP and uses MySQL.
>
> Any help would be mostly appreciated.
>
> J
>
>
> ---------------------------------
> Do you Yahoo!?
> Messenger 7.0: Free worldwide PC to PC calls
------------------------------------------------------------ --------------------
> Incoming mail is certified Virus Free.
> Checked by AVG Anti-Virus (http://www.grisoft.com).
> Version: 7.0.148 / Virus Database: 267.14.20 - Release Date:
> 17/01/2006
>
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.1.375 / Virus Database: 267.14.20/233 - Release Date: 18/01/2006
---------------------------------
Do you Yahoo!?
Find a local business fast with Yahoo! Local Search
--0-692748401-1137588062=:92345--
Re: Refreshing text question!
am 18.01.2006 13:44:02 von Bastien Koert
google 'rotating banner ad'...basically you hide stuff in divs/layers and
show and hide the layers on a set timeout function with js
bastien
>From: JeRRy
>To: Julien Bonastre , php-db@lists.php.net
>Subject: Re: [PHP-DB] Refreshing text question!
>Date: Wed, 18 Jan 2006 23:41:02 +1100 (EST)
>
>Hi,
>
> No, no that is not what i am after, I know how to do that but it's not
>what I want.
>
> I wrote some code a year or so ago with words, they refreshed every 5 or
>so seconds WITHOUT REFRESHING THE PAGE. It was written in JavaScript as i
>can remember. But I can't find where I did it. I want to have the code or
>a similar one without the need to re-write it.
>
> The code does not require the page refreshing at all, just loops in a
>script and outputs. I might have to do some web surfing on it, pity I
>can't remeber where it is.
>
> If anyone could help that would be great.
>
> It's for a PHP site using MySQL. I am considering having the slogans in
>a database this time rather than just a text file.
>
> J
>
>Julien Bonastre wrote:
> Yes I can help you there..
>
>There is a technique you can use which is actually more "browser"
>friendly then the Javascript alternative you mentioned..
>
>You can use the META tags in your page as such:
>
>
>
>
>will refresh page in 10 seconds
>
>
> CONTENT="10;url=http://www.operation-scifi.com">
>
>will reload page in 10 seconds and direct browser to one of my first
>highschool webpages..
>
>
>
>
>
>For a quick reference I found this via the I'm Feeling Lucky of Google:
>http://webdesign.about.com/cs/metatags/a/aa080300a.htm
>
>Otherwise the good ole' W3C at www.w3c.org will have some great doco's
>on it too
>
>
>
>enjoy ;-)
>
>
>
>
>---oOo--- Allowing users to execute CGI scripts in any directory should
>only be considered if: ... a.. You have no users, and nobody ever visits
>your server. ... Extracted Quote: Security Tips - Apache HTTP
>Server ---oOo--- ------oOo---------------oOo------ Julien Bonastre
>[The_RadiX] The-Spectrum Network CEO ABN: 64 235 749 494
>julien@the-spectrum.org
>www.the-spectrum.org ------oOo---------------oOo------
>----- Original Message -----
>From: "JeRRy"
>To:
>
>Sent: Wednesday, January 18, 2006 11:51 AM
>Subject: [PHP-DB] Refreshing text question!
>
>
> > Hi,
> >
> > I did a little bit of script that refreshes a text slogan every 5 or
> > so seconds with a new slogans and wraps to each slogan, I had about 5,
> > and loops over and over again. This was done WITHOUT the need of
> > refreshing the page. I think I used JavaScript but not 100% sure of
> > this. Has anyone seen this before I seen a site use it?
> >
> > I can't recall the site I did it for, I know I have done it before.
> > I need the code again without needing to re-do it all again as it took
> > me a while to configure it last time.
> >
> > The site is written in PHP and uses MySQL.
> >
> > Any help would be mostly appreciated.
> >
> > J
> >
> >
> > ---------------------------------
> > Do you Yahoo!?
> > Messenger 7.0: Free worldwide PC to PC calls
>
>
>----------------------------------------------------------- ---------------------
>
>
> > Incoming mail is certified Virus Free.
> > Checked by AVG Anti-Virus (http://www.grisoft.com).
> > Version: 7.0.148 / Virus Database: 267.14.20 - Release Date:
> > 17/01/2006
> >
>
>
>
>--
>No virus found in this outgoing message.
>Checked by AVG Anti-Virus.
>Version: 7.1.375 / Virus Database: 267.14.20/233 - Release Date: 18/01/2006
>
>
>
>
>
>---------------------------------
>Do you Yahoo!?
> Find a local business fast with Yahoo! Local Search
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Refreshing text question!
am 18.01.2006 17:19:45 von Trevor Gryffyn
Two ways I can think of to update part of a page without doing a full refresh:
1. Use an IFRAME so you're technically updating a page, but it's the page within the frame (not my favorite but works ok)
2. Or you can use asynchronous javascript (AJAX) to update just that one section of the page without doing a refresh. Here's Rasmus' great primer on AJAX, should be easy enough to follow:
http://www.time.gov/timezone.cgi?Eastern/d/-5/java
One note I'd like to make that doesn't seem to be mentioned in a lot of AJAX tutorials. If the page your AJAX is calling doesn't have the standard "do not cache" tags, you sometimes won't get the results you want.. especially with Internet Explorer (in my experience).
Here's a block I copy/pasted from somewhere that seems to work fine (covers most of the bases and all):
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified
header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false); // HTTP/1.1
header("Pragma: no-cache"); // HTTP/1.0
good luck!
-TG
= = = Original message = = =
Hi,
No, no that is not what i am after, I know how to do that but it's not what I want.
I wrote some code a year or so ago with words, they refreshed every 5 or so seconds WITHOUT REFRESHING THE PAGE. It was written in JavaScript as i can remember. But I can't find where I did it. I want to have the code or a similar one without the need to re-write it.
The code does not require the page refreshing at all, just loops in a script and outputs. I might have to do some web surfing on it, pity I can't remeber where it is.
If anyone could help that would be great.
It's for a PHP site using MySQL. I am considering having the slogans in a database this time rather than just a text file.
J
Julien Bonastre wrote:
Yes I can help you there..
There is a technique you can use which is actually more "browser"
friendly then the Javascript alternative you mentioned..
You can use the META tags in your page as such:
will refresh page in 10 seconds
CONTENT="10;url=http://www.operation-scifi.com">
will reload page in 10 seconds and direct browser to one of my first
highschool webpages..
For a quick reference I found this via the I'm Feeling Lucky of Google:
http://webdesign.about.com/cs/metatags/a/aa080300a.htm
Otherwise the good ole' W3C at www.w3c.org will have some great doco's
on it too
enjoy ;-)
___________________________________________________________
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Refreshing text question!
am 18.01.2006 17:26:15 von Trevor Gryffyn
Ooops... here's the real link:
http://rajshekhar.net/blog/archives/85-Rasmus-30-second-AJAX -Tutorial.html
= = = Original message = = =
Two ways I can think of to update part of a page without doing a full refresh:
1. Use an IFRAME so you're technically updating a page, but it's the page within the frame (not my favorite but works ok)
2. Or you can use asynchronous javascript (AJAX) to update just that one section of the page without doing a refresh. Here's Rasmus' great primer on AJAX, should be easy enough to follow:
http://www.time.gov/timezone.cgi?Eastern/d/-5/java
One note I'd like to make that doesn't seem to be mentioned in a lot of AJAX tutorials. If the page your AJAX is calling doesn't have the standard "do not cache" tags, you sometimes won't get the results you want.. especially with Internet Explorer (in my experience).
Here's a block I copy/pasted from somewhere that seems to work fine (covers most of the bases and all):
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified
header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false); // HTTP/1.1
header("Pragma: no-cache"); // HTTP/1.0
good luck!
-TG
= = = Original message = = =
Hi,
No, no that is not what i am after, I know how to do that but it's not what I want.
I wrote some code a year or so ago with words, they refreshed every 5 or so seconds WITHOUT REFRESHING THE PAGE. It was written in JavaScript as i can remember. But I can't find where I did it. I want to have the code or a similar one without the need to re-write it.
The code does not require the page refreshing at all, just loops in a script and outputs. I might have to do some web surfing on it, pity I can't remeber where it is.
If anyone could help that would be great.
It's for a PHP site using MySQL. I am considering having the slogans in a database this time rather than just a text file.
J
Julien Bonastre wrote:
Yes I can help you there..
There is a technique you can use which is actually more "browser"
friendly then the Javascript alternative you mentioned..
You can use the META tags in your page as such:
will refresh page in 10 seconds
CONTENT="10;url=http://www.operation-scifi.com">
will reload page in 10 seconds and direct browser to one of my first
highschool webpages..
For a quick reference I found this via the I'm Feeling Lucky of Google:
http://webdesign.about.com/cs/metatags/a/aa080300a.htm
Otherwise the good ole' W3C at www.w3c.org will have some great doco's
on it too
enjoy ;-)
___________________________________________________________
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
___________________________________________________________
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Refreshing text question!
am 18.01.2006 18:04:27 von Bastien Koert
js rotating banner system
http://www.dyn-web.com/dhtml/banners/
bastien
>From:
>To:
>CC:
>Subject: Re: [PHP-DB] Refreshing text question!
>Date: Wed, 18 Jan 2006 11:26:15 -0500
>
>Ooops... here's the real link:
>
>http://rajshekhar.net/blog/archives/85-Rasmus-30-second-AJA X-Tutorial.html
>
>
>
>= = = Original message = = =
>
>Two ways I can think of to update part of a page without doing a full
>refresh:
>
>1. Use an IFRAME so you're technically updating a page, but it's the page
>within the frame (not my favorite but works ok)
>
>2. Or you can use asynchronous javascript (AJAX) to update just that one
>section of the page without doing a refresh. Here's Rasmus' great primer
>on AJAX, should be easy enough to follow:
>
>http://www.time.gov/timezone.cgi?Eastern/d/-5/java
>
>One note I'd like to make that doesn't seem to be mentioned in a lot of
>AJAX tutorials. If the page your AJAX is calling doesn't have the standard
>"do not cache" tags, you sometimes won't get the results you want..
>especially with Internet Explorer (in my experience).
>
>Here's a block I copy/pasted from somewhere that seems to work fine (covers
>most of the bases and all):
>
>header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
>header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always
>modified
>header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
>header("Cache-Control: post-check=0, pre-check=0", false); // HTTP/1.1
>header("Pragma: no-cache"); // HTTP/1.0
>
>good luck!
>
>-TG
>
>= = = Original message = = =
>
>Hi,
>
> No, no that is not what i am after, I know how to do that but it's not
>what I want.
>
> I wrote some code a year or so ago with words, they refreshed every 5 or
>so seconds WITHOUT REFRESHING THE PAGE. It was written in JavaScript as i
>can remember. But I can't find where I did it. I want to have the code or
>a similar one without the need to re-write it.
>
> The code does not require the page refreshing at all, just loops in a
>script and outputs. I might have to do some web surfing on it, pity I
>can't remeber where it is.
>
> If anyone could help that would be great.
>
> It's for a PHP site using MySQL. I am considering having the slogans in
>a database this time rather than just a text file.
>
> J
>
>Julien Bonastre wrote:
> Yes I can help you there..
>
>There is a technique you can use which is actually more "browser"
>friendly then the Javascript alternative you mentioned..
>
>You can use the META tags in your page as such:
>
>
>
>
>will refresh page in 10 seconds
>
>
> CONTENT="10;url=http://www.operation-scifi.com">
>
>will reload page in 10 seconds and direct browser to one of my first
>highschool webpages..
>
>
>
>
>
>For a quick reference I found this via the I'm Feeling Lucky of Google:
>http://webdesign.about.com/cs/metatags/a/aa080300a.htm
>
>Otherwise the good ole' W3C at www.w3c.org will have some great doco's
>on it too
>
>
>
>enjoy ;-)
>
>
>___________________________________________________________
>Sent by ePrompter, the premier email notification software.
>Free download at http://www.ePrompter.com.
>
>--
>PHP Database Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>___________________________________________________________
>Sent by ePrompter, the premier email notification software.
>Free download at http://www.ePrompter.com.
>
>--
>PHP Database Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Refreshing text question!
am 19.01.2006 05:16:35 von jusa_98
--0-243337262-1137644195=:99410
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Hi,
Thanks for people that have commented and responsed. One stated my question had nothing to do with PHP and MySQL. Hang on to your horses, 90% oif the people that responded responded in an incorrect method I needed. Hence the appologies soon blooded in but thanks for the meta refresh but I know how to do this but thanks again!
Now regarding "It's not a PHP/MySQL question" You too have FAILED to read my question correctly. It's certainly the funny season. I stated in my posting I will throwing the slogans/quotes in a db, fetching them and handling them in a db. Hence it will be as it's on a PHP page as I stated.
In the end I did what I did on the first porject I did something like this and actually re-wrote the code.
I have it like this:
http://www.tassiedemononline.org.au/~bps/
Click through the alert thing, that is for the owners. The site is way early devolopment. But you'll see a manual picture in the main page, under it is the refreshing text I was talking about and wanted. (Hard to explain)
I actually enhanced the code a bit so I could change font size of the text, text colour and lots more. My first attempt at it would only output in plain text. What not ideal for this sort of site.
Thanks for peoples assistance though, I am not sure what they call this sort of text refreshing.
Jerry
---------------------------------
Do you Yahoo!?
Yahoo! News: Get the latest news via video today!
--0-243337262-1137644195=:99410--
Re: Refreshing text question!
am 19.01.2006 05:39:14 von robleyd
JeRRy wrote:
> Hi,
>
> Thanks for people that have commented and responsed. One stated my
> question had nothing to do with PHP and MySQL. Hang on to your horses,
> 90% oif the people that responded responded in an incorrect method I
> needed. Hence the appologies soon blooded in but thanks for the meta
> refresh but I know how to do this but thanks again!
>
> Now regarding "It's not a PHP/MySQL question" You too have FAILED to
> read my question correctly. It's certainly the funny season. I stated
> in my posting I will throwing the slogans/quotes in a db, fetching them
> and handling them in a db. Hence it will be as it's on a PHP page as I
> stated.
Well, seeing you are maybe serving this using apache, perhaps it is more
properly an apache question? But wait, apache runs under $OS so really it
is a question for the $OS mailing list? :-)
Sure, you might be getting the data via php/mysql, but the actual method you
use to make the outcome how you want it, is not php.
I just had to say that before the real pedants on the list get started :-)
Cheers
--
David Robley
If you're not confused, you're not paying attention.
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Add or Subtract
am 19.01.2006 13:25:04 von Ed
I've been considering doing a little project for my community site which
allow people to sell and buy players ... They would have a limit of
2,000,000 upon sign up .. However i'm not sure how i'd update this figure
.....
Say player sells for example Alan Shearer for £300,000 he'd then have
2,300,000 how would i make it add to whats in the db already? same goes for
if he was sold and it went down to 1,700,000.
Ed
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Add or Subtract
am 19.01.2006 13:36:56 von robleyd
On Thu, 19 Jan 2006 22:55, Ed wrote:
> I've been considering doing a little project for my community site
> which allow people to sell and buy players ... They would have a limit
> of 2,000,000 upon sign up .. However i'm not sure how i'd update this
> figure ....
>
> Say player sells for example Alan Shearer for =A3300,000 he'd then have
> 2,300,000 how would i make it add to whats in the db already? same goes
> for if he was sold and it went down to 1,700,000.
>
> Ed
You haven't read the mysql docs much, I guess. Assuming you are storing=20
your limit as an integer:
UPDATE table SET value =3D value + $newamount WHERE [something to identify=
=20
the record to be updated]
where $newamount is the positive or negative value of the increase passed=20
in from wherever.=20
Cheers
=2D-=20
David Robley
Press any key to continue or any other key to quit...
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Add or Subtract
am 19.01.2006 13:51:29 von Julien Bonastre
Thats not even a docs question..
Thats a "have you ever even sat down at a single teaching of SQL
principles or read ANY basic SQL material at all" question.
Really man. UPDATE is one of the four most common SQL standard functions
you will and should know quite well.
SELECT, INSERT, UPDATE, DELETE
I'm not having a go here, but maybe you should checkout like a basics of
mysql e-book or something, I've landed on some goodies in the past and
they're just fantastic, I've ended up mastering SQL query construction
like spelling my name now. All shapes sizes, constraints of queries and
where and how to use certain functions, where to use what, aggregate
functions, stats, subqueries, multiple tables,transactional locking, etc
etc etc its so exciting, really.
Enjoy!!
---oOo--- Allowing users to execute CGI scripts in any directory should
only be considered if: ... a.. You have no users, and nobody ever visits
your server. ... Extracted Quote: Security Tips - Apache HTTP
Server ---oOo--- ------oOo---------------oOo------ Julien Bonastre
[The_RadiX] The-Spectrum Network CEO ABN: 64 235 749 494
julien@the-spectrum.org
www.the-spectrum.org ------oOo---------------oOo------
----- Original Message -----
From: "David Robley"
To:
Sent: Thursday, January 19, 2006 10:36 PM
Subject: Re: [PHP-DB] Add or Subtract
On Thu, 19 Jan 2006 22:55, Ed wrote:
> I've been considering doing a little project for my community site
> which allow people to sell and buy players ... They would have a limit
> of 2,000,000 upon sign up .. However i'm not sure how i'd update this
> figure ....
>
> Say player sells for example Alan Shearer for £300,000 he'd then have
> 2,300,000 how would i make it add to whats in the db already? same
> goes
> for if he was sold and it went down to 1,700,000.
>
> Ed
You haven't read the mysql docs much, I guess. Assuming you are storing
your limit as an integer:
UPDATE table SET value = value + $newamount WHERE [something to identify
the record to be updated]
where $newamount is the positive or negative value of the increase
passed
in from wherever.
Cheers
--
David Robley
Press any key to continue or any other key to quit...
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.1.375 / Virus Database: 267.14.20/234 - Release Date: 18/01/2006
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php