An example: I have a select input. I wanna catch those onclick events
which is not a onchange events. How to implement it?
And in general, there's some basic kinds of events, and I wanna catch
the events which is a composition of the basic events. How to?
Where can I find some examples£¿ 5 1832
sleepinglord said the following on 5/7/2006 9:58 PM: An example: I have a select input. I wanna catch those onclick events which is not a onchange events. How to implement it?
What is the event you want to catch?
And in general, there's some basic kinds of events, and I wanna catch the events which is a composition of the basic events. How to?
What composition of events? You basically catch one and then catch
another, but the second is dependent on the first.
Where can I find some examples£¿
Examples of what?
--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
sleepinglord wrote: An example: I have a select input. I wanna catch those onclick events which is not a onchange events. How to implement it?
And in general, there's some basic kinds of events, and I wanna catch the events which is a composition of the basic events. How to?
Where can I find some examples£¿
You should probably start with the Mozilla Gecko DOM reference - it has
examples and links to the relevant parts of the specification:
<URL:http://developer.mozil la.org/en/docs/DOM:element#Eve nt_Handlers>
You could also look at quirksmode for some differences between the IE
and W3C event models (there are several pages):
<URL:http://www.quirksmode. org/js/introevents.htm l>
--
Rob
What is the event you want to catch?
I wanna catch the event which is an onclick event but not an onchange
event.
What composition of events? You basically catch one and then catch
another, but the second is dependent on the first.
Suppose there're 3 kinds of event, onA, onB, onC;
For example, I wanna do something when onA and onB happen, but onC not.
Such a situation is what I called events composition. It's just like s
logical operation on those events.
And In general. How to implement such operations?
sleepinglord said the following on 5/8/2006 4:48 AM:
Your quoting style leaves some to be desired.
If you want to post a followup via groups.google.c om, don't use the
"Reply" link at the bottom of the article. Click on "show options" at
the top of the article, then click on the "Reply" at the bottom of the
article headers.
<URL: http://www.safalra.com/special/googlegroupsreply/ >
<quoting fixed best as I care to fix it> Randy Webb said the following on 5/8/2006 12:04 AM: What is the event you want to catch? I wanna catch the event which is an onclick event but not an onchange event.
You can't with a select list. You can catch it in Mozilla and Opera by
adding an onclick to the Option but IE doesn't support onclick of the
Option or Select. What composition of events? You basically catch one and then catch another, but the second is dependent on the first.
Suppose there're 3 kinds of event, onA, onB, onC; For example, I wanna do something when onA and onB happen, but onC not. Such a situation is what I called events composition. It's just like s logical operation on those events.
onchange="var myChange=true;a lert('onchange fired')"
onclick="if (!myChange){ale rt('Click without change'}
else{alert('Cli ck with Change')"
That would be the basic idea. You set a variable for each event handler
and check that variable in other events.
--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Thanks a lot!
Randy Webb 写é“: sleepinglord said the following on 5/8/2006 4:48 AM:
Your quoting style leaves some to be desired.
If you want to post a followup via groups.google.c om, don't use the "Reply" link at the bottom of the article. Click on "show options" at the top of the article, then click on the "Reply" at the bottom of the article headers.
<URL: http://www.safalra.com/special/googlegroupsreply/ >
<quoting fixed best as I care to fix it>
Randy Webb said the following on 5/8/2006 12:04 AM: What is the event you want to catch? I wanna catch the event which is an onclick event but not an onchange event.
You can't with a select list. You can catch it in Mozilla and Opera by adding an onclick to the Option but IE doesn't support onclick of the Option or Select.
What composition of events? You basically catch one and then catch another, but the second is dependent on the first.
Suppose there're 3 kinds of event, onA, onB, onC; For example, I wanna do something when onA and onB happen, but onC not. Such a situation is what I called events composition. It's just like s logical operation on those events.
onchange="var myChange=true;a lert('onchange fired')" onclick="if (!myChange){ale rt('Click without change'} else{alert('Cli ck with Change')"
That would be the basic idea. You set a variable for each event handler and check that variable in other events.
-- Randy comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: serge calderara |
last post by:
Dear all,
I have a class wich is raising events as normally it
should do. having a form in the same assembly wich is
catching those events works fne. Raise events gets catch
normaly within the form and I can process what I want
based on them.
If I try to catch raised events by this class but within a
form located in a different assembly, I am not able to
|
by: Steve Drake |
last post by:
Hello,
Sorry if this is the wrong groups, I couldn't see an obvious group for this
question.
I have written a BHO in C#, catch IE events but I cannot find away to make
it catch WEBDAV events.
I open my website, I can see the events being processed, I navigate to the
WEBDAV (via httpFolder) and the events stop.
|
by: Todd Schinell |
last post by:
Back in July, Jeffery Tan posted this:
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=OWOTdf0VDHA.2296%40cpmsftngxa06.phx.gbl
In response as to how to get click events from a user control to
invoke a method in the parent form.
This code doesn't seem to work for me, I've tried it a number of times
with very simple test cases (A user control with a single button and a
parent form with a single text box) and it always...
|
by: Jon Davis |
last post by:
The garbage handler in the .NET framework is handy. When objects fall out of
scope, they are automatically destroyed, and the programmer doesn't have to
worry about deallocating the memory space for those objects. In fact, all
the programmer has to worry about is the total sum of objects loaded into
RAM at any known point. Memory leaks are not a problem.
.... So one would like to think. The reality is that delegates and event...
|
by: Steve Hershoff |
last post by:
Hi everyone,
I've got a strange one here. There are two datagrids on my page, one nested
within the other. I'll refer to them as the topmost and secondary
datagrids.
In the topmost datagrid's OnItemDataBound() method we check for the row in
which it's appropriate to add the secondary datagrid. Exactly one row in
the topmost grid will contain the secondary grid.
| |
by: MikeK |
last post by:
Ok, I've been noodling with this for several days now and I'm starting
to go crazy. Does Apple's Safari browser support drag events on
Textarea elements? The few specs and docs I've found seem to indicate
that it does but I can't get it to work for the life of me. I've tired
everything I can think of to try get notifications for the events:
ondragenter
ondragleave
ondragover
ondrop
|
by: Vivien Parlat |
last post by:
Hello,
I'm trying to create (for tests purpose) a small Fiddler-like, a form
containing a webBrowser and a textbox which displays every internal
event of this web browser. I am not trying to hook keyboard nor mouse
events, I am interested in all events relative to webbrowser while
browsing the web.
I can affect manually the same event handler to all events, but I mind
there is a smarter solution. I could get all handled events list...
|
by: randy.buchholz |
last post by:
I am trying to capture event exceptions using try/catch.
I can get all exceptions with:
protected void dv_PR_ItemInserted(object sender,
DetailsViewInsertedEventArgs e)
{
if (e.Exception != null)
{
lbl_Errors.Text = e.Exception.Message.ToString();
e.ExceptionHandled = true;
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
| |
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |