Page: ccstep2.asp
After a lot of time spent trying to figure out how to make the second step of character creation work I got a great idea: just have the form control content.
The biggest issue was making sure that all the changes got entered correctly into the database. I was using a bunch of tricks to compare data to the db, update the entries that needed updating...etc. When it occurred to me: I already have the form validating the data and comparing to the database why do I need to compare to the DB during SQL submission. I changed all the dynamic text to dynamic form fields, restored their names and then processed all the fields as if they had good data. This could bite me in the ass, but I think I have enough controls to make it work. The best part was that I already had most of the code I needed on page 1. Now I also have almost all the code I need for page two. The javascript validations are bunk because there is a whole new set of validation but less fields to check. Fields like gen are moot. I still have to put clan advantages into the DB, but it's getting there.
Showing posts with label websites. Show all posts
Showing posts with label websites. Show all posts
Monday, May 4, 2009
Character Creation Step 2 complete
Labels:
asp,
coding,
ent,
html,
javascript,
vbscript,
web design,
websites,
xml
The next iteration
I haven't used this blog for a long time.
I got involved in facebook which took focus away from my secondary blog. I think I will use this, at least for a little while, to chronicle my web coding work for ENT.
So, let see. First the site is:
http://www.elysiumnightstheater.com
The site is entire under development but the goal is to, eventually, have almost all the content as editable, no static content what-so-ever.
This will be made harder by the fact that some content just can't be put into a database. The best solution for that is going to be XML docs that feed the ASP pages. This isn't bad, but I think most of the content that is difficult to update will probably end up in a site-installed wiki.
More to follow....
I got involved in facebook which took focus away from my secondary blog. I think I will use this, at least for a little while, to chronicle my web coding work for ENT.
So, let see. First the site is:
http://www.elysiumnightstheater.com
The site is entire under development but the goal is to, eventually, have almost all the content as editable, no static content what-so-ever.
This will be made harder by the fact that some content just can't be put into a database. The best solution for that is going to be XML docs that feed the ASP pages. This isn't bad, but I think most of the content that is difficult to update will probably end up in a site-installed wiki.
More to follow....
Subscribe to:
Posts (Atom)