Blackberry Webworks应用程序超时 [英] Blackberry Webworks application getting Time-out

查看:119
本文介绍了Blackberry Webworks应用程序超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Blackberry WebWorks中的移动本机应用程序.我的应用程序在Tomcat 5.5上运行,该程序从IIS 7.5上运行的ASMX Web服务获取数据.在数据获取操作期间经过2分钟的时间后,我超时了.我不能克服这个问题,请帮助我克服.我正在设置ajax超时,并且在配置文件中我也提到了超时,但我仍在超时.我将在下面发布代码段供您参考.

I am working on a mobile native application in Blackberry WebWorks. My application runs on Tomcat 5.5 which fetches data from an ASMX webservice running on IIS 7.5. I am getting timeout after a timeperiod of 2mins during data-fetching operation. I can not over come this problem please help me to overcome. I am setting the ajax time out and in the config file I have also mentioned the timeout, still I am getting the timed out. I am posting the code snippet here below for your reference.

$.ajax({
        type: 'POST',
        url: "http://myurl:port/projectpath.action",
        data: formInput,
        dataType: "TEXT",
        timeout:600000,
        async: true,
        success:function(jqXHR, textStatus, errorThrown){

            alert("error :" + textStatus);
            alert("incoming Text :" + jqXHR.responseText);
            alert("What ErrorThrown :" + errorThrown);
            $('#loader').hide();
            window.location.replace("paymentResult.html");
        },
        error:function(jqXHR, textStatus, errorThrown){

            alert("error " + textStatus);
            alert("incoming Text " + jqXHR.responseText);
            alert("What ErrorThrown" +errorThrown);
            $('#loader').hide();
            //alert(xhr.status+"  Server Unavailable! Please try again later");
        }
    });
    return false;

});



我通过下面提到的Ajax警报消息超时.
alert("What ErrorThrown" + errorThrown);

在我的配置文件中,传递的参数为:

"rim:connection timeout =" 600000"
"id" TCP_WIFI"/id"
"id" MDS"/id"
"id" BIS-B"/id"
"id" TCP_CELLULAR"/id"
"id" WAP2"/id"
"id" WAP"/id"
"/rim:connection"

请帮帮我.

在此先感谢



I am getting the timeout through the below mentioned Ajax alert message.
alert("What ErrorThrown" +errorThrown);

In my config file, my parameters passed are:

"rim:connection timeout="600000""
"id"TCP_WIFI"/id"
"id"MDS"/id"
"id"BIS-B"/id"
"id"TCP_CELLULAR"/id"
"id"WAP2"/id"
"id"WAP"/id"
"/rim:connection"

Please help me.

Thanks in advance

推荐答案

.ajax({ 类型:' POST', url:" , 数据:formInput, dataType:" , 超时: 600000 , 异步: true , 成功:功能(jqXHR,textStatus,errorThrown){ alert(" + textStatus); alert(" + jqXHR.responseText); alert(" + errorThrown);
.ajax({ type: 'POST', url: "http://myurl:port/projectpath.action", data: formInput, dataType: "TEXT", timeout:600000, async: true, success:function(jqXHR, textStatus, errorThrown){ alert("error :" + textStatus); alert("incoming Text :" + jqXHR.responseText); alert("What ErrorThrown :" + errorThrown);


(' #loader').hide(); 窗口.位置 .replace(" paymentResult.html"); }, 错误:函数(jqXHR,textStatus,errorThrown){ alert(" + textStatus); alert(" + jqXHR.responseText); alert(" + errorThrown);
('#loader').hide(); window.location.replace("paymentResult.html"); }, error:function(jqXHR, textStatus, errorThrown){ alert("error " + textStatus); alert("incoming Text " + jqXHR.responseText); alert("What ErrorThrown" +errorThrown);


( ' #loader').hide(); // 警告(xhr.status +服务器不可用!请稍后再试"); } }); 返回 ; });
('#loader').hide(); //alert(xhr.status+" Server Unavailable! Please try again later"); } }); return false; });



我通过下面提到的Ajax警报消息超时.
alert("What ErrorThrown" + errorThrown);

在我的配置文件中,传递的参数为:

"rim:connection timeout =" 600000"
"id" TCP_WIFI"/id"
"id" MDS"/id"
"id" BIS-B"/id"
"id" TCP_CELLULAR"/id"
"id" WAP2"/id"
"id" WAP"/id"
"/rim:connection"

请帮帮我.

预先感谢



I am getting the timeout through the below mentioned Ajax alert message.
alert("What ErrorThrown" +errorThrown);

In my config file, my parameters passed are:

"rim:connection timeout="600000""
"id"TCP_WIFI"/id"
"id"MDS"/id"
"id"BIS-B"/id"
"id"TCP_CELLULAR"/id"
"id"WAP2"/id"
"id"WAP"/id"
"/rim:connection"

Please help me.

Thanks in advance


这篇关于Blackberry Webworks应用程序超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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