TimeExtent and Query issue

Discussion created by deleted-user-VeZur_n9o0OZ on Oct 24, 2011
Latest reply on Jan 21, 2012 by Sal_Joensen
Hello experts,

I'm using firebug to step through my app. I am using a single time slider (with only one thumb) to query two feature layers loaded into seperate maps. I've followed the samples but my code seems to die on the first line in my connector method; query = new esri.tasks.Query();

query is a public variable and I have included the necessary dojo.require for the query task. I can't catch the error with a try catch either. Anyone know what's going on?

Code below.

try {
      //Connect time slider events
      dojo.connect(timeSlider, "onTimeExtentChange", function(timeExtent) {
       query = new esri.tasks.Query();
       query.timeExtent = timeExtent;

       flITIS.queryFeatures(query, function(featureSet) {
        //empty function for now
       flLCAP.queryFeatures(query, function(featureSet) {
        //empty function for now
     } catch(err) {
      alert("Error: " + err.message + ", Line #" + err.lineNumber);