View Full Version : Disable form
BrockLesnar
02-17-2005, 06:55 PM
I have 2 forms.
In form1, when the menu about button is clicked, I want to display form 2 and disable form1 until form2 is closed.
I figured out how to open form2 but how do i disable form1?
miranda
02-17-2005, 10:40 PM
In.Net this is sooo much easier. Anyway, Have you tried to hide form1 until form2 button is clicked thus making it not visible? or disabling each individual form item on the click and enabling them on the other click? These can be done with both Javascript on the client and VBScript on the server. I think client side would be much less code though. To do so on the server make the 2nd form postback to the page. Assign a value to the form button and look for that value by using the request object. If the value is there then reverse what you did earlier.
tboss132
02-18-2005, 10:00 AM
Disable form1 until form2 is closed.
What do you have? An ASP page or a VB application? Please be more specific because i don't see how you can have 2 forms on the same page and close 1.
miranda
02-18-2005, 10:42 AM
Multiple forms on a page is easy. the action attribute of each form generates where the form is going to be submitted. each form would have it's own submit button though.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.