Assuming all your controls derive from basecomponent (which all the
standard ones do), then you can just do something like:
<button id='myuniquebuttonidentifier' text='OK'>
<button id='mycancelbuttonid' text='Cancel'>
<method name='disablebuttons'>
myuniquebuttonidentifier.setAttribute('enabled', false);
mycancelbuttonid.setAttribute('enabled', false);
</method>
basically the 'id' tag gives you a shortcut to access that item no
matter where it is.
See:
http://www.openlaszlo.org/lps-latest/docs/guide/language-preliminaries.html#d0e1283
-Jason
Henry Minsky wrote:
There's a "searchSubviews" method on LzView, I've never
tried, but might work
foo.searchSubviews('name', 'somename')
On 4/27/06, Alexey
<[EMAIL PROTECTED]>
wrote:
Hi.
Is it possible to find and element for it's id in LZX?
Like getElementById() in DHTML. Because it is not easy to keep
constructions
like this.parent.parent... on track while structure of LZX document
changes.
Thank you for your help.
Вы писали 27 апреля 2006 г., 18:12:28:
>> Can you help me with advice how it is better to indicate for
the
>> user that
>> http request is in process in Laszlo? (I am submitting form
and want
>> user to know that something is happening)
> We don't have a "best practice" for how to inform the user that a
> request is processing. If controls _must_ be disabled (to prevent
state
> changes while the request is on the wire), then disable them. You
can
> have all your controls' enabled attributes constrained to a flag
that
> gets set when the request is made and when it is completed, as
Henry
> suggested.
> In many applications, we also change the cursor icon to show that
the
> application is busy.
> Hope this helps,
> Dan
--
С уважением,
Alexey mailto:[EMAIL PROTECTED]
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user
--
Henry Minsky
Software Architect
[EMAIL PROTECTED]
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user
--
Jason Stafford
Principal Developer
Inspiration Software, Inc.
The leader in visual thinking & learning
Introducing INSPIRATION(r) 8, the essential tool to visualize, think,
organize and learn. Students use Inspiration to plan, research and
complete projects successfully. Learn more at www.inspiration.com.
503-297-3004 Extension 119
503-297-4676 (Fax)
9400 SW Beaverton-Hillsdale Highway
Suite 300
Beaverton, OR 97005-3300
|
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user