InfoWindowTabContainer error (object error)

664
1
03-23-2012 02:42 AM
CliveSwan
Occasional Contributor II
Hi,

I am trying to put the TabContainer into a loop. The aim is to set the size of the TabContainer

function getInfoWinTabContainer() {
    try {
       
        var tc = dijit.byId("tabs");

        //On IE setContent destroys the dijit
        if(tc === undefined)
        {
             if( (theLayerName != "Underground") && (idResults.length  <= 1) )
  {
  // alert("1 record");
  //map.infoWindow.resize(360, 200);
   
  tc = new dijit.layout.TabContainer({
  style : "width:354px;height:196px;visibility:hidden;display:none;padding:2px;", id: "tabs"}, dojo.create("div", null, dojo.body()));
 
  }
   else if ( (theLayerName != "Underground") && (idResults.length  > 1) )
                 {
                  // alert("> 1 record");
    // map.infoWindow.resize(900, 425);

            tc = new dijit.layout.TabContainer({
            style : "width:890px;height:420px;visibility:hidden;display:none;padding:2px;", id: "tabs"}, dojo.create("div", null, dojo.body()));
  }


       } else {
            tc.domNode.style.display = 'none';
            tc.domNode.style.visibility = 'hidden';
        }
0 Kudos
1 Reply
CliveSwan
Occasional Contributor II
Hi,

Tried to create a variable for the TabContainer to use for the TabContainer size.

Getting  getInfoWinTabContainer  error??

getInfoWinTabContainer error, details: [object error]


Code
>>>>>>>>>>>>>>>>>>>>>>>>>>>
function getInfoWinTabContainer() {
    try {
        var tc = dijit.byId("tabs");

var tcSmall = new dijit.layout.TabContainer({
            style : "width:354px;height:196px;visibility:hidden;display:none;padding:2px;", id: "tabs"}, dojo.create("div", null, dojo.body()));
       
var tcLarge = new dijit.layout.TabContainer({
            style : "width:890px;height:240px;visibility:hidden;display:none;padding:2px;", id: "tabs"}, dojo.create("div", null, dojo.body()));       
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
0 Kudos