Re: Updating an open page with PHP

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

 



No, not necessarily...
 Javascript actions on the main page, including form submits or timers can 
load a new page in the hidden IFRAME. The new page in the IFRAME could be a 
php page, that generates new javascript code which is then run when the page 
in the IFRAME is loaded. The javascript code on the page in the IFRAME calls 
functions in the code on the main page, or changes values in the data on the 
main page, thus updating the main page without reloading.
 On 6/14/05, abrea <abrea@xxxxxxxxxxxxxxx> wrote: 
> 
> Yes, but then the user would always have to reload the imbedded frame.
> 
> 
> -----Original Message-----
> From: "Warren Vail" <warren@xxxxxxxxxxxx>
> To: "'abrea'" <abrea@xxxxxxxxxxxxxxx>, "'PHP General List'"
> <php-general@xxxxxxxxxxxxx>
> Date: Tue, 14 Jun 2005 10:31:29 -0700
> Subject: RE:  Updating an open page with PHP
> 
> > > 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
> >
> 
> 
> 
> --
> 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