Java脚本在ISS上不起作用 [英] Java script not working at ISS

查看:75
本文介绍了Java脚本在ISS上不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好.

我有一个JavaScript函数,可在运行时调整列的height(div).

它在开发环境中运行良好,但是在ISS上抛出了一个异常,指出需要对象.

请你帮助我好吗.以下是我的功能...

Hi all.

I have a javascript function which adjusts the column height(div) at runtime.

It is working fine in the developement environment but at ISS an exception is thrown saying object required.

Could you please help me. Following is my function...

function AdjustColumnsHeight() {
    // get a reference to the two DIVS that make up the columns
    var centerCol = window.document.getElementById(''centercol'');
    var leftCol = window.document.getElementById(''leftcol'');
    // calculate the max height
  
    var hCenterCol = centerCol.offsetHeight;
    var hLeftCol = leftCol.offsetHeight;
    var maxHeight = Math.max(hCenterCol, hLeftCol);

    // set the height of all 2 DIVS to the max height
    centerCol.style.height = maxHeight  + ''px'';
    leftCol.style.height = maxHeight  + ''px'';
      }



在此先感谢您.



Thanks in advance.

推荐答案

您能解释一下JavaScript与ISS的连接方式吗?因此,问题应该出在另一个领域.只需查看控件的ID如何呈现即可.
Can you please explain that how the JavaScript is connected with ISS? SO the problem should be in another area. Just see the IDs of the controls how they are rendered.


这篇关于Java脚本在ISS上不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆