Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to use hidden buttons

Posted on 2008-06-18
5
Medium Priority
?
182 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
[X]
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
  • 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

Tech or Treat! - Giveaway

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

618 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