I have a javascript function that is invoked by dwr from server side and processes the response(xml data) in client side. Basically the server side program is executing a large sql script(it could contain more than 10000 sql statements) and call the java script function thru dwr call after execution of each statement. I am getting "Warning: Java script unresponsive error" at arbitrary time during the execution. If I execute less number of statement(~1000 statements) then it executes smoothly without any error. I am not able to find out why the unresponsive message comes.
Client side
function callback(xml) {
process_xml_and_display_result
}
Server side
void executeScript(script) {
for(statement:script) {
statement_exec_result = execute(statement);
xml=build_xml(statement_exec_result);
callback(xml);
}
}
Thanks in advance.