You need to sign in to do that
Don't have an account?
iFrame height problem
I have a VisualForce page which loads using a standardController.
After loading the parent page, the child page loads with the following iframe:
<iframe frameborder="no" height="200px" id="066A0000001LEZa" marginheight="0" marginwidth="0" name="066A0000001LEZa" scrolling="no" title="activitiesnewlayout" width="100%"></iframe>
Here's the body syntax embedded in the iFrame
<body onload="if (this.bodyOnLoad) bodyOnLoad();" onbeforeunload="if (this.bodyOnBeforeUnload) {var s =bodyOnBeforeUnload(); if (s) return s;}" onunload="if (this.bodyOnUnload) bodyOnUnload();" onfocus="if (this.bodyOnFocus) bodyOnFocus();" class="Custom41Tab apexPageInline sfdcBody" marginwidth="0" marginheight="0">
I have tried multiple ways to modify the hight of that iFrame using javascript, css, div in the VisualForce child page, none of them worked, till i noticed that the child page does not execute any javascript commands, even <body style="background:red" onLoad="javascript:alert(123);"> , the background goes red but no alert pops out since the child page onLoad cannot override the main one loaded by default..
I viewed both related threads http://bit.ly/l3v3Yi and http://bit.ly/jnB0NR with no solution
Anyone advise plz? Is theere anyone that i can add some code to that onLoad syntax or override it?