WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 Column List api veryvery astaticism!!!, zhu li xun, July 18, 2005

Subject: Column List api veryvery astaticism!!! From: zhu li xun Date: July 18, 2005

I write a web page base on Column List Widget 1.01

the page have 6 column list container and 2 function.

the 2 function very astaticism!!!

IE bulletin "can't read memory addr xxxxxxxx,  mshtml.dll error......" at every turn!very very astaticism!!!

But,depend on firefox inexistence any question!

my function as follows!

 

function addHJRY(hjnum)
{
  try
  {
    var oObj=null;
    var g=null;
    switch(hjnum)
    {
      case 1 :
        oObj=o01;
        g='container01';
      break;
      case 2 :
        oObj=o02;
        g='container02';
      break;
      case 3 :
        oObj=o03;
        g='container03';
      break;
      case 4 :
        oObj=o04;
        g='container04';
      break;
      case 5 :
        oObj=o05;
        g='container05';
      break;
    }
    var rowids=o.getSelectedRange();
    for(i=0;i<rowids.length;i++)
    {
      var strs=new Array(o.getColumnCount());
      for(j=0;j<o.getColumnCount();j++)
      {
        tempStr=o.getCellValue(rowids[i],j);
        if(tempStr.substring(0,5)=='<DIV>' || tempStr.substring(0,5)=='<div>')
          tempStr=tempStr.substring(5,tempStr.length-6);
        strs[j]=tempStr;
      }
      oObj.addRow(strs);
      //alert(strs);
    }
    o.removeRange(rowids);
  }
  catch (e)
  {
      alert('javaScript error:\n'
      +'\ne.message='+e.message
      +'\ne.name='+e.name
      +'\ne.number='+e.number
      +'\ne.description='+e.description);
  }
}
function removeHJRY(hjnum)
{
  try
  {
    var oObj=null;
    var g=null;
    switch(hjnum)
    {
      case 1 :
        oObj=o01;
        g='container01';
      break;
      case 2 :
        oObj=o02;
        g='container02';
      break;
      case 3 :
        oObj=o03;
        g='container03';
      break;
      case 4 :
        oObj=o04;
        g='container04';
      break;
      case 5 :
        oObj=o05;
        g='container05';
      break;
    }
    var rowids=oObj.getSelectedRange();
    for(i=0;i<rowids.length;i++)
    {
      var strs=new Array(oObj.getColumnCount());
      for(j=0;j<oObj.getColumnCount();j++)
      {
        tempStr=oObj.getCellValue(rowids[i],j);
        if(tempStr.substring(0,5)=='<DIV>' || tempStr.substring(0,5)=='<div>')
          tempStr=tempStr.substring(5,tempStr.length-6);
        strs[j]=tempStr;
      }
      o.addRow(strs);
    }
    oObj.removeRange(oObj.getSelectedRange());
  }
  catch (e)
  {
      alert('javaScript error:\n'
      +'\ne.message='+e.message
      +'\ne.name='+e.name
      +'\ne.number='+e.number
      +'\ne.description='+e.description);
  }
}



Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX