:: Forum >>
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
Tuesday, June 17, 2008
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
Tuesday, June 17, 2008
Thanks Mike!
Now I understood that only AW.HTML.XXX objects can work like HTML elements.
mrhsh
Tuesday, June 17, 2008
This topic is archived.
Back to support forum
Forum search