Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    problem with TabSet

    I get the following error in the developer console when adding a Tab to a TabSet:

    13:45:05.953:XRP7:WARN:Log:Error:
    'Expected ';''
    in http://localhost:8080/dayport/pages/index.jsp
    at line 1
    Element.insertAdjacentHTML(_1=>[DIVElement]{ID:isc_41}, _2=>"beforeEnd", _3=>"<div id=isc_48 eventProxy=PS.23 class='t..."[1377], _4=>true)
    Canvas.$q1(_1=>[DIVElement]{ID:isc_41}, _2=>"beforeEnd", _3=>"<div id=isc_48 eventProxy=PS.23 class='t..."[1377], _4=>true)
    Canvas.$p8(_1=>true)
    Canvas.draw(_1=>undef, undef, undef)
    StatefulCanvas.draw(_1=>undef, _2=>undef, _3=>undef)
    Layout.addMembers(_1=>Array[1], _2=>0, _3=>undef)
    Toolbar.addButtons(_1=>Array[1], _2=>0)
    TabBar.addTabs(_1=>Array[1], _2=>0)
    "if(!_2&&this.tabBarPosition==isc.Canvas.LEFT)_2=0;this.addButtons(_1,_2);if(this._baseLine!=null){this._baseLine.bringToFront();var _3=this.getButton(this.getSelectedTab());if(_3)_3.bringToFront()}"
    TabSet.addTabs(_1=>Array[1], _2=>0)
    TabSet.addTab(_1=>Obj{ID:PS.23}, _2=>undef)
    "return this.addTabs(_1,_2)"
    JournalPane.addPageSection(section=>Obj{ID:PS.23})
    callback(rpcResponse=>Obj, data=>Obj{ID:PS.23}, rpcRequest=>Obj)
    "isc_JournalPane_56.addPageSection(data)"
    Class.fireCallback(_1=>"isc_JournalPane_56.addPageSection(data)", _2=>"rpcResponse,data,rpcRequest", _3=>Array[3], _4=>[RPCManager ID:builtinApplication], _5=>undef) on [Class Class]
    Class.fireCallback(_1=>"isc_JournalPane_56.addPageSection(data)", _2=>"rpcResponse,data,rpcRequest", _3=>Array[3], _4=>undef)
    "return isc.Class.fireCallback(_1,_2,_3,this,_4)"
    RPCManager.fireReplyCallback(_1=>"isc_JournalPane_56.addPageSection(data)", _2=>Obj, _3=>Obj, _4=>Obj{ID:PS.23})
    RPCManager.fireReplyCallbacks(_1=>Obj, _2=>Obj)
    RPCManager.performOperationReply(_1=>Obj, _2=>Obj)
    RPCManager.$39d(_1=>6)
    RPCManager.performTransactionReply(_1=>6, _2=>"//isc_RPCResponseStart-->[\n {\n ..."[186], _3=>undef)
    callback(transactionNum=>6, results=>Obj, wd=>undef)
    "isc.RPCManager.performTransactionReply(transactionNum,results,wd)"
    ** recursed on Class.fireCallback

    here is the TabSet:

    Code:
    this.pageSections = isc.TabSet.create({width: "100%", tabs:[]});
    Here is the place where the Tab is added:

    Code:
        addPageSection: function(section) {
        	var title = section.title;
        	var editor = isc.PageSectionEditor.create({
        						tabSet: this.pageSections,
        						tabIdentifier: section.id});
        	this.pageSections.addTab({
        			ID: section.id,
        			title: title,
        			pane: editor});
        	editor.setSection(section);
        },
    I haven't run into this before as Tabs usually work fine.

    Any thoughts?

    -p

    #2
    Looks like you have a dot (".") in an ID (PS.23) - IDs have to be valid JavaScript identifiers.

    Comment

    Working...
    X