PDA

View Full Version : Help me understand a "PluginCls is undefined" Error...



greencavern
21 Jun 2010, 5:17 PM
Hi all !

I'm actually working on a window with a complete dynamic grid :
http://www.greencavern.com/563/regle.html

Everything is working fine with the grid now... but when i want to add a simple element (a spinner Field) to a form in another independant window, i've got an error like :


PluginCls is undefined
if (PluginCls.init) { I tried with a textfield and it's ok...

You can test the error on this adress :
http://www.greencavern.com/563/reglebis.html

same code with a simple spinnerfield that replace a textfield in the panel of the first window (line 60)

I don't manage to figure why it is happening.

Any help would be very appreciated.

Thanks in advance.

darthwes
21 Jun 2010, 6:24 PM
if (typeof PluginCls !== 'undefined') {
if (PluginCls.init) {
...
}
}


Your variable might be misnamed. Otherwise you're getting an undefined object somehow in that variable (somewhere above you in the code).

greencavern
22 Jun 2010, 5:28 AM
Thanks but I didn't touch anything in the code... but specify another xtype for one field and i've this error...


xtype: 'textfield'
to

xtype: 'spinnerfield'

it's also working with :

xtype: 'slider'

If i've too, i would gladly pay a small fee for a quick and precise answer that allow me to solve this problem.

carol.ext
22 Jun 2010, 8:44 AM
Did you include the required files for the Spinner Field user extension? Take a look at the js and css included in the example.

greencavern
22 Jun 2010, 10:32 AM
I've included these two files...


<script type="text/javascript" src="Spinner.js"></script><script type="text/javascript" src="SpinnerField.js"></script>

I use a lot of spinner controls in other part of the global application without any problem.

Could it be a possible conflict between Metagrid plugin and SpinnerField ones ?