PDA

View Full Version : Ext.util.Cookies is undefined while using ext-debug.js file ?



debabrata
14 Mar 2012, 3:09 AM
Ext.util.Cookies is undefined while using ext-debug.js file ?

I am using mvc arcitecture so i have to use ext-debug.js file. But Ext.util.Cookies is undefined while using that file. It is working fine ext-all-debug.js file.

Is there any solution or i am missing something ?

Thanks in advance.

burnnat
14 Mar 2012, 4:24 AM
I'd recommend reviewing sections 2 and 3 of the "Getting Started" guide (http://docs.sencha.com/ext-js/4-0/#%21/guide/getting_started-section-2) for ExtJS 4. There, it explains that ext-debug.js only contains "the minimum number of core Ext JS classes needed to get up and running. Any additional classes should be dynamically loaded." Thus, if you need to use Ext.util.Cookies, you'll need to set up your class dependencies such that it is included dynamically.

debabrata
14 Mar 2012, 9:12 PM
Thanks for your response.It worked.