Discussion Locked

invisible submit button onload of form

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

HEllo All

I have perpared 1 asp documents which has 2 forms

1 st form is frequently populated on submit for asking data to user.

2 nd form is called on if conditon (this form will be called when two variables of form 1 will reduce to zero.
now i want: ON the load of 2nd form the submit button of 1st form to be invisible.

2 replies

by johnfriz

I am a bit confused with the code that you have provided.

You seem to have 2 tags on the one page??

What I would sugest is that you do the if statement before adding the button.

Only if the varaibles form form 1 are 0 will the button be displayed. Otherwise, the report is displayed.

Based on what you have given, I have done my best to change your code to explain what I mean...

(End the first form)

(end the new form)

<%else%>

by parkin_thom

I think John did not completely understand your question.
I can see that you displayed BOTH pages together. And, it appears you are on the right track.
I would suggest that instead of using onLoad of the body you should use onBlur(). This event is fired when the page is no longer the focus. So, when your other form pops-up, the button visibility would be turned off.

THOM
twice21.com

This discussion is closed to new replies.