Prev: How to speed this up?
Next: AddWindowsPrinterConnection, but the mapping is NOT stored inthe user profile
From: MarceepooNu on 11 Mar 2010 09:02 Thank you. This too is a very helpful way to acquire the info. It's noteworthy (I think...) that the event info is an html dependent functionality, instead of being directly accessable through vbscript and Windows. (I hope what I just said so confidently isn't stupid/ignorant/wrong, and the product of ignorance, i.e., the fact that I have never coded any script to use an event object. Apparently, now's the time to learn... It is so much fun to feel one's abilities blossom through the collaborative help you guys provide in these newsgroups! Today, I'm going to start trying to make a habit of trying to do a small part of what you guys do, i.e., by posting answers to the ocassional really simple questions I can answer, to help others who know less than I. thanks again. marc -- MarceepooNu "Alex Blekhman" wrote: > In addition to the previous answer. > > You can always examine the `event' object within you event handler > function. `event' object has fromElement attribute, which is the > reference to an element that activated the event. > > Alex > > . >
From: MarceepooNu on 11 Mar 2010 09:05
thank you. Very helpful. marc -- MarceepooNu "Tom Lavedas" wrote: > On Mar 9, 1:11 pm, "Alex Blekhman" <tkfx.REM...(a)yahoo.com> wrote: > > In addition to the previous answer. > > > > You can always examine the `event' object within you event handler > > function. `event' object has fromElement attribute, which is the > > reference to an element that activated the event. > > > > Alex > > I tend to use srcElement, instead. As I read it, fromElement is > activated when the thing that triggered the event is leaving the > element, where as srcElement occurs at the initiation of the event. > It may seem like a subtle difference, but it seems more intuitive to > me to work with the leading edge of an event than the trailing edge. > Though, I'm sure there are reasons to use each approach. > _____________________ > Tom Lavedas > . > |