O
optimistx
I try to develope a bookmarklet, which hopefully can be activated on almost
any http-page (i.e. from any server).
The page can have unknown event handlers.
The bookmarklet wants to add its own event handlers for the page without
unnecessarily disturbing the original ones.
The problem resembles the onload-event handling: if there is already one how
to add another so that both handllers can do their work? ( this problem can
be solved , but in this case this is not the problem.
When playing with the FORK-framework some events could work without
disturbing each other, but some other events obviously did not: if e.g.
there was originally defined a 'click'-handler for the body and the
bookmarklet defined its own for the same event, the original might stop
working.
Is there an easy way to solve this problem generally, without knowing how
the original events are handled?
The problem is more or less fun and hobby, not to be taken very seriously.
Hopefully this would be fun for you too .
any http-page (i.e. from any server).
The page can have unknown event handlers.
The bookmarklet wants to add its own event handlers for the page without
unnecessarily disturbing the original ones.
The problem resembles the onload-event handling: if there is already one how
to add another so that both handllers can do their work? ( this problem can
be solved , but in this case this is not the problem.
When playing with the FORK-framework some events could work without
disturbing each other, but some other events obviously did not: if e.g.
there was originally defined a 'click'-handler for the body and the
bookmarklet defined its own for the same event, the original might stop
working.
Is there an easy way to solve this problem generally, without knowing how
the original events are handled?
The problem is more or less fun and hobby, not to be taken very seriously.
Hopefully this would be fun for you too .