Select to view content in your preferred language

Clustermap dojo.connect onError

675
1
12-23-2011 06:05 AM
WarrenMedernach
Frequent Contributor
Hello all,

I'm creating an app based on the Clustermap sample by globoserver.  The sample is working great and I've managed to implement a filtering mechanism.  The problem I'm struggling with is trapping an error when no results are returned.  It seems like the error function is not being called?

dojo.connect(queryTask, "onError", function(err) {
 alert("CUSTOM ERROR: " + err.details);
});


Any ideas/suggestions would be greatly appreciated.

Warren M
0 Kudos
1 Reply
HemingZhu
Frequent Contributor
Hello all,

I'm creating an app based on the Clustermap sample by globoserver.  The sample is working great and I've managed to implement a filtering mechanism.  The problem I'm struggling with is trapping an error when no results are returned.  It seems like the error function is not being called?

dojo.connect(queryTask, "onError", function(err) {
 alert("CUSTOM ERROR: " + err.details);
});


Any ideas/suggestions would be greatly appreciated.

Warren M


No results return does not mean query task failed. It just means that query task could not find any results.
0 Kudos