RE: Updating an open page with PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Is there a way in PHP to update information on an open web 
> page (e.g. to say 
> "Hello, user, I have just logged in"), without the user 
> having to refresh 
> the page himself each time?

Technically, I don't believe so, but I can think of a way you might be
able to fake it.  If you have a browser that supports imbedded frames
<IFRAME> only the contents of the imbedded frame (a small portion of
your visible page) can be used to minimize the portion that needs to be
reloaded.  If the imbedded frame has no borders, the user will never
notice that there is a frame (unless they are asked to click something
inside the frame).

Note: I know that IE, Netscape, Mozilla and Firefox all support imbedded
frames.  My experiences with Firefox have been interesting in that even
refreshing the entire page appears to cause no flicker if few items are
moved in the second rendering (downside in my testing is that firefox
appears to leave running processes consuming RAM, at least in my Windoz
XP).

I did see an implementation where a javascript routine loaded a separate
file and because it ran in the browser, it could update pulldown lists
and controls without appearing to refresh the page.

HTH
Warren Vail
warren@xxxxxxxxxxxx

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux