Certainly,
our testers need to call all elements like button/input/etc. . Because of the 
generated names (which will be placed within the http-requests (example: 
signal='signal=0123')) we use our own attribute to identify the signals 
(our_attribute='myButton' -> name='signal=0123'). Therefore all callable 
elements have to store our attribute.

Regards,
sven

-----Ursprüngliche Nachricht-----
Von: Koen Deforche [mailto:[email protected]] 
Gesendet: Freitag, 12. November 2010 09:41
An: [email protected]
Betreff: Re: [Wt-interest] Set attribute of <button> element of a connected 
WLabel

Hey Sven,

2010/11/12 Knoblich Sven <[email protected]>:
> Hello Dmitry,
> is it possible to get and modify the <button> element (which is 
> created during the creation of wlabel) to add an attribute?

The <button> however is an artifact of rendering to a plain HTML session and 
listening to a clicked() signal: since only buttons can be clicked in plain 
HTML, Wt will wrap the original element into a button to be able to handle the 
click event.

When rendering in an Ajax session, or after upgrading to an Ajax session, the 
<button> is absent. The only property of the wrapping button that you can 
control (now) is the id.

May I ask why you want to add an attribute to it ?

Regards,
koen

------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture 
Simplifying enterprise desktop deployment and management using Dell EqualLogic 
storage and VMware View: A highly scalable, end-to-end client virtualization 
framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to