M
Mariano
I have this JS function. I read the value of input box trough the dom
path: document.q.risp.value.
onkeyup event it properly working, so every character inserted in box
open an alert windows with current value of form. But, alas, my work
is not complete cause this is just a test. My real target is to use
this value as value (sorry forwordplay ) of get parameter named act
(it should be appear at place of xyz). I have try in so many way, but
no one is usefull to me, and all my try write the dom path as it is
(document.q.risp.value), no one will write the current value (abc for
example). Someone coulde help me???
function myFunc (xml, user){
// ...
msg = "<form name=\"q\" onsubmit=\"return false\" method\"GET\">";
// ...
msg += '<input type="text" name="risp" value="abc"
onkeyup="alert(document.q.risp.value)"/>';
// ...
msg += '<input type="submit" name="act" value="Send"
onclick="funct(\'exec\', \'fileserver?act=xyz\' )" >';
msg += "</form>";
var target = document.getElementById("ajaxDiv");
target.innerHTML=msg;
}
thanks
PS: clearly I can't read this value as I can do in normal way with
action etc etc
path: document.q.risp.value.
onkeyup event it properly working, so every character inserted in box
open an alert windows with current value of form. But, alas, my work
is not complete cause this is just a test. My real target is to use
this value as value (sorry forwordplay ) of get parameter named act
(it should be appear at place of xyz). I have try in so many way, but
no one is usefull to me, and all my try write the dom path as it is
(document.q.risp.value), no one will write the current value (abc for
example). Someone coulde help me???
function myFunc (xml, user){
// ...
msg = "<form name=\"q\" onsubmit=\"return false\" method\"GET\">";
// ...
msg += '<input type="text" name="risp" value="abc"
onkeyup="alert(document.q.risp.value)"/>';
// ...
msg += '<input type="submit" name="act" value="Send"
onclick="funct(\'exec\', \'fileserver?act=xyz\' )" >';
msg += "</form>";
var target = document.getElementById("ajaxDiv");
target.innerHTML=msg;
}
thanks
PS: clearly I can't read this value as I can do in normal way with
action etc etc