:: Forum >>

AW.UI.Input Object Form Inclusion

I had some problems including the basic controls in my case Input into a form.

It seems that using

var obj = new AW.UI.Input;
obj.getContent('box/text').setAttribute('name', 'formItem');

it will work.

Is there any other direct way to do it ?
Since an aw.ui.input should be used as an input type=text replacement
and therefore the name, that is used to send the data by post/get
should also be as important as the id [and there is a setId() method].

Bogdan
Wednesday, January 11, 2006
You could create an AW.System.Control and set the tag to INPUT. Then you have direct control over it, BUT you do not get the nice looking input control like you do with AW.UI.Input. Here is what I mean:

z = new AW.System.Control;
z.setTag("input");
z.setId("test");
z.setAttribute("name", "test");
document.write(z);


You will get a standard HTML Input element doing it this way, nothing fancy.
Jim Hunter
Wednesday, January 11, 2006

This topic is archived.


Back to support forum

Forum search