Login Register

targets

get all targets or sources on a page

Is there anyway to get a list of every target or source on a page that would have a drag and dropped object in it?

dojo anchor: get widget id and targets attributes inside subscribed topic?

I use dojo anchor widget.
It successfully gets response in json from server, but I have seral problems accessing widget, that published a topic.
Please, see my code:

dojo.event.topic.subscribe("/after", function(data, request, widget){
    alert('inside a topic event. after request');
    //data : text returned from request(the html)
    //request: XMLHttpRequest object
    //widget: widget that published the topic
});

Problems:
1. Can't change data value. If I just use inside dojo.event.topic.subscribe:

Syndicate content