docs/javascript/versionswitcher.js
/**
   * Check if a specific URL exists. The success and failure functions will be automatically called on finish.
   */
Check if a specific URL exists. The success and failure functions will be automatically called on finish.
Check if a specific URL exists . The success and failure functions will be automatically called on finish .
function checkUrlExistence( url, success, failure ) {
    var settings = {
      'type' : 'HEAD',
      'async' : true,
      'url' : url
    };
    if ( success )
      settings.success = success;
    if ( failure )
      settings.error = failure;
    $.ajax( settings );
  }
function checkUrlExistence ( url , success , failure ) { var settings = { 'type' : 'HEAD' , 'async' : true , 'url' : url } ; if ( success ) settings . success = success ; if ( failure ) settings . error = failure ; $ . ajax ( settings ) ; }
Check if a specific URL exists.
Check if a specific URL exists .