Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How to use hidden buttons

Posted on 2008-06-18
5
175 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
.NET 2008 VB and C# 6 39
Change to file doesn't show up 16 51
how to just get time from a date 6 32
How can I do Unit Testing with Session ? 1 4
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…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

809 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