A while back, I asked for some help with dynamic form creation. I wanted a user to be able to enter into a text field how many designs he or she would like, then, based on that number, be provided with a pair of text boxes that asked 1) name of design 2) quantity of that particular design.
I received this cool way of doing it by user thraddash :
<head>
<script type="text/javascript">
function BuildFormFields($amount)
{
var
$container = document.getElementById('FormFields'),
$item, $field, $i;
Using a '$' in scripting can create side effects if a JavaScript library is used. All libraries use it as a special meaning.
Also the iteration used in the name attributes is probably unnecessary as php will see Quantity[] as an array.
At least 98% of internet users' DNA is identical to that of chimpanzees
Since the files being transferred are pretty heavy (60 - 80 mb), I thought I'd incorporate a progress bar so the user will know something is happening. I was under the impression that Ajax was necessary for that back-and-forth communication so the progress bar would know what amount of the file had been received in order to change it's level of completion.
Bookmarks