Posted by Cleverbum on 10/11/06 19:17
Jerry Stuckle wrote:
> Cleverbum@hotmail.com wrote:
> > I'm hoping to execute some code "when the page has completely finished
> > loading" by which I mean the page and all the images on it, does anyone
> > know of a way to do this?
> >
>
> Are you looking to execute some code on the server or the client? What
> are you actually trying to do?
>
> Remember - PHP is server side only. It has no direct contact with the
> client. All it knows is when it's passed its data off to the web server
> for sending to the client. It doesn't know what happens after that -
> not even if the browser is closed or the connection dropped before the
> page completed loading.
>
> You can do it in Javascript on the client, and as Mateusz indicated you
> can use AJAX to call a function back on the server.
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstucklex@attglobal.net
> ==================
I was hoping to redirect the client to the next page once the first had
been loaded, so I guess some clientside javascript would be sufficient?
Navigation:
[Reply to this message]
|