J
jwcarlton
I'm trying to call a function after a text field is changed from a
separate iframe. Like this:
<input type="text" name="pic" value="" onChange="alert('works')">
<iframe id="iframe_pic" src="whatever.cgi" width="150" height="35"></
iframe>
The iframe runs a function, then on success sends a value back to
"pic", like so:
parent.document.formname.pic.value = pic;
Where "pic" is defined within the function in the iframe.
The input field does change correctly, but I'm not getting the
expected "alert" from onChange. There are no Javascript errors shown,
either, so even though the value changes, it doesn't look like the
change is being recognized from onChange.
Any suggestions?
TIA,
Jason
separate iframe. Like this:
<input type="text" name="pic" value="" onChange="alert('works')">
<iframe id="iframe_pic" src="whatever.cgi" width="150" height="35"></
iframe>
The iframe runs a function, then on success sends a value back to
"pic", like so:
parent.document.formname.pic.value = pic;
Where "pic" is defined within the function in the iframe.
The input field does change correctly, but I'm not getting the
expected "alert" from onChange. There are no Javascript errors shown,
either, so even though the value changes, it doesn't look like the
change is being recognized from onChange.
Any suggestions?
TIA,
Jason