sometimes support on these fora sucks .. pls help
got an urgent work to do, can't figure it out. i post on the fora, and it goes unanswered days on end. sometimes makes 1 wonder where r the owners of these forums. can somebody please help on this query:
how do i set an action on the content of the link: alert(obj.getContent('html')) gives me the img. but now setting the action:
obj.getContent('html').setAttribute("myworld", "hello"); does not work
obj.getContent('html').setAction('click', function() { alert('yes'); }); also does not work.
can somebody pls help. i have a make or do situation here.
var img = "<img class='" + ID + "-IMG' src='" + MenuImage + "' style='z-index:1; position:absolute; left:0; top:0; border:none; width:48px; height:48px;' alt='" + Hint + "' />";
var obj = new AW.UI.Link;
obj.setId(ID);
obj.setContent('html', img);
obj.setPosition(PosX, PosY);
obj.setSize(48, 48);
obj.setControlTooltip(Hint);
obj.setStyle("z-index", "1000");
document.write(obj);
how do i set an action on the content of the link: alert(obj.getContent('html')) gives me the img. but now setting the action:
obj.getContent('html').setAttribute("myworld", "hello"); does not work
obj.getContent('html').setAction('click', function() { alert('yes'); }); also does not work.
can somebody pls help. i have a make or do situation here.
t4
April 30,