jQuery-Ajax“太多的递归"错误showHide()和css.Fn [英] Jquery - Ajax "too much recursion" errors showHide() and css.Fn

查看:59
本文介绍了jQuery-Ajax“太多的递归"错误showHide()和css.Fn的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对不起,我的英语.我收到太多递归"的消息,我认为它在ajax中,这是代码:

Sorry for my english. I get the message of "too much recursion", and i think is in the ajax, here is the code:

function procesarPdf(carpeta,idRevista,dirarchivo,paginaProcesar,nombreArchivo){        
            $.ajax({
                type:"POST",
                url:'php/procesar_pdf.php',
                data:{carpeta:carpeta,revista:idRevista,archivo:dirarchivo,paginaProcesar:paginaProcesar,nombreArchivo:nombreArchivo},
                async:false,
                cache:false,
                success: function(data) {
                    var datos = data;           
                    if(datos.terminado==false){

                        procesarPdf(datos.carpeta,datos.idRevista,datos.archivo,datos.paginaAProcesar,datos.nombreArchivo);

                    } else {

                        alert("Finish process");
                        quitarEspera(); 
                    }
                }
            });
        }

我使用pdf处理图像以获取图像和缩略图,而其文件为procesar_pdf.php.

I use pdf to process images to get images and thumbnails whit the file procesar_pdf.php.

成功后,我再次调用该函数以继续该过程,并使用jquery的progressbar查看进度,但是当进度达到50%或56%或65%时,萤火虫会向我抛出太多信息递归"以及其他错误,如"css.Fn"或"showHide(this,arguments)".

When sucess i call again the function to continue the process and i use progressbar of jquery to see the progress, but when the progress is in 50% or 56% or 65%, the firebug throw me the message of "too much recursion" with other error how "css.Fn" or "showHide(this,arguments)".

我不知道错误,请告诉我是否知道错误.

I dont know the error, please tell me if know the error.

推荐答案

在没有看到其余代码的情况下,您似乎在进行任何操作时都可能递归调用procesarPdf()太多次. 此处是在另一个用户遇到类似问题并收到相同错误的原因的根本原因.

Without seeing the rest of your code, it looks like you might be recursively calling the procesarPdf() too many times in whatever you are doing. Here is a post that gets at the root of why another user was having a similar issue and getting the same error.

这篇关于jQuery-Ajax“太多的递归"错误showHide()和css.Fn的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆