This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes create new event Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "create new event" Watch "create new event" New topic
Author

create new event

Richard Sorhands
Greenhorn

Joined: Dec 23, 2005
Posts: 11
Hi,
can i create an event?
I have an html page in which is loaded an applet.
in this applet some events are fired. I want to catch these events in the javascript code. How can I do it?

thanks
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
try: http://www.rgagnon.com/javadetails/java-0172.html

Eric
Richard Sorhands
Greenhorn

Joined: Dec 23, 2005
Posts: 11
thank eric but this is only a method to communicate from an applet to javascript.
I have to create a new event in the javascript like "onClick" event but mine.

An example of javascript that I want:

<... onMyEvent = "doMyFunction();">

do you understand?
is this possible?
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Whoops,

I meant to post this link: http://www.raditha.com/java/mayscript.php

The example shows an JS function being called from an applet and the JS adding a message to the applet. Closest you probably will come.

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: create new event
 
Similar Threads
Is there another way to implement event listener (in general)?
Semantic Events
Left mouse can not generate mouse clikced and released events??
Writing Mouse Events
How to fire events ?