Advertisement

Results for "Author: inet"

2002ASP #8278
How do I prevent a form from being submitted, until all required fields are correct ?

How do I prevent a form from being submitted, until all required fields are correct ? Only one field is used in the example. Every time the user clicks the OK button, the onClick event fires. If it passes the test the form will submit, else the focus will be placed on the textbox, an alert will appear and the submit button will be disabled, which stops the submit process. The onMouseMove event is used to enable the button again. I just added the error handling code in case an error comes up. It is actually not necessary, you can just enable the button again. I use the onControlSelect event on the submit button, because sometimes after being disabled, the button looks like it is embedded in the page. The above event fixes it. The above can be applied to multiple textboxes, and multiple conditions and arguments can be used. It saves time and space as the validation is done on the current page, before the form is submitted. Otherwise the user has to go through the laborious task of clicking the back button on the posting page to be redirected to the previous page, and fix a simple mistake. I've had comments that the JavaScript return false statement is a better solution. Unfortunately the return false; statement doesn't seem to work when you are using frames. I hope you find this usefull !.

2002ASP #8279
How to dynamically create a HTML table from an ADO recordset !.

Shows how to dynamically create a HTML table from a recordset. All you need is the connection string and the table name.

2002C #16882
How do I prevent a form from being submitted, until all required fields are correct ?

How do I prevent a form from being submitted, until all required fields are correct ? Only one field is used in the example. Every time the user clicks the OK button, the onClick event fires. If it passes the test the form will submit, else the focus will be placed on the textbox, an alert will appear and the submit button will be disabled, which stops the submit process. The onMouseMove event is used to enable the button again. I just added the error handling code in case an error comes up. It is actually not necessary, you can just enable the button again. I use the onControlSelect event on the submit button, because sometimes after being disabled, the button looks like it is embedded in the page. The above event fixes it. The above can be applied to multiple textboxes, and multiple conditions and arguments can be used. It saves time and space as the validation is done on the current page, before the form is submitted. Otherwise the user has to go through the laborious task of clicking the back button on the posting page to be redirected to the previous page, and fix a simple mistake. I've had comments that the JavaScript return false statement is a better solution. Unfortunately the return false; statement doesn't seem to work when you are using frames. I hope you find this usefull !.

2002C #16883
How to dynamically create a HTML table from an ADO recordset !.

Shows how to dynamically create a HTML table from a recordset. All you need is the connection string and the table name.

2002VB #25486
How do I prevent a form from being submitted, until all required fields are correct ?

How do I prevent a form from being submitted, until all required fields are correct ? Only one field is used in the example. Every time the user clicks the OK button, the onClick event fires. If it passes the test the form will submit, else the focus will be placed on the textbox, an alert will appear and the submit button will be disabled, which stops the submit process. The onMouseMove event is used to enable the button again. I just added the error handling code in case an error comes up. It is actually not necessary, you can just enable the button again. I use the onControlSelect event on the submit button, because sometimes after being disabled, the button looks like it is embedded in the page. The above event fixes it. The above can be applied to multiple textboxes, and multiple conditions and arguments can be used. It saves time and space as the validation is done on the current page, before the form is submitted. Otherwise the user has to go through the laborious task of clicking the back button on the posting page to be redirected to the previous page, and fix a simple mistake. I've had comments that the JavaScript return false statement is a better solution. Unfortunately the return false; statement doesn't seem to work when you are using frames. I hope you find this usefull !.

2002VB #25487
How to dynamically create a HTML table from an ADO recordset !.

Shows how to dynamically create a HTML table from a recordset. All you need is the connection string and the table name.

ASP_Volume2 #42009
How to dynamically create a HTML table from an ADO recordset !.

Shows how to dynamically create a HTML table from a recordset. All you need is the connection string and the table name.

C_Volume2 #83071
How to dynamically create a HTML table from an ADO recordset !.

Shows how to dynamically create a HTML table from a recordset. All you need is the connection string and the table name.

Java_Volume1 #101615
How to dynamically create a HTML table from an ADO recordset !.

Shows how to dynamically create a HTML table from a recordset. All you need is the connection string and the table name.

1_2002 #112240
How do I prevent a form from being submitted, until all required fields are correct ?

How do I prevent a form from being submitted, until all required fields are correct ? Only one field is used in the example. Every time the user clicks the OK button, the onClick event fires. If it passes the test the form will submit, else the focus will be placed on the textbox, an alert will appear and the submit button will be disabled, which stops the submit process. The onMouseMove event is used to enable the button again. I just added the error handling code in case an error comes up. It is actually not necessary, you can just enable the button again. I use the onControlSelect event on the submit button, because sometimes after being disabled, the button looks like it is embedded in the page. The above event fixes it. The above can be applied to multiple textboxes, and multiple conditions and arguments can be used. It saves time and space as the validation is done on the current page, before the form is submitted. Otherwise the user has to go through the laborious task of clicking the back button on the posting page to be redirected to the previous page, and fix a simple mistake. I've had comments that the JavaScript return false statement is a better solution. Unfortunately the return false; statement doesn't seem to work when you are using frames. I hope you find this usefull !.

1_2002 #112241
How to dynamically create a HTML table from an ADO recordset !.

Shows how to dynamically create a HTML table from a recordset. All you need is the connection string and the table name.

2_2002-2004 #128762
How to dynamically create a HTML table from an ADO recordset !.

Shows how to dynamically create a HTML table from a recordset. All you need is the connection string and the table name.

3_2004-2005 #147306
How to dynamically create a HTML table from an ADO recordset !.

Shows how to dynamically create a HTML table from a recordset. All you need is the connection string and the table name.

Languages
Top Categories
Global Discovery