Originally Posted by xelawho
it sounds like you would probably use a callback
I've had a look around re: callback.
It seems that you need to understand (first) what is actually happening.
In reality, I don't know what event is occurring & ending.
Obviously I know that my text has been sent to google, and that it is returning (modified).
Clearly a change of state is: triggered - not finished - finished.
But worse than that.... the page first loads fully ie. one state complete; and then there is a pause while the text is sent to google (ie. the first state is still stable). Then the returned translated text is written in.
If we know what the final state is, then we might compare it to the the 1st state - which is page loaded and original text written in (if any, cos iframe2 is originally empty, but it will gradually acquire text, as it is typed into iframe1).
What we can be certain of, is that the 2nd completed state, is going to be different to the 1st completed state.
Perhaps it's possible to monitor the sending to google of the original text.
Ie. English arrives in iframe2. It is then sent, or called, to google.
This 'data transmission' might then allow the 1st state to be logged.
The 2nd state (different) could be compared to the 1st, but can we determine, when the return text has fully arrived?
Does anybody understand these events?