So..got scriptable extention for firefox.
it's somelika a webspider, written in javascript.
what i want to do:
i want it load a page, them do some job, then go to another page (using an url from the loaded page). After the new page is loaded - the spider do the same job.
Algoritm is somelike this one:
- wait till the page is loaded
- do some job
- choose a different url
- go to this url
- goto 1.
in my main function i do this code:
gBrowser.addEventListener("DOMContentLoaded",haXahv8, false);
and everything works fine till i go to another page...how can i reuse DOMContentLoaded event in my firefox extension?
So, the question is:
is it possible to reuse load/DOMContentLoaded event in firefox extention for different pages? if yes then how?
p.s.earlier i was solving this prob,em with windows forms and webbrowser + c++...ooh, what the time it was...a dream! cause everything worked fine=)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…