stewartwebb
Programmer
Hi all,
I have a strange problem that I can't figure out.
I've opened a pop-up window which has 1 textbox:-
onKeyUp some javascript is called
However if I enter a number in the textbox then click return, everytime I click return the hPART_QTY.value disappears and becomes spaces.
I've put alerts in checkcr() as the first thing it does and the value is spaces before it gets to the script.
Any ideas how to solve this?
Thanks
Stewart.
I have a strange problem that I can't figure out.
I've opened a pop-up window which has 1 textbox:-
Code:
<input name="hPART_QTY" type="text" id="hPART_QTY" tabindex="01" onKeyUp="checkcr();" size="04" maxlength="04">
onKeyUp some javascript is called
Code:
function addParent()
{
window.opener.form1.entpoint.value = "AddConsumable";
window.opener.form1.hPART_QTY.value = document.form1.hPART_QTY.value
window.opener.form1.submit();
}
function checkcr()
{
if(window.event.keyCode == 13)
{
addParent();
window.close();
}
}
However if I enter a number in the textbox then click return, everytime I click return the hPART_QTY.value disappears and becomes spaces.
I've put alerts in checkcr() as the first thing it does and the value is spaces before it gets to the script.
Any ideas how to solve this?
Thanks
Stewart.