In article <[EMAIL PROTECTED]>, "Andreas Franke"
<[EMAIL PROTECTED]> wrote:
> "D. D. Brierton" wrote:
>
>> http://www.cogsci.ed.ac.uk/~ddb/teaching/hume/enquiry/test.html
>>
>> Now the problem in M18 is that if the Content page is loaded
>> collapsed, then expandAnalysis() generates this error:
>>
>> parent.Content.document.images[i].onclick is not a function
>
> I'm sorry, it works fine for me on Linux in all tested builds: M18,
> Moz0.6 and a 12/8 nightly, with a direct connection. No javascript
> error at all.
Yes it works now because I fixed the code after discussing this in
comp.lang.javascript. "Martin Honnen" <[EMAIL PROTECTED]>
responded to my original description of this problem by saying:
"It is a bug in Mozilla. It doesn't reflect onclick (and similar like
onchange, onmouseover etc) event handlers as function objects into
JavaScript. You need to script
if (document.images[i].src.indexOf('...') != -1) {
if (!document.images[i].onclick)
document.images[i].onclick =
new Function ("event",
document.images[i].getAttribute('onclick'));
document.images[i].onclick({type: 'click'})
}"
I was unsure whether Martin meant that the bug had actually been
reported and acknowledged as a bug, or if he merely meant that mozilla's
behaviour was in some way unusual compared to how other browsers do
things.
Thanks for helping out,
Darren
--
======================================================================
D. D. Brierton Department of Philosophy, University of Edinburgh
[EMAIL PROTECTED] http://www.cogsci.ed.ac.uk/~ddb
======================================================================