Wednesday January 12th, 2000
So, what's new? Well, some ECMA-262, revision 3 changes: Conditional function declaration, runtime errors reported as exceptions, and regular expression enhancements. Also, multiple catch clauses, getters and setters, catch keyword, and "strict" mode. Lots of info in the announcement page, so check it out!
Wednesday January 12th, 2000 5:50 PM
Case study: http://www.php.net. The rollovers for the images on the menu do not work properly (though they do have some functionality) and the pop-up 'quick reference' and 'search' don't appear.
I understand that Mozilla probably uses a different DOM to its predecessors but even when using this new DOM I can't seem to get layers (yes, I'm using DIVs, not LAYER tags) to pop-up under current builds of Mozilla.
Is this a bug? Something yet to be developed? Something I'm doing wrong?
Wednesday January 12th, 2000 11:30 PM
Give it a try... you never know.
Thursday January 13th, 2000 9:45 AM
Thursday January 13th, 2000 2:24 PM
Also, there must be a bug somewhere as at the link provided http://www.php.net if you pass the mouse over the 'rollover' buttons and then scroll down and back up the coloured (or highlighted) image is shown. I'm sure this isn't the correct behaviour. (I'm pretty sure this is true, but mozilla, the nightly from a day or two ago, crashes every time I load a page now)
Friday January 14th, 2000 2:53 AM
It's the DOM. Unfortunately it is not backwards compatible with IE or NSCP4.x.
Friday January 14th, 2000 9:52 PM
Does Netscape not see a problem with making a web browser that does not work with many of the webpages that already exist?
Sunday January 16th, 2000 12:12 AM
It's obviously a debateable problem. To be able to support existing sites and prevent webmaster-frustration at the same time, or to completely discourage use of old proprietary code and make the web more consistent and much less problematic than it is now?
Not an easy answer for me, personally, I'll be satisfied either way, although I do lean more towards discouraging use of the nonstandards.
Thursday January 13th, 2000 1:55 AM
Are you using the new DOM methods and variables? You can't use the same object model as IE or NS4.
Speaking of Object Models, is there an easy to read reference to the DOM? I looked on W3C, but that was very hard to understand and IMO geared towards programmers of browsers.
#5 Re: Re: What's the story with old-school Javascrip
Thursday January 13th, 2000 1:40 PM
A great DOM reference, and CSS 1+2 for that matter, is DHTML, by Danny Goodman. Not only does it list every property, attribute and method available ine NN4 and IE4, but also against the standards, i.e. DOM1 or CSS 1 or 2
#8 Re: Re: Re: What's the story with old-school Javas
Friday January 14th, 2000 2:55 AM
Excellent. Is this a book or a site? And where can I get it?
#9 Re: Goodman's Book
Friday January 14th, 2000 5:58 AM
I believe the previous poster was referring to _DHTML: The Complete Reference_ from O'Reilly -- http://www.ora.com/dhtmlref/ -- I haven't actually seen it myself, but if his _JS Bible_ is any indication, it's got to be pretty good.
#10 Re: Re: Re: What's the story with old-school Javas
Friday January 14th, 2000 2:28 PM
I've got both of Goodman's books -- JS Bible 3rd Edition and Dynamic HTML: The Definitive Reference. The latter book is a good reference; I use it frequently to determine what's available in IE and Netscape. It doesn't however cover any of the W3C recommended methods and properties. For that you need to go to the w3c.org site and and read the recommendations.
Friday January 14th, 2000 2:37 PM
#15 Re: Re: What's the story with old-school Javascrip
Friday January 14th, 2000 10:05 PM
Why would they choose DIV instead of LAYER? LAYER seems to make much more sense to me, if the goal is to create layers of webpage elements. Were they trying to satisfy Microsoft? Am I misunderstanding the use of the LAYER and DIV tags?
#17 Re: What's the story with old-school Javascrip
Saturday January 15th, 2000 2:42 AM
FWIW, Mozilla hasn't chosen DIV *instead* of LAYER, and Mozilla is certainly not trying to satisfy Microsoft. Even if LAYER were supported, the DIV and SPAN tags would still be necessary.
That being said, the decision to put off the implementation of LAYER has been publicly debated on the Mozilla newsgroups as recently as 1/11/2000.
I'd suggest searching (at http://www.deja.com/home_ps.shtml ) for the keyword LAYER in the netscape.public.mozilla.* newsgroups.
#18 Re: Re: What's the story with old-school Javascrip
Saturday January 15th, 2000 10:18 AM
Well I know Mozilla is not trying to satisfy Microsoft. I thought maybe W3C was.
Friday January 14th, 2000 2:50 PM
Unfortunately many pages are written under the assumption that users will have *EITHER* NS4 or IE4, your example http://www.php.net is one of them. The page checks which browser is in use by looking for DOMisms, in the following snippet:
NS4 = (document.layers) ? 1 : 0; IE4 = (document.all) ? 1 : 0; ver4 = (NS4 || IE4) ? 1 : 0;
I'm not sure what you mean by "I can't seem to get layers ... to pop-up", but perhaps the (mozilla only) example at http://www.netcom.com/~rginda/js_examples/divpopup.html will help.
#13 Re: Re: What's the story with old-school Javascrip
Friday January 14th, 2000 9:35 PM
Thanks for your help. I managed to work out what I was doing from the link you provided on hiding and displaying layers. And, as a result of my fiddling with it, I uncovered a bug and filed my first ever bug report! http://bugzilla.mozilla.org/show_bug.cgi?id=24041
#16 Re: What's the story with old-school Javascrip
Saturday January 15th, 2000 2:03 AM
Excellent testcase! It looks like your bug is a dupe of 19178, you may want to mark it as such and attach your testcase there instead.