Help in checking why the infowindow can't appear with multiple tabs

447
1
03-28-2011 01:34 AM
Sophialim
New Contributor
hi, i am currently working on a project and meet some problem. I not sure why when i click on the icon the infowindow wasn't able display any tabs in it and data that i hard coded, cause i use chrome to inspect my data, there no error at first but when click on the icon, error : has no method 'replace' which i can't figure out.

i have attach my code in the attachment
P.S help me check what wrong

If got any better way/ code please tell me also, now my supervisor ask me to hard code it first
Thanks
Please reply ASAP
Really very urgent!!!!!
0 Kudos
1 Reply
RobWaller
New Contributor III
I didn't run your code but from taking a quick look, one thing notice is you're not setting the infoWindow contents to the 'tabs' div on map initialization.
It looks like your using the tabs snippet from the ESRI 'Find' sample, if so, look at that same sample and you'll see where they set the infowindow contents in init function:

map.infoWindow.setContent(dijit.byId("tabs").domNode);

http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm

To make it work, first you set the div container on initialization, then you can change the contents on-the-fly later.
0 Kudos