[Seaside] RE: Using updater without triggering action callback?

Boris Popov boris at deepcovelabs.com
Thu Aug 23 20:39:24 UTC 2007


It almost seems that if we used a different kind of callback for that
"default" submit button on a form and ignored it during the callback
processing when isXmlHttpRequest = true that might fix it, although now
we've got to think if this is ever desirable, and so far (given the
ugliness of the result) I can't think of any cases when this might be
so.

Thoughts?

-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 Boris Popov
> Sent: Thursday, August 23, 2007 1:04 PM
> To: Seaside - general discussion
> Subject: [Seaside] RE: Using updater without triggering action
callback?
> 
> Also, to see exactly what I'm talking about, just add (defaultAction:
> []) to the form in SUFormTest>>renderLabel:control:model:on: then play
> with examples, specifically select list, but all others exhibit the
same
> behavior.
> 
> Thanks!
> 
> -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: Boris Popov
> > Sent: Thursday, August 23, 2007 12:58 PM
> > To: 'Seaside - general discussion'
> > Subject: Using updater without triggering action callback?
> >
> > Say you have a form with default action callback to run a search.
One
> of
> > the criteria for this search is specified using a select list in
that
> > form. Now I'd like to attach an updater to the select list to
populate
> a
> > little "extras" div to the side of it with selection details, but I
> would
> > like to do so without triggering the default action of a form that
> would
> > actually execute the search?
> >
> > (html select)
> >  list: self accounts;
> >  labels: [:acc | acc name];
> >  selected: self account;
> >  callback: [:value | self account: value];
> >  onChange: ((html updater)
> >                 id: divid;
> >                 triggerForm: formid;
> >                 callback: [:r | r span: self account name])
> > (html div)
> >   id: divid;
> >   with: [].
> >
> > Thanks,
> >
> > -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.
> 
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


More information about the seaside mailing list