View Full Version : Problem loading form explicit

27 Jul 2009, 9:49 AM
Hi there,

I'm trying to load a form using the piece of code below. And it works. Then when I save the form I call the same piece of code to update the form. The AJAX call works but nothing is change - I have to reload to see the changes. Is there an update function I should call on the textfield or???

var conn = new Ext.data.Connection();
url: 'xform/seoForm.asp?cmd=fload',
params: {
id: curMenuID
success: function(resp,opt) {
obj = Ext.util.JSON.decode(resp.responseText);

if (obj.data.seoTitle.dest == 'value') {
Ext.getCmp('id_seoForm_seoTitle').emptyText = '';
} else {
Ext.getCmp('id_seoForm_seoTitle').emptyText = obj.data.seoTitle.text;
Thanks in advance

- Thomas