klipkop
Posts: 16
|
| Posted: 03/06/2007, 4:14 PM |
|
Hi
I am swamp with the different technologies available to do (which I think) is a simple function
We are busy building a survey system in CCS. BUT the actual survey will be an "offline" html form that will be mailed to the respondent, using the POST method (I know about all the compatibility problems but we have workarounds build in)
Problem
Each question uses a scale (e.g. 1 -10) represented by radio button groups. Some of the questionnaires have up to 60 questions (60 x 10 values = 600 unique lines!!)
Up to now we manually created the html form using find and replace.... How can I automate this process through some form of script?
Example
If I create a "base" html code and then insert the input value with a counter (1 to 10) and get the unique questionID from a table (e.g. |1960) in insert it into the html. See the example below.
<td class="expectation"><input value="1" name="|1960" type="radio">0</td>
<td class="expectation"><input value="2" name="|1960" type="radio">1</td>
<td class="expectation"><input value="3" name="|1960" type="radio">2</td>
Possible solutions
Is xml the answer, are there any API's available? Surely this must have been done before. I spend hours on the net looking for solutions but every link goes to code a generator that does not systematically replace the input values for controls. Maybe I'm missing basic stuff.
Any advise / direction will be appreciated.
|
 |
 |
|