PDA

View Full Version : IE 6 Operation aborted error



umk
23 Sep 2009, 12:45 AM
what is wrong with my code? It used to work properly in 2.2 but I started encountering the "Operation Aborted" error message when I upgraded to version 3.0

This is the code found just above the <body> tag.

<script type="text/javascript" src="js/ext-base.js"></script>
<script type="text/javascript" src="js/ext.js"></script>
<script language="javascript" type="text/javascript">
Ext.onReady(function(){
var months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
var win;

if(!win)
{
win = new Ext.Window({
renderTo : document.body,
layout : 'fit',
closeAction :'hide',
plain : true,
id: 'bday_list',
width: 220,
height: 300,
autoScroll: true,
buttonAlign: 'center',
buttons: [{
text : '<<',
id: 'lmonth'
},{
text : '>>',
id: 'nmonth'
}]
});
}

show_window = function(month){
var conn = new Ext.data.Connection();
conn.request({
url: 'ajax/ajax_bday_list.cfm',
method: 'POST',
params: {"act":'getBdayList',"month": month},
success: function(resp) {
win.setTitle(months[month] + ' Birthdays')
win.body.update(resp.responseText);
win.syncSize();
win.show();
var prev_month = month - 1;
var next_month = month + 1;
if(month == 0)
prev_month = 11;
else if (month == 11)
next_month = 0;
win.buttons[0].setHandler(function(){show_window(prev_month);})
win.buttons[1].setHandler(function(){show_window(next_month);})
},
failure: function() {
Ext.Msg.alert('Status', 'There was a problem retreiving the requested data.');
}
});
}
});
</script>