Hello Dmitry,
is it possible to get and modify the <button> element (which is created during 
the creation of wlabel) to add an attribute?

thanks in advance,
Sven

________________________________
Von: Dmitriy Igrishin [mailto:[email protected]]
Gesendet: Donnerstag, 11. November 2010 17:54
An: [email protected]
Betreff: Re: [Wt-interest] Set attribute of <button> element of a connected 
WLabel

Hey Sven,

I guess that submit button here is a wrapper to send an event to the
server rather than label. The label here is a <span>, so Wt sets
attribute correct.

2010/11/11 Knoblich Sven 
<[email protected]<mailto:[email protected]>>
Hello,
like for a few other elements, i want to set an attribute for WLabel. For this 
i use the following code

------------C++ ----------------------
WLabel* const pcLabel = new Wlabel( "Click me", this");
pcLabel->setAttribute( "attribute", "test");
pcLabel->clicked().connect( boost::bind( &MyClass::MyMethod, this));
--------------------------------------

Problem:
After i call the html code, the attribute will not be placed within the correct 
tag <button>. It will be placed in a <span> subnode.

------------HTML ---------------------
<button type="submit" name="signal=s2" class="Wt-wrap ">
       <span id="of" attribute="test">
               <span id="o10" style="white-space:nowrap;">
                       Click me
               </span>
       </span>
</button>
--------------------------------------

Is it possible to set a button attribute of Wlabel?

Many thanks in advance,
Sven
------------------------------------------------------------------------------
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]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/witty-interest



--
// Dmitriy.


------------------------------------------------------------------------------
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