Parcourir la source

test progress bar

ming il y a 3 ans
Parent
commit
361659ac4a
2 fichiers modifiés avec 2 ajouts et 8 suppressions
  1. 1 6
      progress.html
  2. 1 2
      script_msg.js

+ 1 - 6
progress.html

@@ -19,12 +19,7 @@
       }
       </style>
     <body>
-        <h1>WebSocket Chat</h1>
-        <h2>Your ID: <span id="ws-id"></span></h2>
-        <form action="" onsubmit="sendMessage(event)">
-            <input type="text" id="messageText" autocomplete="off"/>
-            <button>Send</button>
-        </form>
+        <h1>影片處理進度</h1>
         <ul id='messages'>
         </ul>
         <script>

+ 1 - 2
script_msg.js

@@ -37,10 +37,9 @@ $(".next").click(function(){
 	type: 'post',
 	data: obj3,
 	success: function(suc_data) {
-		if (suc_data.redirect) {
             // data.redirect contains the string URL to redirect to
             window.location.href = suc_data.redirect;
-        }
+        
 	  },
 	//data:JSON.stringify({n1:"12",n2:"22"}),
 	error: function (error) {