F
frank78
Hi all,
I'm having an issue with passing form values from one page to the next.
I wrote a function that I use to change the value of a hidden field to
any number of dynamically generated form select value.
The function "works" in the sense that when I alert, the same values
occur. This tells me some value is being set to the id = form_name
input field. however, this information is not being "POSTED" when I
submit the form.
Firefox has no issues. It will alert the same values AND post the
correct values to the next page.
<script type="text/javascript" language="JavaScript">
function changeAssignedTo(form_name) {
document.getElementById("assign_to").value =
document.getElementById(form_name).value;
alert(document.getElementById(form_name).value);
alert(document.getElementById("assign_to").value);
//alert(document.getElementById("assign_to").value );
}
</script>
Could anyone help me debug this? I have also tried the following
statements to no avail. (They may be malformed)
document.getElementById("assign_to").value =
document.getElementById(form_name).value;
document.assignment_form.assign_to.value =
document.getElementById(form_name).value;
window.document.assignment_form.assign_to.value =
document.getElementById(form_name).value;
Thanks much,
Frank
I'm having an issue with passing form values from one page to the next.
I wrote a function that I use to change the value of a hidden field to
any number of dynamically generated form select value.
The function "works" in the sense that when I alert, the same values
occur. This tells me some value is being set to the id = form_name
input field. however, this information is not being "POSTED" when I
submit the form.
Firefox has no issues. It will alert the same values AND post the
correct values to the next page.
<script type="text/javascript" language="JavaScript">
function changeAssignedTo(form_name) {
document.getElementById("assign_to").value =
document.getElementById(form_name).value;
alert(document.getElementById(form_name).value);
alert(document.getElementById("assign_to").value);
//alert(document.getElementById("assign_to").value );
}
</script>
Could anyone help me debug this? I have also tried the following
statements to no avail. (They may be malformed)
document.getElementById("assign_to").value =
document.getElementById(form_name).value;
document.assignment_form.assign_to.value =
document.getElementById(form_name).value;
window.document.assignment_form.assign_to.value =
document.getElementById(form_name).value;
Thanks much,
Frank