facebook

javascript method not showing

  1. MyEclipse Archived
  2.  > 
  3. Web 2.0 / AJAX
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #268016 Reply

    jadeite1000
    Member

    Hi:

    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>

    #268023 Reply

    Riyad Kalla
    Member

    jadeite1000,
    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.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: javascript method not showing

You must be logged in to post in the forum log in