angelasuch

Query Find Task works in EI but not in FireFox

Discussion created by angelasuch on Aug 20, 2012
Latest reply on Aug 20, 2012 by sendrr
Sorry - didn't knwo I wasn't supposed to have urls.  here is some of the find task code that appears to be the problem:

function doFind() {
        //Set the search text to the value in the box
  findParams.searchText = "<? echo($check_license); ?>";
   
        //findParams.searchText = dojo.byId("searchname").value;
        findTask.execute(findParams,showResults);
      }



    function showResults(results) {
        //This function works with an array of FindResult that the task returns

        map.graphics.clear();
        var symbol = new esri.symbol.SimpleMarkerSymbol(esri.symbol.SimpleMarkerSymbol.STYLE_CIRCLE, 15, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([0, 0, 0]), 1), new dojo.Color([255, 128, 0]));

        //create array of attributes
        var items = dojo.map(results,function(result){
          var graphic = result.feature;
          graphic.setSymbol(symbol);
          map.graphics.add(graphic);
   // map.centerAt(graphic.geometry);
    map.centerAndZoom(graphic.geometry,14);
          return result.feature.attributes;
        });

     var result, attribs;
        var s =
  ["<ul>"];
 
        dojo.forEach(results,function(result){
          
          attribs = result.feature.attributes;
    var text = [attribs.First_Name];
    if (attribs.Middle_Name != "Null")
   {  text.push(" " + attribs.Middle_Name + " " + attribs.Last_Name); }
    else
      {  text.push(" " + attribs.Last_Name); }
  
    complaint = attribs.First_Name + " " + attribs.Middle_Name + " " + attribs.Last_Name + "&license_id=" + attribs.License_ID + "&license_no=" + attribs.License_No + "&profession_id=200&license_type=200";
    formID.ComplaintURL.value=complaint;
    var title = attribs.License_No.substr(0,2);
   text.push(", " + title);
    var hold_objectID = [attribs.ObjectID];
    formatted = format_phone(attribs.License_Phone);
    dojo.byId("namearea").innerHTML = text.join("");
           s.push("<li> <span class = 'addr'> " + attribs.GISAddr  + "<br> " + attribs.License_City +   ", " + attribs.License_State + " " + attribs.License_ZIP + "</span> <br>   <span class = 'tel'>" + formatted + "</span></li> ");
    
        });
        s.push("</ul>");
        dojo.byId("list").innerHTML = s.join("");
}




URL;  http://health.ri.gov/find/doctors/results.php?license=MD09804

Provider name and address display fine in EI with use of the Find Task but not in FireFox.
Please advise.

THANKS!

Outcomes