RE: [PHP-DB] Dynamic Website Question!

From: Bronislav Klucka (Bronislav.Klucka_at_pro2-soft.com)
Date: 11/30/03


To: "PHP Konference" <php-general@lists.php.net>, "JeRRy" <jusa_98@yahoo.com>
Date: Sun, 30 Nov 2003 09:21:16 +0100


> I want to have a PHP website that feeds information
> off a mysql database. But generally changes occour
> and instead of asking users to refresh the page to get
> the updates is there a way to provide the updates
> without them needing to refresh the page?
>
> E.G. For like shooping Carts, Chat rooms, etc...
>
> Is there a way in PHP or something to make updates
> show up live as they happen instead of the yucky meta
> refresh tag in HTML?
>
> Thanks for your time in advance.

I'm sorry, I always dissapoint you, but what ever you want to send to
browser must be demend by the browser. I mean you can tell browser to reload
part of the page, browser has to ask for it, you can send more information
to the browser and then use DHTML to provide the showing, or hiding...

There is only one way how to do, what you want (but it always ask the
server, only user will not see reloading). The way is to have 2 frames: 1st
for showing the content and the second to refresh every 1 min. (or as you
want), receive informations and using DHTML change the content of the first
frame, the secomd frame could be at the bootom of the browser, 1pixel
height, to be "invisible"

Brona



Relevant Pages

  • Re: Error refreshing a web page
    ... since my work has nothing to do with commerce, ... browser to pop up such a specific message, ... Environment: VS 2005 team developer, AJAX extensions, .NET 2.0. ... The browser's refresh button works fine UNTIL I click the button on the ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Code to "click" a button -- is this possible?
    ... Once the client receives ... look at is that the web server simply makes a suggestion to the browser. ... will refresh another frame called "Main"? ... I have frames set up in an asp.net application and need one frame to ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: A question about web security mechanism
    ... >After I logged into my discover card account, I click refresh bottom in my ... >session cookie since browser won't popup the dialog box when I refresh the ... the form told the web site to perform some action, ...
    (comp.security.misc)
  • Re: A question about web security mechanism
    ... >After I logged into my discover card account, I click refresh bottom in my ... >session cookie since browser won't popup the dialog box when I refresh the ... the form told the web site to perform some action, ...
    (comp.security.misc)
  • Re: FamilySearch browser problem
    ... When I call up a search, get a list of results, click on an individual result to view the details, click the "back" button on my browser to return to the list of results only to find that the list has disappeared with a message saying I need to click "refresh" to return to the screen! ... I then get an almost blank screen with a message saying that I need to re-submit information or hit the "refresh" button. ... I cant re-submit info on this screen so I hit "refresh" and then i get a blank IGI search page ...
    (soc.genealogy.computing)