javascript - Add an event handler to any normal web request -


i have timer running on page refreshes every minute. there search function on page. search function takes 10 seconds run when there 5 seconds left before page refreshes - ends refreshing anyway , search results lost.

i'm wondering if there's way generically hook outgoing web request , in cancel refresh timer. know ajax methods can setup global event handler, there way normal form submits this more generically - not having hook each form manually?


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -