:: Forum >>

Events "list.onItemClicked" and "tree.onItemClicked" don't trigger anymore inside "group.setContent" since version 2.5.1

In IE6 & IE7, the event "onItemClicked" doesn't fire when "list" is inside a "group" field. It works excellent, when the objects "list" or "tree" are outside of "group" (bottom example). In Version 2.0.2 this was working fine and as expected.

Please check the code below.

Any hints & tips are greatly appreciated. Thank you all in advance for your responsed!

<HTML>
<HEAD>
<SCRIPT src="aw.js"></SCRIPT>
<LINK href="aw.css" rel=stylesheet></LINK>

<STYLE>
.aw-mouseover-item { background:#101060 }
#group1 { height:180px }
</STYLE>

<BODY>
<CENTER>

<SCRIPT>
var listText = ["test1","test2","test3","test4"];
var listLink = ["http://www.google.de","http://www.google.de","http://www.google.de","",""];

var list1 = new AW.UI.List;
list1.setId("list1");
list1.setItemText(listText);
list1.setItemCount(4);
list1.onItemClicked = function(event,i){alert("..." + i + "..." + listLink[i] + "...") ; if(listLink[i])window.location=listLink[i];}

var list2 = new AW.UI.List;
list2.setId("list2");
list2.setItemText(listText);
list2.setItemCount(4);
list2.onItemClicked = function(event,i){alert("..." + i + "..." + listLink[i] + "...") ; if(listLink[i])window.location=listLink[i];}

var group1 = new AW.UI.Group;
group1.setId("group1");
group1.setContent("", "<center>" + list1.toString() + "</center>" ) ;

document.write(group1);
</SCRIPT>

<br><br>

<SCRIPT>
document.write(list2);
</SCRIPT>

</CENTER>
</BODY>
</HTML>
sysadm
Friday, April 11, 2008
Hi all,

any ideas are greatly appreciated. Or is this unresolvable?

Kind regards
sysadm
Friday, April 18, 2008
Alex is aware of this issue.
http://www.activewidgets.com/javascript.forum.22400.4/how-to-add-mutie-object.html
And it should appear on the bugs-page-list
http://www.activewidgets.com/general.bugs/2-5-1.html
HTH
Carlos
Friday, April 18, 2008
Hi Carlos,

your information helped indeed. Thank you for responding.


Kind regards
sysadm
Monday, April 21, 2008

This topic is archived.


Back to support forum

Forum search