Results 1 to 5 of 5

Thread: Event Listeners in programming

  1. #1
    Join Date
    Dec 2010
    Posts
    38

    Event Listeners in programming

    Hello my friends , I am really very impressed about this forum and the question being covered in this forums as it is not just restricted to a certain area and expertise , so I too have an question that has something to do with the programming stuffs and I will appreciate if you could tell me about the event driven programming and I have heard there are interfaces are there if you talked about the events , if you have any sort of knowledge on this then please do not hesitate to share with me.

  2. #2
    Join Date
    May 2009
    Posts
    637

    Re: Event Listeners in programming

    If you want to learn about the programming then I think you should learn the basic things first such as the data types and the manipulations being done with the help of basic calculation , then jump to the event driven programming . This event driven programming depend on the event such as click event or double click or button press event, you will have to write codes on their related procedures and then work accordingly. If talked about Java to have an event driven task it makes use of event listeners.

  3. #3
    Join Date
    May 2009
    Posts
    511

    Re: Event Listeners in programming

    Adding a typical DOM event listener to a web page is reasonably simple Javascript. The first thing we require to think is that not all browsers support this up till now so we will want to include a test to see if this "characteristic" is supported. Here is an example that shows a brief example that will give you the idea about the event listener .

    Code:
    var a = document.getElementById('myarea');
    if (a.addEventListener)
    a.addEventListener('keyup',eventkeyup,false );

  4. #4
    Join Date
    May 2009
    Posts
    543

    Re: Event Listeners in programming

    I will comment on the example given above . This code appends an event listener to the object in the web page recognized by the id 'myarea' (given that the web browser supports event listeners). The action that the event listener is triggered by in this example is a keyup event. Make a note that when we utilize event listeners we do not append the word on to the front the way that we did with conventional event handlers.

  5. #5
    Join Date
    May 2009
    Posts
    637

    Re: Event Listeners in programming

    When this event listener accepts a keyup event in the mentioned example it invokes the eventkeyup() method . Note that we do not comprise the parentheses in the program here because we do not wish the method to execute straight away. This does not much differ from the method that we left off the parentheses while using the conventional Javascript method of event handling such as the init method .

Similar Threads

  1. What is event handling in the java programming?
    By rashmi_ay in forum Software Development
    Replies: 3
    Last Post: 09-12-2009, 02:01 PM
  2. Socket programming: Is any new Programming Language?
    By Kushan in forum Software Development
    Replies: 3
    Last Post: 14-11-2009, 11:13 AM
  3. Replies: 3
    Last Post: 13-12-2008, 01:49 PM
  4. Event ID: 5721 Event Source: NETLOGON member server windows 2003
    By Edwin Delgado in forum Windows Server Help
    Replies: 1
    Last Post: 08-09-2007, 12:41 AM
  5. Event Log Error: Event Source:WinMgmt Event ID:10
    By BlackSunReyes in forum Small Business Server
    Replies: 2
    Last Post: 01-03-2007, 03:27 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,715,508,272.92832 seconds with 17 queries