Hello,
I have a problem which I have described below. I used the code from a posting put up by Tom Anderson in tek-tips website - thank you very much for that...
Frame_00 and Frame_01 are sibling frames in another frame.
Frame_00 (GENERATED BY qq.pl) contains:
<HTML><HEAD>
</HEAD><BODY>
<FORM NAME="form1"><INPUT NAME="field1" TEXTAREA READONLY VALUE="Balmoral
Naval Po, Hmas Penguin, NSW"></FORM>
979660880<BR>au979660881</BODY></HTML>
=======
Frame_01 contains:
<HTML>
<HEAD>
<TITLE>Welcome to our site
</TITLE>
<SCRIPT LANGUAGE="JavaScript">
function check_pin() {
document.Classified_form.pin_decode.value = "decoding...";
var
url_40="rm.PIN_CODE.value+"&country_code=au";
parent.Frame_No_00.location.href=url_40;
setTimeout('final_upload()',6000);
}
function final_upload(){
document.Classified_form.pin_decode.value =
parent.Frame_No_00.form1.field1.value;
}
<irrelevant portions snipped off--->
</SCRIPT>
</HEAD>
<BODY>
<FONT color="#0033CC" FACE="Times New Roman">Please enter the following:
<FORM NAME="Classified_form">
Your PostCode
<INPUT NAME="PIN_CODE" TYPE="text" MAXLENGTH=04 SIZE=04 onBlur="check_pin()">
<input size=35 readonly type=text name=pin_decode value="">
<irrelevant portions snipped off--->
</FORM>
</TD><TR></TABLE></BODY></HTML>
============
the problem is essentially in inter-frame communication..
what I am trying to accomplish is:
1) accept a post_code in Frame_01 (into the field named PIN_CODE)
2) when focus is lost on the field, fire off a javascript script (check_pin)
which loads Frame_00 with a form whose one (and only) field contains the decode of the post_code.
3) load pin_decode with the value extracted from the field on form in Frame_00.
I get a
JavaScript Error:
line 11:
parent.Frame_No_00.form1 has no properties.
in Netscape although IE works well.
Appreciate your help in that.
Thank you in advance.
Uttam
I have a problem which I have described below. I used the code from a posting put up by Tom Anderson in tek-tips website - thank you very much for that...
Frame_00 and Frame_01 are sibling frames in another frame.
Frame_00 (GENERATED BY qq.pl) contains:
<HTML><HEAD>
</HEAD><BODY>
<FORM NAME="form1"><INPUT NAME="field1" TEXTAREA READONLY VALUE="Balmoral
Naval Po, Hmas Penguin, NSW"></FORM>
979660880<BR>au979660881</BODY></HTML>
=======
Frame_01 contains:
<HTML>
<HEAD>
<TITLE>Welcome to our site
</TITLE>
<SCRIPT LANGUAGE="JavaScript">
function check_pin() {
document.Classified_form.pin_decode.value = "decoding...";
var
url_40="rm.PIN_CODE.value+"&country_code=au";
parent.Frame_No_00.location.href=url_40;
setTimeout('final_upload()',6000);
}
function final_upload(){
document.Classified_form.pin_decode.value =
parent.Frame_No_00.form1.field1.value;
}
<irrelevant portions snipped off--->
</SCRIPT>
</HEAD>
<BODY>
<FONT color="#0033CC" FACE="Times New Roman">Please enter the following:
<FORM NAME="Classified_form">
Your PostCode
<INPUT NAME="PIN_CODE" TYPE="text" MAXLENGTH=04 SIZE=04 onBlur="check_pin()">
<input size=35 readonly type=text name=pin_decode value="">
<irrelevant portions snipped off--->
</FORM>
</TD><TR></TABLE></BODY></HTML>
============
the problem is essentially in inter-frame communication..
what I am trying to accomplish is:
1) accept a post_code in Frame_01 (into the field named PIN_CODE)
2) when focus is lost on the field, fire off a javascript script (check_pin)
which loads Frame_00 with a form whose one (and only) field contains the decode of the post_code.
3) load pin_decode with the value extracted from the field on form in Frame_00.
I get a
JavaScript Error:
line 11:
parent.Frame_No_00.form1 has no properties.
in Netscape although IE works well.
Appreciate your help in that.
Thank you in advance.
Uttam