Oct 30, 2013, 2:49 PM
[CLOSED] Issue with latest from SVN (revision 5459)
Just taken the latest from SVN (revision 5459) and when testing my site, I now have a blank page. The only change is to use latest Ext.Net from SVN, no other change included. To get the ball rolling the only info I can give seems to point to the DatePicker. The console output says :-
SCRIPT1028: Expected identifier, string or number
Index, line 60 character 8584
And the CDATA is :-
SCRIPT1028: Expected identifier, string or number
Index, line 60 character 8584
And the CDATA is :-
<script type="text/javascript">
//<![CDATA[
Ext.net.ResourceMgr.init({isMVC:true,theme:"gray"});Ext.onReady(function(){window.App.TOOLBAR_TASK_MANAGER_ID=Ext.create("Ext.net.TaskManager",{proxyId:"TOOLBAR_TASK_MANAGER_ID",autoRunDelay:1000,tasksConfig:[{clientRun:fnDoFlash}]});window.App.BUTTON_CONTROL_STORE_ID=Ext.create("Ext.data.Store",{model:Ext.define(Ext.id(), {extend: "Ext.data.Model", fields:[{name:"ButtonId"},{name:"FlashEnabled",type:"boolean"}] }),storeId:"BUTTON_CONTROL_STORE_ID",autoLoad:true,proxy:{type:'memory'}});Ext.create("Ext.container.Viewport",{renderTo:Ext.getBody(),items:[{border:false,padding:"0 0 0 0",anchor:"100% 100%",items:[{border:false,padding:"0 0 0 0",anchor:"100% 100%",items:[{border:false,padding:"0 0 0 0",anchor:"100% 100%",items:[{baseCls:"x-plain",border:false,items:[{xtype:"container",anchor:"100% 100%",items:[{padding:"5, 20, 5, 20",xtype:"container",flex:1,items:[{padding:1,xtype:"container",flex:1,items:[{items:[{cls:"cams-fieldset atlas border2",margin:10,padding:10,xtype:"fieldset",defaults:{"hideEmptyLabel":false},items:[{id:"STATUS_PANEL_ID",border:false,width:100,items:[{baseCls:"x-plain",border:false,items:[{minHeight:100,minWidth:100,width:90,xtype:"container",items:[{baseCls:"x-plain",tooltips:[{xtype:"tooltip",items:[{xtype:"netlabel",text:"Indicates the number of candidates awaiting induction"}],bodyCls:"cams-tooltip",trackMouse:true}],x:0,y:0,items:[{xtype:"netimage",imageUrl:"/Content/themes/Default/images/64x64/Awards/Blue/AwaitingInduction64x64.png"}],layout:{type:"hbox",pack:"center",align:"middle"}},{baseCls:"x-plain",x:0,y:0,items:[{margin:"10 0 0 0",style:"font-weight: bold; color: #ffffff; ",xtype:"netlabel",text:"2"}],layout:{type:"hbox",pack:"center"}},{cls:"cams-word-wrap-label",height:20,xtype:"netlabel",y:60,text:"Awaiting Induction"}],layout:"absolute"}],layout:{type:"vbox",pack:"center",align:"stretch"}},{baseCls:"x-plain",border:false,items:[{minHeight:100,minWidth:100,width:90,xtype:"container",items:[{baseCls:"x-plain",tooltips:[{xtype:"tooltip",items:[{xtype:"netlabel",text:"Indicates the number of 'in progress' candidates"}],bodyCls:"cams-tooltip",trackMouse:true}],x:0,y:0,items:[{xtype:"netimage",imageUrl:"/Content/themes/Default/images/64x64/Awards/Blue/AwaitingInduction64x64.png"}],layout:{type:"hbox",pack:"center",align:"middle"}},{baseCls:"x-plain",x:0,y:0,items:[{margin:"10 0 0 0",style:"font-weight: bold; color: #ffffff; ",xtype:"netlabel",text:"3"}],layout:{type:"hbox",pack:"center"}},{cls:"cams-word-wrap-label",height:20,xtype:"netlabel",y:60,text:"In Progress"}],layout:"absolute"}],layout:{type:"vbox",pack:"center",align:"stretch"}},{baseCls:"x-plain",border:false,items:[{minHeight:100,minWidth:100,width:90,xtype:"container",items:[{baseCls:"x-plain",x:0,y:0,items:[{xtype:"netimage",imageUrl:"/Content/themes/Default/images/64x64/Awards/Blue/Assessor64x64.png"}],layout:{type:"hbox",pack:"center",align:"middle"}},{baseCls:"x-plain",x:0,y:0,items:[{margin:"10 0 0 0",style:"font-weight: bold; color: #ffffff; ",xtype:"netlabel",text:"0"}],layout:{type:"hbox",pack:"center"}},{cls:"cams-word-wrap-label",height:20,xtype:"netlabel",y:60,text:"Approved Candidates"}],layout:"absolute"}],layout:{type:"vbox",pack:"center",align:"stretch"}},{margin:5,xtype:"netimage",imageUrl:"/Content/themes/Default/images/Other/Separator.png"},{baseCls:"x-plain",border:false,items:[{minHeight:100,minWidth:100,width:90,xtype:"container",items:[{baseCls:"x-plain",x:0,y:0,items:[{xtype:"netimage",imageUrl:"/Content/themes/Default/images/64x64/Awards/Orange/Verifier64x64.png"}],layout:{type:"hbox",pack:"center",align:"middle"}},{baseCls:"x-plain",x:0,y:0,items:[{margin:"10 0 0 0",style:"font-weight: bold; color: #ffffff; ",xtype:"netlabel",text:"0"}],layout:{type:"hbox",pack:"center"}},{cls:"cams-word-wrap-label",height:20,xtype:"netlabel",y:60,text:"Verified Candidates"}],layout:"absolute"}],layout:{type:"vbox",pack:"center",align:"stretch"}}],layout:{type:"vbox",pack:"center",align:"stretch"},bodyCls:"x-panel-body-cams"}],layout:"fit",title:"My Status"}]},{flex:7,items:[{id:"CANDIDATE_INDUCTION_CENTRE_FORM_CONTAINER_ID",border:false,xtype:"container",items:[{cls:"cams-fieldset atlas border2",margin:10,padding:10,xtype:"fieldset",defaults:{"hideEmptyLabel":false},items:[{store:{model:Ext.define(Ext.id(), {extend: "Ext.data.Model", fields:[{name:"CandidateId"},{name:"CandidateName"},{name:"Award"},{name:"Progress"},{name:"Stage"},{name:"StageDate",type:"date",dateFormat:"c"},{name:"AcceptOrRejectDate",type:"boolean"}] }),storeId:"ASSESSOR_HOME_GRID_STORE",autoLoad:true,proxy:{type:"ajax",reader:{type:"json",root:"Data"},url:"/Api/AssessorApi/RetrieveAssessorCandidates"}},border:true,plugins:[{ptype:"cellediting",listeners:{edit:{fn:fnGridEdit}}}],xtype:"grid",bodyCls:"x-panel-body-cams",columnLines:true,columns:{items:[{width:150,flex:2,dataIndex:"CandidateName",menuDisabled:true,text:"Assigned Candidate",commands:[{command:"ViewCandidateProfileWindow",iconCls:"profile-icon",tooltip:{text:"View Candidate Profile"}}],isCellCommand:true,listeners:{command:{fn:OnCandidateInfoCellCommand}}},{width:235,xtype:"componentcolumn",dataIndex:"Progress",menuDisabled:true,text:"Units Approved",component:function(){return [{xtype:"container",items:[{baseCls:"x-plain",height:40,width:260,xtype:"panel",items:[{itemId:"ProgressComplete",border:false,xtype:"progressbar",tooltips:[{xtype:"tooltip",items:[{xtype:"netlabel",text:"Number of completed Units"}],bodyCls:"cams-tooltip",trackMouse:true}],value:0.0},{itemId:"ProgressIncomplete",border:false,cls:"cams-progress-bar-grey",xtype:"progressbar",tooltips:[{xtype:"tooltip",items:[{xtype:"netlabel",text:"Number of Units to complete"}],bodyCls:"cams-tooltip",trackMouse:true}],value:0.0},{xtype:"container",items:[{baseCls:"x-plain",x:0,y:0,items:[{itemId:"StatusIcon",margin:"14 5 0 8",xtype:"netlabel"}],layout:{type:"hbox",pack:"center",align:"middle"}},{baseCls:"x-plain",x:0,y:0,items:[{itemId:"StatusIconLabel",margin:"22 0 0 17",style:"font-weight: bold; color: #ffffff; ",xtype:"netlabel"}],layout:{type:"hbox",pack:"center",align:"middle"}}],layout:"absolute"}],layout:{type:"hbox",pack:"center",align:"middle"}}]}];},listeners:{bind:{fn:bindUnitsApprovedCell}}},{width:65,xtype:"componentcolumn",dataIndex:"Stage",menuDisabled:true,text:"Stage",component:function(){return [{xtype:"container",items:[{baseCls:"x-plain",height:40,width:60,xtype:"panel",items:[{xtype:"container",items:[{baseCls:"x-plain",x:0,y:0,items:[{itemId:"Image",height:40,width:40,xtype:"netimagebutton"}],layout:{type:"hbox",pack:"center",align:"middle"}},{baseCls:"x-plain",x:0,y:0,items:[{itemId:"StatusLabelBar",margin:"14 0 0 28",xtype:"netlabel"}],layout:{type:"hbox",pack:"center",align:"middle"}},{baseCls:"x-plain",x:0,y:0,items:[{itemId:"StatusLabel",margin:"12 0 0 33",style:"font-weight: bold; color: #ffffff; ",xtype:"netlabel"}],layout:{type:"hbox",pack:"center",align:"middle"}},{itemId:"StatusLabelBarTooltip",xtype:"tooltip"}],layout:"absolute"}],layout:{type:"hbox",pack:"center",align:"middle"}}]}];},listeners:{bind:{fn:bindStageCell}}},{width:150,menuDisabled:true,text:"Competency",commands:[{command:"ViewCandidateAwardWindow",iconCls:"award-icon",tooltip:{text:"View Candidate Award"}},{command:"SubmitCandidateEvidence",iconCls:"submit-evidence-icon",tooltip:{text:"Submit Candidate Evidence"}},{command:"ReviewCandidateEvidence",iconCls:"evidence-icon",tooltip:{text:"Review Candidate Evidence"}}],isCellCommand:true,prepareCommand:fnPrepareCompetencyCommand,listeners:{command:{fn:OnCandidateCompetencyCellCommand}}},{width:90,xtype:"datecolumn",dataIndex:"StageDate",editor:new Ext.grid.CellEditor(Ext.apply({field:{xtype:"datefield",tooltips:[{xtype:"tooltip",items:[{xtype:"netlabel",text:"View Calendar"}],bodyCls:"cams-tooltip",trackMouse:true}],format:"d/m/Y",minValue:new Date(2013,0,1),submitFormat:"d/m/Y"}}, {})),text:"Stage Date ",commands:[{command:"AcceptDate",iconCls:"greentick-icon",tooltip:{text:"Accept Date "}},{command:"RejectDate",iconCls:"redcross-icon",tooltip:{text:"Reject Date "}}],isCellCommand:true,prepareCommand:fnPrepareStageDateCommand,format:"d/m/Y",listeners:{command:{fn:OnStageDateCellCommand}}}]},selModel:Ext.create("Ext.selection.CellModel",{selType:"cellmodel"})}],title:"My Candidates"}],layout:"fit"}]},{flex:3,items:[{id:"PlanningCalendar",cls:"cams-fieldset atlas border2",margin:10,padding:10,xtype:"fieldset",defaults:{"hideEmptyLabel":false},items:[{id:"HighlightDates",border:false,cls:"ext-cal-nav-picker",maxWidth:350,plugins:[Ext.create("Ext.ux.DatePicker.HighlightDates",{:"",cls:"your-class-for-specific-dates",nodates:[],nocls:"your-class-for-unavailable-dates"})],xtype:"datepicker",format:"d/m/Y",longDayFormat:"d F Y",listeners:{beforerender:{fn:getEvents},render:{fn:function(item){this.todayBtn.hide()}},select:{fn:ConfirmMe}}},{xtype:"fieldset",items:[{baseCls:"unavailable-dates",xtype:"netlabel",text:"16"},{xtype:"netlabel",text:" Unavailable Dates"},{baseCls:"x-plain",height:10},{baseCls:"specific-dates",xtype:"netlabel",text:"21"},{xtype:"netlabel",text:" Assessment Plan Planning Dates"},{baseCls:"x-plain",height:10},{baseCls:"today",xtype:"netlabel",text:"22"},{xtype:"netlabel",text:" Today"},{baseCls:"x-plain",height:10}],title:"Calendar Legend"}],layout:"fit",title:"My Planning Calendar"}]}],layout:{type:"hbox",align:"stretchmax"}}],layout:"fit"},{height:80,xtype:"container",items:[{border:false,height:150,padding:"5, 20, 5, 20",xtype:"container",items:[{baseCls:"x-plain",width:155},{cls:"cams-fieldset atlas border2",width:550,xtype:"fieldset",defaults:{"hideEmptyLabel":false},items:[{height:35,padding:"0 0 0 20",xtype:"container",items:[{xtype:"container",items:[{baseCls:"x-plain",x:0,y:0,items:[{itemId:"StatusIcon",cls:"cams-circle-24 amber",margin:"6 5 0 8",xtype:"netlabel"}],layout:{type:"hbox"}},{baseCls:"x-plain",x:0,y:0,items:[{itemId:"StatusIconLabel",margin:"10 0 0 16",style:"font-weight: bold; color: #ffffff; ",xtype:"netlabel",text:"V"}],layout:{type:"hbox"}}],layout:"absolute"},{margin:"10 0 0 0",xtype:"netlabel",text:"Verification Pending"}],layout:{type:"hbox"}},{height:35,padding:"0 0 0 20",xtype:"container",items:[{xtype:"container",items:[{baseCls:"x-plain",x:0,y:0,items:[{itemId:"StatusIcon",cls:"cams-circle-24 amber",margin:"6 5 0 8",xtype:"netlabel"}],layout:{type:"hbox"}},{baseCls:"x-plain",x:0,y:0,items:[{itemId:"StatusIconLabel",margin:"10 0 0 16",style:"font-weight: bold; color: #ffffff; ",xtype:"netlabel",text:"C"}],layout:{type:"hbox"}}],layout:"absolute"},{margin:"10 0 0 0",xtype:"netlabel",text:"Certification Pending"}],layout:{type:"hbox"}},{height:35,padding:"0 0 0 20",xtype:"container",items:[{xtype:"container",items:[{baseCls:"x-plain",x:0,y:0,items:[{itemId:"StatusIcon",cls:"cams-circle-24 amber",margin:"6 5 0 8",xtype:"netlabel"}],layout:{type:"hbox"}},{baseCls:"x-plain",x:0,y:0,items:[{itemId:"StatusIconLabel",margin:"10 0 0 16",style:"font-weight: bold; color: #ffffff; ",xtype:"netlabel",text:"A"}],layout:{type:"hbox"}}],layout:"absolute"},{margin:"10 0 0 0",xtype:"netlabel",text:"Appeal Pending"}],layout:{type:"hbox"}}],layout:{type:"hbox",align:"stretch"},title:"My Candidates Legend"},{baseCls:"x-plain",width:100,flex:1}],layout:"hbox"}],layout:"hbox"}],layout:"anchor"}],layout:{type:"vbox",align:"stretch"}}],layout:"anchor"}],layout:"anchor"}],layout:"anchor",bbar:{border:false,padding:"0 0 0 0",xtype:"statusbar",items:[{id:"FOOTER_PANEL_ID",border:false,xtype:"panel",items:[{border:false,flex:1,items:[{style:"color: #EDA900; font-weight:bold;",xtype:"netlabel",text:"Designed to help build a competent workforce"}],layout:{type:"hbox",align:"middle"}},{border:false,flex:1,items:[{style:"color: #888888;",xtype:"netlabel",text:"CAMS powered by "},{height:18,width:50,xtype:"netimage",imageUrl:"/Content/themes/Default/images/Other/AtlasLogo156x57.png"}],layout:{type:"hbox",pack:"end",align:"middle"}}],layout:{type:"hbox",align:"middle"},bodyPadding:10}],layout:"fit"},tbar:{border:false,cls:"page-header-toolbar",padding:"0 0 0 0",style:"background:#ffffff;",xtype:"toolbar",items:[{id:"MAIN_TOOLBAR_ID",border:false,border:"0 0 5 0",cls:"page-header-toolbar",height:55,xtype:"toolbar",items:[{xtype:"netimagebutton",handler:fnBackButton,imageUrl:"/Content/themes/default/images/32x32/Up/Back32x32.png",overImageUrl:"/Content/themes/default/images/32x32/Over/Back32x32.png",disabledImageUrl:"/Content/themes/default/images/32x32/Inactive/Back32x32.png",pressedImageUrl:"/Content/themes/default/images/32x32/Down/Back32x32.png"},{xtype:"tbspacer"},{height:36,xtype:"netimage",imageUrl:"/Content/ClientResources/Atlas/images/logo.jpg"},{xtype:"tbfill"},{cls:"header-title",xtype:"tbtext",text:"Assessor Home"},{id:"TOOLBAR_HOME_BUTTON_ID",cls:"header-menu-button",xtype:"netimagebutton",handler:function(){Ext.net.Mask.show({ msg: 'Loading .........'}); window.location = '/UserActivities/Index'},tooltip:"Return to your Home screen",imageUrl:"/Content/themes/default/images/32x32/Up/Home32x32.png",overImageUrl:"/Content/themes/default/images/32x32/Over/Home32x32.png",disabledImageUrl:"/Content/themes/default/images/32x32/Inactive/Home32x32.png",pressedImageUrl:"/Content/themes/default/images/32x32/Down/Home32x32.png"},{id:"TOOLBAR_SUBMIT_EVIDENCE_BUTTON_ID",cls:"header-menu-button",xtype:"netimagebutton",handler:function(){Ext.net.Mask.show({ msg: 'Loading .........'}); window.location = '/UserActivities/SubmitEvidence'},tooltip:"Upload your evidence against the selected performance criteria",imageUrl:"/Content/themes/default/images/32x32/Up/Upload32x32.png",overImageUrl:"/Content/themes/default/images/32x32/Over/Upload32x32.png",disabledImageUrl:"/Content/themes/default/images/32x32/Inactive/Upload32x32.png",pressedImageUrl:"/Content/themes/default/images/32x32/Down/Upload32x32.png"},{id:"TOOLBAR_ASSESSOR_VIEW_BUTTON_ID",cls:"header-menu-button",xtype:"netimagebutton",handler:function(){Ext.net.Mask.show({ msg: 'Loading .........'}); window.location = '/Assessor/Index'},tooltip:"Select to view your candidates",imageUrl:"/Content/themes/default/images/32x32/Up/Assesor32x32.png",overImageUrl:"/Content/themes/default/images/32x32/Over/Assesor32x32.png",disabledImageUrl:"/Content/themes/default/images/32x32/Inactive/Assesor32x32.png",pressedImageUrl:"/Content/themes/default/images/32x32/Down/Assesor32x32.png"},{width:10,xtype:"tbspacer"},{id:"TOOLBAR_MESSAGE_BUTTON_ID",cls:"header-menu-button",xtype:"netimagebutton",handler:function(){Ext.net.Mask.show({ msg: 'Loading .........'}); window.location = '/UserActivities/Messages'},tooltip:"Select to view your messages",imageUrl:"/Content/themes/default/images/32x32/Up/Messages32x32.png",overImageUrl:"/Content/themes/default/images/32x32/Over/Messages32x32.png",disabledImageUrl:"/Content/themes/default/images/32x32/Inactive/Messages32x32.png",pressedImageUrl:"/Content/themes/default/images/32x32/Down/Messages32x32.png"},{id:"TOOLBAR_HELP_BUTTON_ID",cls:"header-menu-button",xtype:"netimagebutton",handler:function(){Ext.net.Mask.show({ msg: 'Loading .........'}); window.location = '/UserActivities/Help?id=AssessorHome'},tooltip:"CAMS Help",imageUrl:"/Content/themes/default/images/32x32/Up/Help32x32.png",overImageUrl:"/Content/themes/default/images/32x32/Over/Help32x32.png",disabledImageUrl:"/Content/themes/default/images/32x32/Inactive/Help32x32.png",pressedImageUrl:"/Content/themes/default/images/32x32/Down/Help32x32.png"},{id:"TOOLBAR_LOGOFF_BUTTON_ID",cls:"header-menu-button",xtype:"netimagebutton",handler:function(){Ext.net.Mask.show({ msg: 'Loading .........'}); window.location = '/UserActivities/LogOff'},tooltip:"Log out of CAMS",imageUrl:"/Content/themes/default/images/32x32/Up/LogOut32x32.png",overImageUrl:"/Content/themes/default/images/32x32/Over/LogOut32x32.png",disabledImageUrl:"/Content/themes/default/images/32x32/Inactive/LogOut32x32.png",pressedImageUrl:"/Content/themes/default/images/32x32/Down/LogOut32x32.png"},{width:20,xtype:"tbspacer"}]}],layout:"fit"}}],layout:"fit"});});
//]]>
</script>
I suspect that the issue might be the missing tag before the colon here :- Ext.ux.DatePicker.HighlightDates",{:"",cls:
Last edited by Daniil; Nov 19, 2013 at 5:54 AM.
Reason: [CLOSED]