Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

How do I make an ADOMEvent?

2 posts in General Discussion Last posting was on 2005-07-27 00:22:20.0Z
Dave Wilson Posted on 2005-07-25 23:36:57.0Z
From: Dave Wilson <murrgon@hotmail.com>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: ianywhere.public.mbusinessanywhere.general
Subject: How do I make an ADOMEvent?
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Original-NNTP-Posting-Host: i216-58-91-253.igs.net
Message-ID: <42e57795$1@forums-2-dub>
X-Original-Trace: 25 Jul 2005 16:36:53 -0700, i216-58-91-253.igs.net
Lines: 6
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 25 Jul 2005 16:36:54 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 25 Jul 2005 16:36:57 -0700
X-Trace: forums-1-dub 1122334617 10.22.108.75 (25 Jul 2005 16:36:57 -0700)
X-Original-Trace: 25 Jul 2005 16:36:57 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:483
Article PK: 8904

I want to call the PODSdispatchEvent() function and one of
the parameters is an ADOMEvent. How do I create/obtain one
of these? There is nothing in the documentation on how to
make one. Thank you.

Dave


Chris Grim Posted on 2005-07-27 00:22:20.0Z
User-Agent: Microsoft-Entourage/11.1.0.040913
Subject: Re: How do I make an ADOMEvent?
From: Chris Grim <chrisgrim@hotmail.com>
Newsgroups: ianywhere.public.mbusinessanywhere.general
Message-ID: <BF0C21D6.14C1%chrisgrim@hotmail.com>
References: <42e57795$1@forums-2-dub>
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
X-Original-NNTP-Posting-Host: 10.22.46.251
X-Original-Trace: 26 Jul 2005 17:22:15 -0700, 10.22.46.251
Lines: 40
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 26 Jul 2005 17:22:18 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 26 Jul 2005 17:22:20 -0700
X-Trace: forums-1-dub 1122423740 10.22.108.75 (26 Jul 2005 17:22:20 -0700)
X-Original-Trace: 26 Jul 2005 17:22:20 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:485
Article PK: 8908

Dave,

What exactly are you trying to do? You can get the current event in
JavaScript with window.event, or in C with PODSgetEvent(PODSWindow* window).

I did test that the doc for this and in JavaScript, the event parameter is
optional. You can do something like this with dispatchEvent:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Event Test</title>
<meta name="generator" content="BBEdit 7.1.4">
<meta name="handheldfriendly" content="true">
</head>
<body onClick="alert('window');">
<input type="button" value="Click Me"
onClick="window.dispatchEvent('Click');">
</body>
</html>

Basically, click on the button and the body's onClick event will fire. The
type parameter is a string that is basically the event after the "on" part
of the handler, and this should work for events handlers that you have
registered as well, but I didn't test it.

Chris...

On 7/25/05 4:36 PM, in article 42e57795$1@forums-2-dub, "Dave Wilson"

<murrgon@hotmail.com> wrote:

> I want to call the PODSdispatchEvent() function and one of
> the parameters is an ADOMEvent. How do I create/obtain one
> of these? There is nothing in the documentation on how to
> make one. Thank you.
>
> Dave