Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 954537
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T00:13:51+00:00 2026-05-16T00:13:51+00:00

Note: The answer marked as the answer, answers the questions in the Title. However,

  • 0

Note: The answer marked as the answer, answers the questions in the Title. However, my underlying problem, using type ahead dropdowns, is solved by moving to IE8.

I have a drop down list that when I CLICK a NEW selection I want to cause a postback (“this.form.submit()”) But only if the click on the dropdown list just changed the selection.

Note that OnChange will NOT work because when the selection is changed by the keyboard I would not want to postback because it is a type ahead dropdown list.

I also suppose I could use OnChange and check if the change was caused by the mouse.

Maybe if we can come up with both solutions and i’ll see which works better?

Thanks so much for your help!!!!!

EDIT: More information:

AutoPostback = true; will not work. (don’t want it to post back when the selection is changed by the keyboard)

onBlur = doPostBack; I tried this, but the result is not optimal. The user has to click off the ddl after making a selection with the mouse.

Another way to state what I want to do, i think, is do a postback when both the OnChange and OnClick events fire at the same time.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T00:13:52+00:00Added an answer on May 16, 2026 at 12:13 am

    On the OnClick event I have javascript that sets the ddl.value = true;

    On the OnChange event I check to see if ddl.Value = true if so I postback and set it to false.

    On the OnKeyDown I set ddl.Value = false so that when I click on the ddl it only posts back if I change the selection with the mouse, if I press a key to use the type-ahead-feature it will not postback.

    Not the most elegant solution but it works and you have to give me creadit for creativity.

    Note: This solution work in combination with a script that fires on OnKeyDown that runs the type-ahead-ddl(ie. moves you to the closest selection when you press a key) and postsback when you press enter.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Note: Originally this question was asked for PostgreSQL, however, the answer applies to almost
Note: A detailed answer to the more general problem is in Stack Overflow question
Note: I'm posing this question to answer it myself, but other answers are welcome.
NOTE: XMLIgnore is NOT the answer! OK, so following on from my question on
Note This is not a REBOL-specific question. You can answer it in any language.
Moderator note: This question is not a good fit for our question and answer
NOTE: I am not set on using VI, it is just the first thing
I would like to have questions marked as Edited, but I dont know what
Note: This is a follow-up to an answer on a previous question . I'm
NOTE: Before you read on or provide an answer, I know about Enumerable.Distinct ,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.