JonathanG6SWJ
Programmer
Help! I'm struugling with ASP/VBScript/JavaScript.
I am desinging a web page that will collect responses to a questionnaire. The question text and answers are stored in a mySql DB. As the user completes the questionnaire the page needs to be dynamically redrawn getting next block of questions from the DB and store the responses just made.
I'm pretty much OK with how to do the above! (I'll eat my hat later)but I want to reuse blocks of HTML code used to draw a table using new updated variable data of output from DB. I need to place a section header before a block of questions (section will all be different sizes)
So if you're still awake --- my basic question is how to reuse blocks of HTML including some asp without rewriting text for a second time. Can I call a subroutine with a mix of asp & html ?
I am desinging a web page that will collect responses to a questionnaire. The question text and answers are stored in a mySql DB. As the user completes the questionnaire the page needs to be dynamically redrawn getting next block of questions from the DB and store the responses just made.
I'm pretty much OK with how to do the above! (I'll eat my hat later)but I want to reuse blocks of HTML code used to draw a table using new updated variable data of output from DB. I need to place a section header before a block of questions (section will all be different sizes)
So if you're still awake --- my basic question is how to reuse blocks of HTML including some asp without rewriting text for a second time. Can I call a subroutine with a mix of asp & html ?