Solved

How to use hidden buttons

Posted on 2008-06-18
5
174 Views
Last Modified: 2013-12-16
I have an inputbox class and I want to be able to submit the information using the

myform.acceptbutton = myform.mybutton

Hitting the enter key automatically will submit the information, but it doesn't work when the button is hidden or not visible.  I was wondering if there was a way to use the button when it is hidden.  Thank you.
0
Comment
Question by:Nitinol
  • 3
5 Comments
 
LVL 16

Expert Comment

by:burakiewicz
ID: 21817367
Turn key preview on and You can check if the user hit the enter key and then call the buttonclick or method from there
like myform.mybutton.click();
0
 

Author Comment

by:Nitinol
ID: 21817538
hmm...I'll get back to you and see if it works, thanks.
0
 

Author Comment

by:Nitinol
ID: 21817592
nope, the events are not methods, so that won't work.  I might just work something out with the onkeypress event handler instead of using the button.  I need, however, to get a dialogue result.

further help would be much appreciated.
0
 

Accepted Solution

by:
Nitinol earned 0 total points
ID: 21818173
I found an alternate solution using keypress event handler
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

806 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question