I've modified the List widget and removed the onmousedown event
listener because I wanted to put two links in each item of the
list.  In IE, this seemed to work, and I can click on either
link, and the appropriate javascript function is called.  However,
this didn't work for me in NS4.7.  I get no error messages, and
the alerts in my javascript functions never fire off, so it appears
those javascript functions are never called.

The function for constructing the two links is included below.
  name is a string.
  id is a string, a comma-separted list of two integers ('1,2')
  this.trash is an img tag

The result of this function (contained in the variable cell) is
then later added to the list via myList.add(cell, value).

I'd appreciate any comments on my general approach.  Did I just
go after this the wrong way?  Am I dealing with some sort of
obscure event-propagation different between I.E. and NS?
or, perhaps just something silly like a malformed function
call?

--Dave

Partlist.prototype.contractGroup = function (name, id) {
  var href = 'javascript:parent.delGroup("'+id+'")';
  var img = '<a href='+href+'>'+this.trash+'</a>';
  var func = 'javascript:parent.toggleGroup(\''+id+'\')';
  //var func = 'javascript:alert(\''+id+'\')';
  var link = '<a href="'+func+'">'+lk.beginSfont+name+lk.endSfont+'</a>';
  var cell = '<table width='+this.w+'><tr><td width=90%>'+link+'</td><td
width=10% align=right>'+img+'</td></tr></table>';
  return cell;
}

_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to