• carbonfive
  • NEWBIE
  • 0 Points
  • Member since 2004

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies

I have a web integration link that embeds our web site within the SF navigation.

In IE6 I get a javascript error from the embedding SF page when a new page loads.

The error is "Invalid argument on line 263" which is the line:

  ifr.style.height = Math.max(ifr.style.height, newHeight);

in the JavaScript block:

function doResize(){

    var ifr = document.getElementById("itarget");

    var newHeight = 600;

    if (ifr && ifr.document && ifr.document.body) {

        if (ifr.document.body.scrollHeight){
            newHeight = Math.max(newHeight, ifr.document.body.scrollHeight);
        }
        if (ifr.document.body.clientHeight){
            newHeight = Math.max(newHeight, ifr.document.body.clientHeight);
        }
        if (ifr.document.body.offsetHeight){
            newHeight = Math.max(newHeight, ifr.document.body.offsetHeight);
        }
        if (ifr.document.body.height){
            newHeight = Math.max(newHeight, ifr.document.body.height);
        }
    }

    ifr.style.height = Math.max(ifr.style.height, newHeight);

}

Looking for this same error in FireBird (where I would get a better error message) I do not get the error at all.

Any thoughts?

Alon / Carbonfive

Message Edited by carbonfive on 04-23-2004 10:57 AM

We've been using the following login code (from the docs):


  private SoapBindingStub login() throws Exception
  {
    SoapBindingStub binding = null;

    binding = (SoapBindingStub) new SforceServiceLocator().getSoap();
    LoginResult lr = binding.login(login, password);

    binding = (SoapBindingStub) new SforceServiceLocator().getSoap(new URL(lr.getServerUrl()));
    _SessionHeader sh = new _SessionHeader();
    sh.setSessionId(lr.getSessionId());
    binding.setHeader("SforceService", "SessionHeader", sh);

    return binding;
  }

After downloading the latest sforce 3.0 WSDL and regenerating Java classes (using the ant tast 'axis-wsdl2java' provided with the latest axis-ant distribution) we no longer have a _SessionHeader class so this java source does not compile.

Has anyone else had this problem?

We've been using the following login code (from the docs):


  private SoapBindingStub login() throws Exception
  {
    SoapBindingStub binding = null;

    binding = (SoapBindingStub) new SforceServiceLocator().getSoap();
    LoginResult lr = binding.login(login, password);

    binding = (SoapBindingStub) new SforceServiceLocator().getSoap(new URL(lr.getServerUrl()));
    _SessionHeader sh = new _SessionHeader();
    sh.setSessionId(lr.getSessionId());
    binding.setHeader("SforceService", "SessionHeader", sh);

    return binding;
  }

After downloading the latest sforce 3.0 WSDL and regenerating Java classes (using the ant tast 'axis-wsdl2java' provided with the latest axis-ant distribution) we no longer have a _SessionHeader class so this java source does not compile.

Has anyone else had this problem?