IFrame with javascript [modified]
-
I am having Iframe on defaultone.aspx page from tht page i am called defaulttwo.aspx page. on that page their is master page call(defaultmaster.master ). iWant to get that master page object in java script of Defaultone.aspx page. How i will get tht??
modified on Monday, June 27, 2011 8:43 AM
-
I am having Iframe on defaultone.aspx page from tht page i am called defaulttwo.aspx page. on that page their is master page call(defaultmaster.master ). iWant to get that master page object in java script of Defaultone.aspx page. How i will get tht??
modified on Monday, June 27, 2011 8:43 AM
First of all, don't use very urgent in your post. This is a volunteer site and people will answer you on their time, not yours. Once the pages are rendered to the client their is no page or masterpage, just elements. Use the parent object from the iframe.
I know the language. I've read a book. - _Madmatt
-
First of all, don't use very urgent in your post. This is a volunteer site and people will answer you on their time, not yours. Once the pages are rendered to the client their is no page or masterpage, just elements. Use the parent object from the iframe.
I know the language. I've read a book. - _Madmatt
Hey...thnks for the reply. I tried in different way but no use :( on that master page i have control.. on tht control there is label. i want to disable tht label :( from ifare call page script language="javascript" type="text/javascript"> function setIframeHeight(iframeName) { debugger; var s = document.getElementById(iframeName).contentWindow.document; var t = document.frames("iFrame").document.firstChild.childNodes[1].document.getElementsByTagName("MasterPlaceHolder"); var test = document.frames("iFrame").document.getElementId('MasterPlaceHolder'); var p = s.document.getElementById("ucModel1"); } </script> iFrame.Attributes.Add("onload", "setIframeHeight('iFrame');");
-
Hey...thnks for the reply. I tried in different way but no use :( on that master page i have control.. on tht control there is label. i want to disable tht label :( from ifare call page script language="javascript" type="text/javascript"> function setIframeHeight(iframeName) { debugger; var s = document.getElementById(iframeName).contentWindow.document; var t = document.frames("iFrame").document.firstChild.childNodes[1].document.getElementsByTagName("MasterPlaceHolder"); var test = document.frames("iFrame").document.getElementId('MasterPlaceHolder'); var p = s.document.getElementById("ucModel1"); } </script> iFrame.Attributes.Add("onload", "setIframeHeight('iFrame');");