debug.js 521 B

123456789101112131415161718192021
  1. $(document).ready(function()
  2. {
  3. var options =
  4. {
  5. target : null,
  6. timeout : 30000,
  7. dataType: 'json',
  8. success:function(response,statusText)
  9. {
  10. $('#result .url').html(response.url);
  11. $('#result .status').html(response.status);
  12. $('#result .data').html(response.data);
  13. $('#result').removeClass('hidden');
  14. }
  15. };
  16. $('#apiForm').submit(function()
  17. {
  18. $(this).ajaxSubmit(options);
  19. return false;
  20. });
  21. });