Apr 13, 2009, 8:47 AM
JScript Error: Coolite.AjaxMethods is null or not an object
Hi,
I try to add Tabs into TabPanel programmatically and bind activate event of tab to the server method in JavaScript code. The server side AjaxMethod must update East region with document information.
* <script type="text/javascript">
* function addTab(tabPanel, id) {
* var tab_id = 'document_'+id;
* var url = 'AnotoDocumentViewer.aspx?documentid='+id+'&pageid=1&clientid=1';
* var lcTitle = 'Document # ' + id + ' (Seite 1)';
* var tab = tabPanel.getComponent(tab_id);
* if (!tab) {
* tab = tabPanel.add({*
* id: tab_id,*
* title: lcTitle,*
* closable:true, *
* autoLoad: {
* showMask: true,
* url: url,
* mode:'iframe',
* maskMsg: 'Loading document ...'
* } *
* });
* tab.on('activate', function() {
* *
* Coolite.AjaxMethods.mmks_displaydocumentinfo(id, {*
* eventMask : {
* showMask: true
* }
* });
* }, this);
* }
* tabPanel.setActiveTab(tab);
* }
* </script>
*When script executed I'v got an error about Coolite.AjaxMethods is null or not an object. When I suspend debuger and look the Coolite variable... this var does not contains AjaxMethods... Only "AjaxMethod,AjaxEvent and Ext" .
Am I do something wrong?