:: Forum >>

Why does text disappear from a textarea after changing tab?

If i create a textarea via AW.HTML.TEXTAREA the text disappears after changing tab. Anyone have a clue?

Thanks,
Rick
Rick Henzel
Tuesday, July 11, 2006
Rick, not sure how are you treating textarea contents, but I never got any issue mixed with tab-controls (you mean tabs-control-changed right??)
Anyway I am using
objtexta.setContent('value', 'text goes here');
HTH
Carlos
Tuesday, July 11, 2006
Yes i'm using that, but if i change the text, go to another tab and back, the text is back to the standard text and not to what i made it.

If i change the text in a input and do the same with the tabs, the text will stay to what i made it.

Greetings
Rick Henzel
Wednesday, July 12, 2006
Maybe just need a refresh() (as any HTML standard object ? )
i.e. objtexta.refresh();
Cheers
Carlos
Wednesday, July 12, 2006
Uppss , Sorry, I was asuming that you always set the textarea content dinamically , but if you type inside need something like:

function recordtextA(){
texta.setContent('value', texta.element().value );
alert( texta.getContent('value') );
}

var texta = new AW.HTML.TEXTAREA;
texta.setContent('value', 'text goes here');
texta.setEvent('onkeyup', recordtextA );

document.write(texta);

Thanks
Carlos
Wednesday, July 12, 2006
Thanks, you're a hero...
Rick Henzel
Wednesday, July 12, 2006

This topic is archived.


Back to support forum

Forum search