Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.ajax({
- async: false,
- url: 'scripts/getDataforUser.php?firstName=' + _firstName+ '&lastName=' + _lastName,
- dataType: "json",
- success: function(result) {
- //Do stuff with 'result' object
- //result object sometimes comes back empty
- },
- error:function (xhr, ajaxOptions, thrownError){
- displayError('An error occurred while fetching data');
- return;
- }
- });
- ;;;;;;;;;;;;;;;;;;;
- ; Resource Limits ;
- ;;;;;;;;;;;;;;;;;;;
- max_execution_time = 600 ; Maximum execution time of each script, in seconds
- max_input_time = 180 ; Maximum amount of time each script may spend parsing request data
- memory_limit = 128M ; Maximum amount of memory a script may consume (128MB)
- [0] => Array
- (
- [0] => 08S01
- [SQLSTATE] => 08S01
- [1] => 258
- [code] => 258
- [2] => [Microsoft][SQL Server Native Client 11.0]TCP Provider: Timeout error [258].
- [message] => [Microsoft][SQL Server Native Client 11.0]TCP Provider: Timeout error [258].
- )
- [1] => Array
- (
- [0] => 08S01
- [SQLSTATE] => 08S01
- [1] => 258
- [code] => 258
- [2] => [Microsoft][SQL Server Native Client 11.0]Communication link failure
- [message] => [Microsoft][SQL Server Native Client 11.0]Communication link failure
- )
- [2] => Array
- (
- [0] => 08S01
- [SQLSTATE] => 08S01
- [1] => -2147467259
- [code] => -2147467259
- [2] => [Microsoft][SQL Server Native Client 11.0]Communication link failure
- [message] => [Microsoft][SQL Server Native Client 11.0]Communication link failure
- )
- $.ajax({.... data: { firstName: "bob", lastName: "smith" } });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement