would any of you be interested in this?
-
I have built an amazingly functional form control for web applications that build their front end using JScript. Basically, it allows you to build a full-featured, completely customisable form with fully configurable validation and error checking. You set up the javascript that is executed when they hit save or cancel, or add your own extra buttons to do what you want when they are pressed. You can have togglable sub-areas that only become visible when a certain field has a certain value in it, for example if a certain checkbox is checked, an extra set of fields becomes visible. The control will generate an xml object containing all of the data in the form and also specify in each node what the data type is (string, date or number). I also have a back end ASP script that you can pass the XML form to and it will automatically update a database table for you if you set up the form correctly. The form code is object-oriented, so you can easily derive your own types of fields to include in a form. I recently created a field object to allow the user to select any Australian suburb. Take a look at a form I have set up with this control: http://www.hep10.com/internal/form.gif[^] If any of you think this would (or wouldn't) be a useful contribution to The Code Project, please let me know before I spend a whole lot of time fixing up the code to be submitted as an article here. I find this extremely useful in rapidly putting together forms in my application as I don't have to write any form validation code, I don't have to create any back end code for processing the form contents, and I can rapidly build large forms with ease. Obviously this would not be useful for someone developing a form the standard way, i.e. with an HTML form tag and a submit button. Although, I suppose you could do some sort of roundabout trick where when they hit "Save" and then form-post the generated xml to the next page? Anyway, your thoughts are welcome. NATHAN RIDLEY Web Application Developer generalgherkin@yahoo.com
-
I have built an amazingly functional form control for web applications that build their front end using JScript. Basically, it allows you to build a full-featured, completely customisable form with fully configurable validation and error checking. You set up the javascript that is executed when they hit save or cancel, or add your own extra buttons to do what you want when they are pressed. You can have togglable sub-areas that only become visible when a certain field has a certain value in it, for example if a certain checkbox is checked, an extra set of fields becomes visible. The control will generate an xml object containing all of the data in the form and also specify in each node what the data type is (string, date or number). I also have a back end ASP script that you can pass the XML form to and it will automatically update a database table for you if you set up the form correctly. The form code is object-oriented, so you can easily derive your own types of fields to include in a form. I recently created a field object to allow the user to select any Australian suburb. Take a look at a form I have set up with this control: http://www.hep10.com/internal/form.gif[^] If any of you think this would (or wouldn't) be a useful contribution to The Code Project, please let me know before I spend a whole lot of time fixing up the code to be submitted as an article here. I find this extremely useful in rapidly putting together forms in my application as I don't have to write any form validation code, I don't have to create any back end code for processing the form contents, and I can rapidly build large forms with ease. Obviously this would not be useful for someone developing a form the standard way, i.e. with an HTML form tag and a submit button. Although, I suppose you could do some sort of roundabout trick where when they hit "Save" and then form-post the generated xml to the next page? Anyway, your thoughts are welcome. NATHAN RIDLEY Web Application Developer generalgherkin@yahoo.com
Sounds very article worthy to me. By all means write it up. -- -Blake (com/bcdev/blake)
-
I have built an amazingly functional form control for web applications that build their front end using JScript. Basically, it allows you to build a full-featured, completely customisable form with fully configurable validation and error checking. You set up the javascript that is executed when they hit save or cancel, or add your own extra buttons to do what you want when they are pressed. You can have togglable sub-areas that only become visible when a certain field has a certain value in it, for example if a certain checkbox is checked, an extra set of fields becomes visible. The control will generate an xml object containing all of the data in the form and also specify in each node what the data type is (string, date or number). I also have a back end ASP script that you can pass the XML form to and it will automatically update a database table for you if you set up the form correctly. The form code is object-oriented, so you can easily derive your own types of fields to include in a form. I recently created a field object to allow the user to select any Australian suburb. Take a look at a form I have set up with this control: http://www.hep10.com/internal/form.gif[^] If any of you think this would (or wouldn't) be a useful contribution to The Code Project, please let me know before I spend a whole lot of time fixing up the code to be submitted as an article here. I find this extremely useful in rapidly putting together forms in my application as I don't have to write any form validation code, I don't have to create any back end code for processing the form contents, and I can rapidly build large forms with ease. Obviously this would not be useful for someone developing a form the standard way, i.e. with an HTML form tag and a submit button. Although, I suppose you could do some sort of roundabout trick where when they hit "Save" and then form-post the generated xml to the next page? Anyway, your thoughts are welcome. NATHAN RIDLEY Web Application Developer generalgherkin@yahoo.com
I think it would make for a good article! Nathan Ridley wrote: I also have a back end ASP script that you can pass the XML form to and it will automatically update a database table for you if you set up the form correctly. This one I would question. There would have to be validation on the part of the server to protect it from hacks or plain transmittion errors. You would not want the data to go directly into a database without validation on the server. On question that comes to mind is how any business logic could be applied if it goes directly to the database? Rocky Moore <><
-
I have built an amazingly functional form control for web applications that build their front end using JScript. Basically, it allows you to build a full-featured, completely customisable form with fully configurable validation and error checking. You set up the javascript that is executed when they hit save or cancel, or add your own extra buttons to do what you want when they are pressed. You can have togglable sub-areas that only become visible when a certain field has a certain value in it, for example if a certain checkbox is checked, an extra set of fields becomes visible. The control will generate an xml object containing all of the data in the form and also specify in each node what the data type is (string, date or number). I also have a back end ASP script that you can pass the XML form to and it will automatically update a database table for you if you set up the form correctly. The form code is object-oriented, so you can easily derive your own types of fields to include in a form. I recently created a field object to allow the user to select any Australian suburb. Take a look at a form I have set up with this control: http://www.hep10.com/internal/form.gif[^] If any of you think this would (or wouldn't) be a useful contribution to The Code Project, please let me know before I spend a whole lot of time fixing up the code to be submitted as an article here. I find this extremely useful in rapidly putting together forms in my application as I don't have to write any form validation code, I don't have to create any back end code for processing the form contents, and I can rapidly build large forms with ease. Obviously this would not be useful for someone developing a form the standard way, i.e. with an HTML form tag and a submit button. Although, I suppose you could do some sort of roundabout trick where when they hit "Save" and then form-post the generated xml to the next page? Anyway, your thoughts are welcome. NATHAN RIDLEY Web Application Developer generalgherkin@yahoo.com
Nathan, Nice looking screen shot and idea. And just for fun you may want to check out this semi-related open source thing: GenericDB by Eli Robillard http://www.genericdb.com and then click on the Tips link to see an example Best regards, J. Paul Schmidt, Freelance ASP Web Developer www.Bullschmidt.com ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...
-
Nathan, Nice looking screen shot and idea. And just for fun you may want to check out this semi-related open source thing: GenericDB by Eli Robillard http://www.genericdb.com and then click on the Tips link to see an example Best regards, J. Paul Schmidt, Freelance ASP Web Developer www.Bullschmidt.com ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...