What you have pasted is similar to the methods I have taken in the past for
this. One could however use something like DWRUtil that comes with ajaxCFC,
here is a quick example I made via one of his online ones. I did not test
it out extensively, was just trying to throw out an option that I had been
thinking of using the next time I have a similar need.
<head>
<title>example</title>
<script type='text/javascript'>_ajaxConfig =
{'_jsscriptFolder':'JS/ajaxCFC'};</script>
<script type='text/javascript' src='JS/ajaxCFC/ajax.js'></script>
<script type="text/javascript">
var cellFuncs = [
function(data) { return '<label for="document_' + counter + '">Document
<span class="Error">*</span>:</label>' },
function(data) { return '<input type="file" name="document_' + counter +
'" value="" size="30" />' }
];
var counter = 1;
function getTableRow() {
DWRUtil.addRows("tableBody", [''], cellFuncs);
counter++
}
</script>
</head>
<fieldset>
<legend>example using DWRUtil.addRows</legend>
<input type="button" value="Test" onClick="getTableRow();" /><br />
<table>
<tbody id="tableBody"></tbody>
</table>
</fieldset>
On 8/25/06, Bobby Hartsfield <[EMAIL PROTECTED]> wrote:
>
> Paste all of this in a .html file and run it. Click the [Add another Image
> Uploader] link to add more fields. I would of course limit this to a
> maximum
> number of images at once. (way less than 10) To upload multiple images at
> one time without worrying about timeouts youll have to look into something
> like ActiveX controls
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
http://www.fusionauthority.com/quarterly
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:251255
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4