I have written a greasemonkey script which will do GM_xmlhttpRequest
to the next 2 pages of the google results page.. i.e. if my current
page is 1 then my script will do GM_xmlhttpRequest to page no 2 and
3..
Now my script will extract out all the urls from these 3 pages and
will reorder them
For that i have done
unsafeWindow.addEventListener('load',Reorder,true);
function Reorder()
{
alert("onload fired")
..........
.......... // some code overhere to collect all the urls into an array
and to reorder the urls in the array
// now i inject these urls into my reference pages i.e. i keep a
reference to the nodes where i am supposed to append these urls as
childNodes.. and along with that i modify the links to page no. 2 and
3 so that now they'll point to my these newly dynamically generated
pages. For that i modify the onclick attribute of these links that'll
open a new window in the current window itself and will write the
modified responseXML object to the newly created window.
Now everything is working awesome i.e. url
extraction,reordering,creating new window,writing the responseXML
object ..
But the problem is that when my these modified links are clicked and
my newly generated window replaces the parent window it doesn't fire
the onload function that i am injecting via greasemonkey
script...infact it doesn't stop loading i.e. it displays the desired
content but is never fully loaded since status bar doesn't shows
"done" infact it shows "waiting for clients1.google.com"...
So does anyone knows what exactly is going wrong overhere.. is it due
to some script running on google search page that is somehow
synchronised with the contents of the page...
please people whatever you people can think of..please tell me...
i need to finish this thing in a day or two..
--
You received this message because you are subscribed to the Google Groups
"greasemonkey-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/greasemonkey-users?hl=en.