[Seaside] fileUploadWithCallback overriding name attribute

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


Sorry, missed the fact that #fileUploadWithCallback: doesn't call 
#inputWithType: but #inputWithType:named: like this:

self
	inputWithType: 'file'
	named: (self callbacks registerCallback: [:f | aBlock value: (f = '' 
ifFalse: [f])])

So it seems the name attribute is used for some Seaside internal 
handling of the input.
Is there any way to override the attribute? Or any way to find out what 
name the input was given?

/Adde

On 2004-09-18, at 11.43, 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).
> It should check in #inputWithType: to see if the name attribute is 
> set, now it just forwards name: nil to #inputWithType:named:.
>
> html attributes at: 'name' put: 'filechooser'.
> html fileUploadWithCallback: [:file | ].
>
> /Adde
>
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/listinfo/seaside



More information about the Seaside mailing list