Hi dudes,
i was looking for update DIV contente with ajax like prototype ajax.updater but i only found ajax.request.
I made search form in html table like this:
function initCalendars() {
Ext.QuickTips.init();
var start = new Ext.form.DateField({
allowBlank:false,
format:'d-m-Y',
minValue:'01-01-90',
value:new Date ().add (Date.DAY, -7).format ('d-m-Y'), Xaraya :: xarfasttrack div #content-admin overflow:scroll:: Subject: xarfasttrack div #content-admin overflow:scroll With regards to upgrade, it is pretty straightforward as long as you update your theme first. http://www.xaraya.com/index.php/xarbb/topic/2458HOME |
applyTo: 'date1'
});
var end = new Ext.form.DateField({
allowBlank:false,
format:'d-m-Y',
minValue:'01-01-90',
value:new Date ().add (Date.DAY, 0).format ('d-m-Y'),
applyTo: 'date2'
});
var texto = new Ext.form.TextField({
id:"search_text",
width:348,
allowBlank:false,
blankText:"Insert text for search",
vType: "alphanum",
vtypeText: "Invalid text",
applyTo: 'text1'
});
var buscar = new Ext.Button({
text:'Search',
tooltip:'Start search',
id:'search_btn',
iconCls:'search_btn',
applyTo:'search1',
handler:function() { search_news(); }
});
}
function search_news(){
Ext.Ajax.request({
url: 'search_news.php',
method: 'POST',
params: {"start": Ext.get('date1').value, "end": Ext.get('date2').value, "tema": Ext.get('tema').value, "text": Ext.get('text1').value},
success: function() {},
failure: function() {}
});
}
How can i update DIV element with Ajax?
Thx, regards!
http://extjs.com/deploy/dev/docs/?class=Ext.Element&member=load
Perfect! :D
Nortel Unveils Vision, Strategy for Israeli High-Performance Net
Busy Friday Leads to Strong Close for Net Stocks
|