- This topic has 1 reply, 2 voices, and was last updated 17 years, 8 months ago by Riyad Kalla.
-
AuthorPosts
-
jadeite1000MemberHi:
I am inside a jsp page using MyEclipse 5.1.1.
When I typed theFrame.I do see the list of methods which I was hoping to do so?
Please tell me how to setup myEclipse 5.1.1 to allow me to see the list of javascript methods for the javascript object “theFrame”.Yours,
Frustrate
<script language=”JavaScript”>
function shrinkIFrame() {
var theFrame=document.getElementById(‘dataFrame’);
if(theFrame){
//alert(“the iFrame is ” + theFrame.offsetHeight + ” high and ” + theFrame.offsetWidth + ” wide”);
theFrame.style.display=”block”
if(theFrame.Document && theFrame.Document.body.scrollHeight)
{
theFrame.height = theFrame.Document.body.scrollHeight;
theFrame.height = 225;
alert(‘inside theFrame.Document,theFrame.Document.body.scrollHeight’+theFrame.Document.body.scrollHeight);
}
if(theFrame.attachEvent)
{
alert(“attachEvent”);
theFrame.detachEvent(“onload”, readjustIframe)
theFrame.attachEvent(“onload”, readjustIframe)
}
}
alert(“the iFrame is now” + theFrame.offsetHeight + ” high and ” + theFrame.offsetWidth + ” wide”);}
function readjustIframe(loadevt)
{
alert(‘inside readjustIframe’);
var crossevt=(window.event)? event : loadevt
var iframeroot=(crossevt.currentTarget)? crossevt.currentTarget : crossevt.srcElement
if (iframeroot)
{
alert(‘readjustIframe’+iframeroot.id);
resizeIframe(iframeroot.id);
}
}</script>
Riyad KallaMemberjadeite1000,
This is a feature we are working on adding in a future release. Because javascript is not a strongly typed language, “theFrame” could literally be anything, and the parser used currently doesn’t try and determine what type of argument it is. It could be a string, object, number, etc. -
AuthorPosts