Seems like my message didn't make it either... let's try
again then, shall we?
---------- Forwarded message ----------
From: Hans Schmucker <hansschmucker gmail.com>
Date: Jun 5, 2006 7:11 PM
Subject: error when loading many iframes and then parsing
through
whole document for links
To: greasemonkey mozdev.org
This is driving me crazy:
I've written a little gallery module
( http://hansschmucker.free.fr/google/googlema
ssivegallerycrea.user.js )
which has a very strange behaviour... and I'm not sure if
it's a
Firefox, Greasemonkey or a self inflicted problem.
It is supposed to load when you do a Google image search
(for example
http://images.google.com/images?sta
rt=980&q=test&imgsz=xxlarge&svnum=100&hl=en&
amp;lr=&safe=off&sa=N&filter=0
) and collect the results across multiple result pages into
a single
iFrame. It does this by parsing through the current page,
extracting
all results page links and loading them in iframes... the GM
script
when applied to a resultspage checks if it's loaded into an
iframe and
in that case starts writing the results back to the
mainpage.
Strangely enough, it suddenly stops working if I let it
search through
the whole page for resultpage links, but works perfectly if
I limit it
to the navbar. Just look at line 68. All it does is redirect
the link
search to the id=navbar element. Without that, nothing
works. I don't
even get an error, it's just that nothing happens: The
iframes
suddenly don't even start executing their code, which is
visible
because GM_log should get executed once per page, nomatter
what, but
it doesn't. Problem is that the link that links to the
current page
(with corrected offset) is above... so I want to parse the
whole page,
not just the navbar.
Any ideas what's causing this weird behaviour??? Any help
would be
highly appreciated!
Hans Schmucker.
_______________________________________________
Greasemonkey mailing list
Greasemonkey mozdev.org
http:
//mozdev.org/mailman/listinfo/greasemonkey
|