I have a little problem, I’m trying to input some data that I get with the library Capabilities.
I want to show version, language etc in a text area but I can only input just one capabilitie at the time.
This is what I have at the moment
<![CDATA[
function displayResult()
{
var versionString = Capabilities.version;
var versionString = Capabilities.language;
var versionString = Capabilities.os;
txtbox1.text = Capabilities.version;
txtbox1.text = Capabilities.language;
txtbox1.text = Capabilities.os;
}
]]>
Since I want to show the result in the area box, I thought all I needed was to use the name txtbox1.
Any ideas ?
In the three lines
you change the value of
txtbox1.textthree times, so it only keeps the last value (Capabilities.os).you should probably do something like this:
Or with some more formatting:
Edit If you want to change the language you can so it as follows: