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
});
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:
