PDA

View Full Version : Ext.ux.Plugin.RemoteComponent problem



titzu
12 Aug 2009, 10:25 PM
did anyone used Ext.ux.Plugin.RemoteComponent ?
Everithing works as expected except the "listeners" part where I get "l.fireFn.apply is not a function"

I have the php file



$checkbox = array(
array(
'xtype' => "fieldset",
'title' => 'Set Default Questions - Step 1',
'autoHeight' => true,
'layout' => 'form',
'collapsed' => false,
'collapsible' => true,
'items' => array(
'xtype' => 'checkboxgroup',
'itemCls' => 'x-check-group-alt',
'columns' => 3,
'vertical' => true,
'items' => array()
)
),
array(
'xtype' => 'button',
'text' => 'Done - Go to Step 2',
'disabled' => false,
'listeners'=> array(
'click' => "function(button, event){alert('aaa')}"
)
)
);

echo json_encode($checkbox);
and this is the js



var fp = new Ext.FormPanel({
title : 'Form Builder',
plugins: new Ext.ux.Plugin.RemoteComponent({
url : 'URLLLL'
})
});

Animal
13 Aug 2009, 1:05 AM
This is an ExtJs forum. Do not post PHPcode, post the JSON you are returning.