[Javascript] dynamically setting the value for a file select element
David T. Lovering
dlovering at gazos.com
Mon Sep 22 10:08:33 CDT 2003
My notes show that only a signed script can do this, and only on fairly recent (patched) browsers. Of course, this may be "forward-thinking" (aka "smoke-and-mirrors") on the part of M$oft, as many of these "enhancements" announced last year have still to
be implemented. I don't know about Mozilla et al, as I'm not privy to their developer's lists.
God knows, M$oft doesn't need to create any more security holes in their browser (IE) -- it looks like a sieve now!
-- Dave Lovering
Geoff Corriere wrote:
>
> Hello,
>
> I have a form that users fill out to order products. Prior to
> submitting the form to place the order, the form gets submitted in
> order to calculate pricing. PHP handles the server side programming and
> kicks back the pricing, the form, and all the data the user entered to
> the same file that originally submitted the form. Any data the user
> previously entered into form fields (such as name & address) gets
> flowed into the form. This works fine with form elements such as text
> fields and radio selects.
>
> The problem I am having is with <input type="file"> elements. I have
> not figured out a way to dynamically set the value of the element. I
> cannot set the value of the element using PHP. And any attempts to set
> the value with JavaScript give me "Security errors" in Venkman's JS
> debugger.
>
> Any ideas on dynamically setting the value for a file select element?
>
> Thanks
> Geoff
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
More information about the Javascript
mailing list