jquery hangs mysteriously when reloading page

jquery hangs mysteriously when reloading page

Hi all!

I am building a tool to view/edit entries in a database.
It will be used by a limited number of persons, all of them using Firefox.

Server-side: php4, Mysql 4.0.24_Debian-10sarge2-log
Client-side: Firefox 3.0.14, Windows XP

Jquery version: 1.3.2

Most functions on the page are either ajax calls that retrieve new data from the server or DOM modifications of the way the data is displayed.

Everything works well, I can click around as much as I like and get the desired response.

But ... as soon as I want to reload the page or even just close the Firefox tab,
jquery hangs (Firefox-message: script busy or stopped responding) and has to be stopped.
There seems to be an endless loop, no use in waiting even several minutes.

jquery.js is interrupted at one of these positions:

jQuery.extend({
        ....
        each: function( object, callback, args ){
                .....
                **stopped here**               
OR
jQuery.extend({
        ....
        data: function( elem, name, data ){
                ...
                **stopped here**
               
                 
OR
jQuery.event = {
        ......
        remove: function(elem, types, handler) {
                **stopped here**

OR
jQuery.each( ("blur,focus,load,resize,scroll,unload,click,dblclick," +
        "mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave," +
        "change,select,submit,keydown,keypress,keyup,error").split(","), function(i, name){

        // Handle event binding
        jQuery.fn[name] = function(fn){
                **stopped about here**
                return fn ? this.bind(name, fn) : this.trigger(name);
        };
});


Any ideas?

Isn't there a way to just stop any javascript and thus jquery activity as soon as the page should be reloaded?

Any help is very much appreciated!

Greetings,

stobbx