Quote database webapp
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

ajax.js 626B

123456789101112131415161718192021222324252627282930313233
  1. var xmlhttp=false;
  2. /*@cc_on @*/
  3. /*@if (@_jscript_version >= 5)
  4. // JScript gives us Conditional compilation, we can cope with old IE versions.
  5. // and security blocked creation of the objects.
  6. try {
  7. xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
  8. } catch (e) {
  9. try {
  10. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  11. } catch (E) {
  12. xmlhttp = false;
  13. }
  14. }
  15. @end @*/
  16. if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
  17. try {
  18. xmlhttp = new XMLHttpRequest();
  19. } catch (e) {
  20. xmlhttp = false;
  21. }
  22. }
  23. if (!xmlhttp && window.createRequest) {
  24. try {
  25. xmlhttp = window.createRequest();
  26. } catch (e) {
  27. xmlhttp = false;
  28. }
  29. }