:: Forum >>

How to define an text area?

Is it possible to change input to look like an textarea tag?
cristiroma
Thursday, October 5, 2006
i help you
gulshan sharma
Thursday, October 5, 2006
Is it possible to change input to look like an textarea tag?

Can I have the solution to this please ?

email me at jojo@medinformatix.com

Thank you
jojo@medinformatix.com
Thursday, February 15, 2007
Another quick way to do a textarea:

(quicker than I've seen before)

Just put the following 5 items in your code....
Now note: this won't behave the same as other AW controls... BUT, if you uncomment the necessary lines, you can reassign the events to fire off.

Hopefully Alex is looking into TextArea's as well as Date/Time Combo pickers.



var vNotes = new AW.HTML.SPAN;
vNotes.setId("vNotes");
vNotes.setClass("system","control");
vNotes.setClass("item","control");
vNotes.setClass("ui","input");
vNotes.setClass("input","box");
vNotes.setAttribute("onselectstart","return false");
vNotes.setAttribute("oncontextmenu","return false");
vNotes.setAttribute("hidefocus","true");
vNotes.setAttribute("tabindex","-1");
vNotes.setAttribute("aw","control");

var vNotes1 = new AW.HTML.SPAN;
vNotes1.setId("vNotes-box");
vNotes1.setClass("item","box");

var vNotes2 = new AW.HTML.SPAN;
vNotes2.setId("vNotes-box-image");
vNotes2.setClass("item","image");
vNotes2.setClass("image","none");

var vNotes3 = new AW.HTML.SPAN;
vNotes3.setId("vNotes-box-ruler");
vNotes3.setClass("item","ruler");

var vNotes4 = new AW.HTML.TEXTAREA;
vNotes4.setId("vNotes-box-text");
vNotes4.setClass("item", "text");
vNotes4.setAttribute('lengthLabel',vNotesLength.getId());
vNotes4.setAttribute("onkeyup","enforceTextAreaLength(this)");
// vNotes4.setAttribute("onactivate","AW(this,event)");
// vNotes4.setAttribute("onkeypress","AW(this,event)");
// vNotes4.setAttribute("onkeydown","AW(this,event)");
vNotes4.setAttribute("maxlength",512);
vNotes4.setAttribute("tabindex",0);
vNotes4.setAttribute("value","");
vNotes4.setAttribute("style","top: 15%; overflow: auto; height: 90%");

vNotes.setContent("box", vNotes1);
vNotes.setContent("box/image", vNotes2);
vNotes.setContent("box/ruler", vNotes3);
vNotes.setContent("box/text", vNotes4);
John Mason
Monday, April 30, 2007

This topic is archived.


Back to support forum

Forum search