[Seaside] fileUploadWithCallback overriding name attribute

Andreas Nilsson wahboh at mac.com
Sat Sep 18 16:44:48 CEST 2004


No, it's only one file input for now, but I didn't even know you could 
use CSS ID's in that way.
Thanks!

/Adde

On 2004-09-18, at 11.59, Kamil Kukura wrote:

> Andreas Nilsson wrote:
>> I'm trying to name a file input to be able to reference it from 
>> JavaScript, but Seaside seems to be overriding my name (it places 
>> name="3" after my name attribute).
>
> Do you have multiple file inputs on one page? It's better to assign id 
> attribute as unique reference:
>
>    html cssId: 'myfile'; fileUploadWithCallback: [...]
>
> and then reference it from javascript:
>
>    document.getElementById("myfile");
>
> And keep uniqueness of assigned id names.
>
> -- 
> Kamil
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/listinfo/seaside



More information about the Seaside mailing list