Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

104 lines
2.3 KiB

  1. <%@ Control Language='C#' Inherits='UDDI.Web.UddiControl' %>
  2. <%@ Register TagPrefix='uddi' Namespace='UDDI.Web' Assembly='uddi.web' %>
  3. <%@ Import Namespace='UDDI' %>
  4. <script runat='server' >
  5. public int TabID;
  6. </script>
  7. <hr>
  8. <table border='0' height='150' width='100%'>
  9. <tr valign='top'>
  10. <td colspan='2'>
  11. <uddi:UddiLabel Text="[[TEXT_STATS_BUSYWAIT]]" runat='server' CssClass='boldBlue' />
  12. </td>
  13. </tr>
  14. <tr >
  15. <td width='100'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
  16. <td align='left' width='100%'>
  17. <span
  18. id='elipse'
  19. Class='boldBlue'><%=Localization.GetString( "TAG_STATS_BUSYWAIT" )%></span>
  20. </td>
  21. </tr>
  22. </table>
  23. <hr>
  24. <script>
  25. /*************************************************************
  26. * Client side script for IE to display waiting.
  27. *
  28. * This script will 'run' trailing dots of the end of text
  29. *************************************************************/
  30. var ie = (((document.getElementById))?true:false);
  31. var ns = ((document.layers)?true:false);
  32. var ns6 = (( (document.getElementById) && !(document.all) ) ? true: false);
  33. var i=0; //primer
  34. var sleeptime = 500; //millisec between dots
  35. var dots = '..........' //string of dots
  36. var tag; //tag to append dots to
  37. function Initialize( )
  38. {
  39. //here is where you would detect
  40. //browser type in order to set
  41. //the tag varaible
  42. if( ie )
  43. {
  44. tag = document.getElementById( 'elipse' );
  45. }
  46. else
  47. {
  48. tag = document.ids.elipse;
  49. /*for( i=0;i<document.forms[ 0 ].length;i++ )
  50. {
  51. var e = document.forms[ 0 ].elements[ i ];
  52. if( e.id.toLowerCase() == "elipse")
  53. tag = e;
  54. }*/
  55. }
  56. AnimateElipse( );
  57. }
  58. function AnimateElipse( )
  59. {
  60. if( ie )
  61. tag.insertAdjacentText( "beforeEnd",dots.charAt( i ) );
  62. if( i<dots.length-1 )
  63. {
  64. i++;
  65. setTimeout("AnimateElipse()",sleeptime);
  66. }
  67. else
  68. Redirect();
  69. }
  70. function Redirect( )
  71. {
  72. var mode;
  73. if( ie || ns6 )
  74. {
  75. mode = document.getElementById( 'mode' );
  76. }
  77. else
  78. {
  79. for( i=0;i<document.forms[ 0 ].length;i++ )
  80. {
  81. var e = document.forms[ 0 ].elements[ i ];
  82. if( e.id == "mode")
  83. mode = e;
  84. }
  85. }
  86. if( null!=mode )
  87. mode.value='waiting';
  88. document.forms[ 0 ].submit();
  89. }
  90. Initialize();
  91. </script>