:: Forum >>

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:

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
Friday, April 30, 2010
Sorry if your question has not been answered. Sometimes I simply don't know the answer, sometimes there is not enough information to replicate the issue, sometimes I don't understand what exactly the person is trying to ask. Like in your case - are you looking for a click event or is it about setting href attribute on a hyperlink?

Click and other mouse events -
obj.onControlClicked = function(event){...};
http://www.activewidgets.com/aw.system.control/control-mouse-events.html

Hyperlink
obj.setControlLink("http://www.google.com");
http://www.activewidgets.com/aw.ui.link/
Alex (ActiveWidgets)
Friday, April 30, 2010

This topic is archived.


Back to support forum

Forum search