dojo.event.topic.subscribe("/afterDeleteLaw", function(data, request, widget){ //data : text returned from request(the html) It is my json //request: XMLHttpRequest object //widget: widget that published the topic var _mydata = eval("(" + data +")"); });
and: <s:a id="idOfMyAnchor" showLoadingText="false" targets="%{'linkattachedMainDocRow' + #document.count}" theme="ajax" href="%{#deleteDocumentAction}" notifyTopics="/afterDeleteLaw"> <s:url value= "/> </s:a> It is impossible to get id of widget. I've parsed object, it contains fields connected with response, also it has field with data value (parameter data). Seems like it's useless to get id of widget that fired event. -- View this message in context: http://www.nabble.com/%3Cs%3Aa-dojo-anchor%2C-parse-result%2C-output-it-and-then-execute-JS-tp18688029p18713897.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]