3.0 beta 2

reference AW.UI.Input by ID?

I am testing an AW.UI.Input. I tried to reference it by ID:

var tbx=new AW.UI.Input;
tbxSltShipId.setId("tbx");
......
document.forms[0].elements["tbx"].innerText = "This";
document.getElementById("tbx").innerText = "This";
document.forms[0].elements["tbx"].blur();
document.getElementById("tbx").blur();

All of the above last 4 lines caused error. How can I set id and use it in javascript?

Thanks,
mrhsh
June 17,
any reason to not just do:

tbx.setControlText("This");


If you do an alert(tbx) you will see that the element itself has a number of members and I don't think you can just set the innerText like this for an input type. That only works on AW.HTML.XXX objects that I've seen thus far.

Mike
Mike
June 17,
Thanks Mike!

Now I understood that only AW.HTML.XXX objects can work like HTML elements.
mrhsh
June 17,

This topic is archived.

See also:


Back to support forum

Search

Version 2

Looking for AW 2.6 ?
The old site is here.