Skip to Content
author's profile photo Former Member
Former Member

HTML dropdown listbox selection + "onInputProcessing" event handler

Hello,

I use a HTML dropdown listbox to select a value. Some elements in the page must be updated without using any submit button. To do this, I use some JavaScript code.

But then I have a problem. I need to pass in the "onInputProcessing" event handler.

Any idea on how to do that (without using HTMLB)?

Thanks and best regards.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 20, 2004 at 03:10 PM

    Hello again,

    I asked too early. I've found the answer a few minutes later.

    If someone is interested, all you have to do is to create an hidden field like this one:

    <input type="hidden" name="onInputProcessing(an_event)"/>

    Then every "submit" of the form will cause entering the "onInputProcessing" event handler. But it seems that it doesn't work if you also give some submit button of your page the name "onInputProcessing([something])".

    Then to know which event was fired all you have to do is to use another hidden field to pass a string value that identifies the event.

    In your JavaScript, fill this value and submit the form and the work is done.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.