Select to view content in your preferred language

HELP: how to get the multiple tab onto the infowindow when click on a icon

588
0
03-28-2011 01:57 AM
Sophialim
Emerging Contributor
hey, i am currently working on a project, i meet some project and i wont like to ask
if i use this code :
<div id="mapDiv" style="width:800px; height:600px; border:1px solid #000;"></div>
    <!-- info window tabs -->
    <div id="tabs" dojoType="dijit.layout.TabContainer" style="width:385px;height:150px;">
      <div id="bldgTab" dojoType="dijit.layout.ContentPane" title="Buildings"></div>
      <div id="parcelTab" dojoType="dijit.layout.ContentPane" title="Tax Parcels"></div>
    </div>
which i need to put under body and i need the multiple tabs in a infowindow once i click on a icon.
Below is code which i place my icon, so how should i call and implement with the above code, cause i try it out, the tabs only appear it the body of the web, when i click on the icon, nothing work

       function PlaceLabel(evt) {
   
        map.graphics.clear();
        var strImage,symbol,pt,graphic,stX,stY,infoTemplate,json,g,cont,cont1,tit,lin;
  
stX             =   "23319.3347409758";
stY             =   "28825.7191286444";

pt= new esri.geometry.Point(stX,stY,map.spatialReference);
strImage = "C:/Users/L335C07/Desktop/images/stock.jpg";
symbol = new esri.symbol.PictureMarkerSymbol(strImage, 25,25);
infoTemplate = new esri.InfoTemplate();
infoTemplate.setContent(getWindowContent);
graphic = new esri.Graphic(pt,symbol);
graphic.setInfoTemplate(infoTemplate);
map.graphics.add(graphic);
dojo.connect(graphic, "onClick", function(evt){
g = evt.graphic;
//map.infoWindow.setTitle();
map.infoWindow.show(evt.screenPoint,map.getInfoWindowAnchor
(evt.screenPoint));
map.infoWindow.resize(260,130);
});
}


could any one tell me how to call the div id/ the tab into the infowindow of the icon
Please Reply ASAP!!
Thanks
0 Kudos
0 Replies