D. D. Brierton wrote:
> 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.
Please file a bug if you didn't see one in Bugzilla. It would be really
helpful if you could attach a testcase that demonstrates the problem as
well as your workaround. Thanks.
-Asa
>
> Thanks for helping out,
>
> Darren