English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories
0

Does anyone know the source code on how to put the results (after calculated) into the textfield?

2006-07-27 20:10:48 · 4 answers · asked by revelc 3 in Education & Reference Homework Help

4 answers

find at hotscripts.com/webmonkey.com

2006-07-27 20:15:04 · answer #1 · answered by anshuman 2 · 0 0

TextField texty = new TextField();

function updateText() {
int sampleInteger = 1 + 1: // there's a calculation
texty.setText(sampleInteger + "");
// if you're having trouble,
// it could be that you're not
// combining a numeric
// value with a string to turn
// the calculated number into
// a string - you can't set a
// TextField value to a number.
}

2006-07-28 03:18:53 · answer #2 · answered by Epistomolus 4 · 0 0

Javascript :

document.MyFormName.MyTextField.value = 'Text to go in';
or if not within a form, set the id of the text field:

document.getElementById('MyTextFieldID').value = 'Text';

Remember, it is case sensitive.

2006-07-28 03:18:05 · answer #3 · answered by PommyTom 4 · 0 0

take a coffe break i e java

2006-07-28 03:12:37 · answer #4 · answered by isiddhayoga 1 · 0 0

fedest.com, questions and answers