04-23-2018, 10:41 PM
(This post was last modified: 04-24-2018, 12:23 AM by DanBarclay.)
That doesn't sound right. If your target is a TWILabel, I think you should be finding a <span> with the id as the .Name but uppercase.
As an example, when I put TIWLabel on a form, set it to RawText, with default values I get:
<span class="IWLABEL3CSS" id="IWLABEL3">The label contents</span>
[edit] In addition to the name/id issue, it appears span doesn't support .select. It looks like there are some workarounds:
https://stackoverflow.com/questions/1145...n-on-click
[edit] Actually, the name you posted does look correct. If you put a control on a frame, the frame "decorates" the control name in order to avoid name collisions in the html. I do this on custom controls I've written but had never looked at regular frames. They do this as well by adding the frame name at the end of the control name.
Dan
As an example, when I put TIWLabel on a form, set it to RawText, with default values I get:
<span class="IWLABEL3CSS" id="IWLABEL3">The label contents</span>
[edit] In addition to the name/id issue, it appears span doesn't support .select. It looks like there are some workarounds:
https://stackoverflow.com/questions/1145...n-on-click
[edit] Actually, the name you posted does look correct. If you put a control on a frame, the frame "decorates" the control name in order to avoid name collisions in the html. I do this on custom controls I've written but had never looked at regular frames. They do this as well by adding the frame name at the end of the control name.
Dan