Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. $.ajax({
  2. async: false,
  3. url: 'scripts/getDataforUser.php?firstName=' + _firstName+ '&lastName=' + _lastName,
  4. dataType: "json",
  5. success: function(result) {
  6. //Do stuff with 'result' object
  7. //result object sometimes comes back empty
  8. },
  9. error:function (xhr, ajaxOptions, thrownError){
  10. displayError('An error occurred while fetching data');
  11. return;
  12. }
  13. });
  14.  
  15. ;;;;;;;;;;;;;;;;;;;
  16. ; Resource Limits ;
  17. ;;;;;;;;;;;;;;;;;;;
  18.  
  19. max_execution_time = 600 ; Maximum execution time of each script, in seconds
  20. max_input_time = 180 ; Maximum amount of time each script may spend parsing request data
  21. memory_limit = 128M ; Maximum amount of memory a script may consume (128MB)
  22.  
  23. [0] => Array
  24. (
  25. [0] => 08S01
  26. [SQLSTATE] => 08S01
  27. [1] => 258
  28. [code] => 258
  29. [2] => [Microsoft][SQL Server Native Client 11.0]TCP Provider: Timeout error [258].
  30. [message] => [Microsoft][SQL Server Native Client 11.0]TCP Provider: Timeout error [258].
  31. )
  32.  
  33. [1] => Array
  34. (
  35. [0] => 08S01
  36. [SQLSTATE] => 08S01
  37. [1] => 258
  38. [code] => 258
  39. [2] => [Microsoft][SQL Server Native Client 11.0]Communication link failure
  40. [message] => [Microsoft][SQL Server Native Client 11.0]Communication link failure
  41. )
  42.  
  43. [2] => Array
  44. (
  45. [0] => 08S01
  46. [SQLSTATE] => 08S01
  47. [1] => -2147467259
  48. [code] => -2147467259
  49. [2] => [Microsoft][SQL Server Native Client 11.0]Communication link failure
  50. [message] => [Microsoft][SQL Server Native Client 11.0]Communication link failure
  51. )
  52.  
  53. $.ajax({.... data: { firstName: "bob", lastName: "smith" } });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement