Reply to Re: Looking for an event trigger

Your name:

Reply:


Posted by Cleverbum on 10/12/06 14:08

Jerry Stuckle wrote:
> Cleverbum@hotmail.com wrote:
> > Jerry Stuckle wrote:
> >
> >>Cleverbum@hotmail.com wrote:
> >>
> >>>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?
> >>>
> >>
> >>You could, but then why even load the first page? It will just flash up
> >>there then go to the next page.
> >>
> >>If I were the client I would be very upset about this.
> >>
> >>But if you insist, you can do it with an html redirect. Check the
> >>alt.html newsgroup for help on how to do it.
> >>
> >
> >
> > Well the first page does the processing that the second page needs
> > before it can be displayed, the processing is done by pages loaded
> > within image tags, there are over 4,000 of them and the processing time
> > will obviously vary, hence why I wanted the trigger to activate once
> > the page and all the images had loaded.
> >
>
> OK, I understand the pages doing the processing. But why would you send
> any data to the client if it's not meant to be seen, anyway?
>
> And in a case like that, why would you care if the page is loaded or not?
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstucklex@attglobal.net
> ==================
The page needs to finish loading for all of the processing to complete.
Each image on the first page corresponds to a certain portion of the
work that needed doing before the second page is shown. If the second
page is shown before the first one is finished the information on it
will be wrong.
I've done the data processing this way as my host has a maximum
execution time of 30 seconds and only supports web languages - not
things like java/c.
The images also show information about what happened in the process,
which is useful for debugging, but will most likely be ignored by the
client.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация