Re: reload page

From: Date: Tue, 14 Aug 2001 07:54:30 +0000
Subject: Re: reload page
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-11327@lists.php.net to get a copy of this message
On Tue, Aug 14, 2001 at 09:39:40AM +0000, schleipp wrote: > Hi everybody, > I have created a webpage with two frames. One of this frames is a form > in which the user can change some data, which you can see in the other > frame. I want the latter frame being updated as soon as I send the form, > which is changing the data, i.e. a "reload" of the frame containing the > changed data. However, I do not know how to realize that with PHP. Does > anybody have a suggestion? > Thanks > Christian Well Christian, Noone can have a solution in PHP, because PHP is server-side. You can, though, use JavaScript for it. Let's say you have a frame_1 and frame_2. In frame_1 is the form one submits and then frame_2 has to be reloaded. When one submits the form in frame_1 he'll be sent to, let's say, submitted.php. In that page you can output the next JavaScript: <SCRIPT type="text/javascript"> window.parent.frame_2.location.reload(true); </SCRIPT> -- * R&zE: -- »»»»»»»»»»»»»»»»»»»»»»»» -- Renze Munnik -- DataLink BV -- -- E: renze@datalink.nl -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- H: +31 23 5516190 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- -- http://www.datalink.nl -- ««««««««««««««««««««««««

« previous php.db (#11327) next »