m_nTimeout = 10 * 1000;
$.ajax(
{
url : "/asdfadsfadsfasdfadsf",
dataType : "json",
cache : false,
type : "POST",
data : {"ddd":"ssss"},
timeout : m_nTimeout, // 5 second by default
success : function( ojJsonData, textStatus, jqXHR )
{
try3
{
_ShowStatus( 'succ', g_ArrLang['network_submit_succ'] );
m_oThis.oEditor.bSending = false;
if ( ! $lisnul( m_oCallbackSucc ) && $lisfun( m_oCallbackSucc ) )
{
m_oCallbackSucc( m_oThis, ojJsonData );
}
}
catch( sError )
{
$lssmsg( 'error', m_sThisName + g_ArrLang['system_unexpected_error'] + '(send, succ)' );
}
},
error : function( oJqXHR, sStatus, sErrorThrown )
{
try
{
//_ShowStatus( 'error', "发送信息失败:" + sStatus + "(" + sErrorThrown + ")" );
_ShowStatus( 'error', g_ArrLang['network_submit_error'] );
m_oThis.oEditor.bSending = false;
if ( ! $lisnul( m_oCallbackError ) && $lisfun( m_oCallbackError ) )
{
m_oCallbackError( m_oThis, sStatus, sErrorThrown );
}
}
catch( sError )
{
$lssmsg( 'error', m_sThisName + g_ArrLang['system_unexpected_error'] + '(send, err)' );
}
},
complete : function( oJqXHR, sTextStatus )
{
try
{
m_oThis.oEditor.bSending = false;
if ( ! $lisnul( m_oCallbackComplete ) && $lisfun( m_oCallbackComplete ) )
{
m_oCallbackComplete( m_oThis, sTextStatus );
}
}
catch( sError )
{
$lssmsg( 'error', m_sThisName + g_ArrLang['system_unexpected_error'] + '(send, complete)' );
}
}
});
$.ajax(
{
url : "/asdfadsfadsfasdfadsf",
dataType : "json",
cache : false,
type : "POST",
data : {"ddd":"ssss"},
timeout : m_nTimeout, // 5 second by default
success : function( ojJsonData, textStatus, jqXHR )
{
try3
{
_ShowStatus( 'succ', g_ArrLang['network_submit_succ'] );
m_oThis.oEditor.bSending = false;
if ( ! $lisnul( m_oCallbackSucc ) && $lisfun( m_oCallbackSucc ) )
{
m_oCallbackSucc( m_oThis, ojJsonData );
}
}
catch( sError )
{
$lssmsg( 'error', m_sThisName + g_ArrLang['system_unexpected_error'] + '(send, succ)' );
}
},
error : function( oJqXHR, sStatus, sErrorThrown )
{
try
{
//_ShowStatus( 'error', "发送信息失败:" + sStatus + "(" + sErrorThrown + ")" );
_ShowStatus( 'error', g_ArrLang['network_submit_error'] );
m_oThis.oEditor.bSending = false;
if ( ! $lisnul( m_oCallbackError ) && $lisfun( m_oCallbackError ) )
{
m_oCallbackError( m_oThis, sStatus, sErrorThrown );
}
}
catch( sError )
{
$lssmsg( 'error', m_sThisName + g_ArrLang['system_unexpected_error'] + '(send, err)' );
}
},
complete : function( oJqXHR, sTextStatus )
{
try
{
m_oThis.oEditor.bSending = false;
if ( ! $lisnul( m_oCallbackComplete ) && $lisfun( m_oCallbackComplete ) )
{
m_oCallbackComplete( m_oThis, sTextStatus );
}
}
catch( sError )
{
$lssmsg( 'error', m_sThisName + g_ArrLang['system_unexpected_error'] + '(send, complete)' );
}
}
});