Quiero convertir algunas fuentes que funcionaron tal vez en HTML4 a la fuente Vue.js. Como sé, la propiedad 'classid' en la etiqueta <object> se elimina en HTML5.
¿Podemos usar HTML4 en Vue.js? y ¿Cómo usar esta etiqueta <object> en este caso?
Estas son las fuentes de muestra del html4
API_Test01.html
<html> <object classid='clsid:AnUUID' id='FOO'></object> <script language="javascript"> function bar() { var ret = FOO.bar() alert(ret) } </script> <body> <form name="frm"> <APIs used when CS interlocking><br> ND status: <input type="button" value="bar" onClick="bar()"><br> </form> </body> </html>LoginTestEnc.html
clsid:AnUUID es lo mismo que AI_Test01.html
<script language="javascript"> try{ var sampleObj = new ActiveXObject("IniSX.SClient.1"); }catch(e){ alert("Please try again after SSO Client program installation->Business authentication login. Go to the program manual installation screen."); self.location.replace("http://sso.the.url/SCInstall.html"); } </script> <!-- Sample Client Object ID--> <OBJECT ID="SAMPLE_API" CLASSID="CLSID:AnUUID" width=0 height=0></OBJECT> <script language="javascript"> //Extract SSO Ticket and update APP_ID access history var ticket = SAMPLE_API.GetTicketAppWithEnc("APP_ID"); //Get authentication information from client //Response code Success: authentication ticket, Failure: 2: Status before login if(ticket.length==1){ if(ticket==2 ){ alert("Login Please"); } SAMPLE_API.OpenLogin("www.the.url",ticket); //Since you are not logged in, go to the address after calling the authentication window noConfirmClose(); }else{ alert( ticket); } function noConfirmClose(){ top.window.open('about:blank','_self').close(); top.window.opener=self; top.self.close(); } </script>