|
Posted by Jonathan N. Little on 07/18/06 13:29
minnesotti wrote:
> Els wrote:
>> minnesotti wrote:
>>
>>> Hi there,
>>>
>>> I subscribed to a photographic pictures-hosting website which is heavy
>>> on JavaScript. My preferred latest browser Mozilla Firefox does not
>>> work with it -- no pictures are displayed and no buttons react to
>>> clicking. The website's helpdesk says it should work with Firefox, and
>> [snip]
>>
>> It may help if you give the URL, so that people can check what
>> problems there are.
>
> The picture-hosting website is http://www.zenfolio.com/ . When I go
> there, no button work and no images are displayed. Oh, I did not
> mention in the previous posting that I checked the "JavaScript Enable"
> box in the Options menu. The JavaScript Console gives the error
> messages: "Error: event is not defined", "Error: dom.attachEvent is not
> a function" and "Error: this.domEvent has no properties". Thanks.
Whoah! Wait a minute "attachEvent" is a MS only proprietary command, for
Firefox and other compliant browsers it should be "addEventListener".
Couple things could be at play here. Maybe they are browser sniffing in
the wrong way, should be by object detection:
// attach events after page loads
if( window.addEventListener ) {
window.addEventListener('load',initJS,false); //legacy
} else if( document.addEventListener ) {
document.addEventListener('load',initJS,false); //proper
} else if( window.attachEvent ) {
window.attachEvent("onload", initJS); //IE only
}
But maybe they are doing it from the user agent string (bad way). Are
you using any extension that changes your Firefox's user agent string?
[Follow-Up to alt.html]
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Navigation:
[Reply to this message]
|