[Seaside] Value of a fileUpload element?

Boris Popov boris at deepcovelabs.com
Wed Jan 14 21:25:23 UTC 2009


Looks like Gmail editor might soon replace all Smalltalk browsers...

-Boris

-- 
+1.604.689.0322
DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5
http://tinyurl.com/r7uw4

boris at deepcovelabs.com

CONFIDENTIALITY NOTICE

This email is intended only for the persons named in the message header.
Unless otherwise indicated, it contains information that is private and
confidential. If you have received it in error, please notify the sender
and delete the entire message including any attachments.

Thank you.
-----Original Message-----
From: seaside-bounces at lists.squeakfoundation.org
[mailto:seaside-bounces at lists.squeakfoundation.org] On Behalf Of Jan van
de Sandt
Sent: Wednesday, January 14, 2009 1:22 PM
To: Seaside - general discussion
Subject: Re: [Seaside] Value of a fileUpload element?

Yes, this works great. Thanks!

Cheers,
Jan.


On Wed, Jan 14, 2009 at 9:54 PM, Lukas Renggli <renggli at gmail.com>
wrote:


	> But for me this is only half the solution. Based on that value
I need to
	> update the values of some hidden input fields in the same
form. How can I
	> add the ajax update in the same onChange code?
	
	
	Try something along the following untested code (just wrote it
here in Gmail):
	

	>             html paragraph: [
	>                 html fileUpload
	>                     name: 'file';
	>                     onChange: (html jQuery ajax
	>                         callback: [ :value | self
handleNewFile: value ]
	
	>                         value: (html jQuery this value);
	                          script: [ :script |
	                              script add: ((s jQuery id: 'form')
	                                    append: [ :h | h hiddenInput
	callback: [ :v | ... ] ]) ]) ]
	

	Cheers,
	Lukas
	
	--
	Lukas Renggli
	http://www.lukas-renggli.ch
	_______________________________________________
	seaside mailing list
	seaside at lists.squeakfoundation.org
	
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
	




More information about the seaside mailing list