PDA

View Full Version : Problem with loading data to a form



Shining77
16 Sep 2010, 2:42 AM
Hello !!

I have the following problem:

The form looks like this:

var newForm = new Ext.FormPanel({
url: 'form-submit.php',
id: 'form',
width: 400,
minSize: 400,
frame: true,
title: 'Neue Norm',
items: [{
...
}]
});

Now I want to do this in a handler-function:

newForm.render("contentData");
newForm.getForm().load({
url:'dataForEdit.php',
params:{
id: id
}
});

Firebug tells me that the JSON-Response is correct. But the form is always empty.

What might be the problem??

laurentParis
16 Sep 2010, 3:45 AM
do you configurate reader into config form ?