[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: <XML:SCRIPT>
On Tue, 14 Jul 1998, len bullard wrote: > Question for the document object model gurus: what happens to the scope > and execution order if function calls in event attributes are removed > as well as other post-form inline code? Oddly enough, the only thing that is supported by both Big Browser Vendors in a fairly consistent manner is just this sort of embedded event handling. Remove this, and you're left to the idiosyncracies of the event bubbling model versus the "you have to ask" model provided by Netscape. AFAIK, the DOM stuff doesn't go so far as to prescribe the manner in which a given event is propogated, preferring to remain well in the world of IDLs and other high-level stuff like object inheritance hierarchies. Somebody please correct me if I'm wrong. > > 4. Modularity: since the script is self-contained, it is easy to > > replace it later without necessarily editing the original document. > > Yes as long as the namespace relationships are easy to track for > the author of the code but again, no worse than include files. I must say this was something that gave me the screaming fantods, when I realized that there seemed to be no way to track the namespace of a given Javascript function - I wanted to provide the name of the included file in a debug statement, but there is no difference between function tim() in one included Javascript from function tim() in another - the latest one is kept and all others blown away. For all practical intents and purposes, they may as well be one inline Javascript. There isn't even a simple package function like Perl has. > > The disadvantage is that management becomes difficult when there are > > dozens (or hundreds) of small code fragments rather than one large one > > That is the web in general, so folks are used to it. People are becoming more and more aware of the enormous cost involved, however. Saying Web folks are just "used to it" is adding to an already ridiculous burden. S -- "All the good geek things, | schampeo@h... only without all the | http://a.jaundicedeye.com bad geek things." | http://hesketh.com/schampeo/ xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i... Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ To (un)subscribe, mailto:majordomo@i... the following message; (un)subscribe xml-dev To subscribe to the digests, mailto:majordomo@i... the following message; subscribe xml-dev-digest List coordinator, Henry Rzepa (mailto:rzepa@i...)
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|