QueryTask On Style event listener

Discussion created by gbooth on Oct 1, 2013
Latest reply on Oct 1, 2013 by JUihlein-esristaff
I would like to update the following code to On Style event listener:
 dojo.connect(queryTask, "onComplete", function (fset) {

From what I've read it might be something like this:
queryTask.on("complete", function (fset) {
queryTask.on("execute-complete", function (fset) {

They don't work. I was able to get the buffer complete working:
gsvc.on("buffer-complete", function (result) {

Thanks for your help.