im getting error 'parent.frames.schTop.document' is null or not an object

Posted by maninaanee-8287 under ASP.NET on 2/15/2012 | Points: 10 | Views : 1397 | Status : [Member] | Replies : 1
My code is
if (gFlag == "PATINFO") {
var CalendarString = "";
if (returnString != "") {
var str11 = parent.frames["schBanner"].document.location.href;
parent.frames["schBanner"].document.getElementById("hdnFromScduler").value = top.frames["banner"].document.submenu.hidModPatId.value;
//alert(parent.frames["schBanner"].document.getElementById("hdnFromScduler").value);

if (parent.document.getElementById("tblFrame") != null) {
parent.document.getElementById("tblFrame").outerHTML = "";
}
if (parent.document.getElementById("PatTblInfo") != null) {
parent.document.getElementById("PatTblInfo").outerHTML = "";
}
if (parent.document.getElementById("divDisplay") != null) {
parent.document.getElementById("divDisplay").innerHTML = "";
}
parent.document.getElementById("spnPatientInfo").style.display = "";
parent.document.getElementById("spnPatientInfo").innerHTML = "";
parent.document.getElementById("spnPatientInfo").innerHTML = returnString;

}
}

How to solve this.




Responses

Posted by: Blessyjees on: 2/16/2012 [Member] Bronze | Points: 25

Up
0
Down
Hi,

In your code are use the frame with id "schTop". I am not able to use this name in the above. Do you have any other functions in the page.

Blessy Baby
Digitalmesh Softech pvt Ltd
https://blessybaby.wordpress.com/

maninaanee-8287, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response