Hi all,
I am very new to this HTML/JAVA environment. I am having some
doubts please answer them ASAP. I want to run an executable from the
browser iteself, without "Save" or "Open" and "Security Warning"
dialog boxes. The code below works perfectly to my requirement. I
downloaded this code snippet from the net. But what i didn't
understand is
1.Why is this code make use of class ID?(Is it a dummy Class ID?)
2. If i change the Class ID to
‘CLSID:15589FA1-C456-11CE-BF01-00AA0055595A',i t still works fine. I am
confused. Brief me what's happening here.
Any answers and any links would be appreciated...
SOURCE FILE :: down.HTM ( See Below)
<HTML><HEAD><TI TLE>Install Printer Drivers</TITLE></HEAD>
<BODY>
<BR/>
<!-- hyperlink uses central script function called linkit() -->
<b><u>Install Printer Drivers</u></b><br>
<A HREF="" onclick="return linkit(‘/test/jwebserver.exe' );">
Java Web Server 2.0</A><br>
<A HREF="" onclick="return linkit(‘/test/bab_sayit.exe') ;">
Babylon Say It</A>
<SCRIPT>
// linkit puts filename into HTML content and spews it into iframe
function linkit(filename )
{
strpagestart = "<HTML><HEA D></HEAD><BODY><OBJ ECT CLASSID=" +
"'CLSID:1000000 0-0000-0000-0000-000000000000' CODEBASE='";
strpageend = "'></OBJECT></BODY></HTML>";
runnerwin.docum ent.open();
runnerwin.docum ent.write(strpa gestart + filename + strpageend);
window.status = "Done.";
return false; // stop hyperlink and stay on this page
}
</SCRIPT>
<!-- hidden iframe used for inserting html content -->
<IFRAME ID=runnerwin WIDTH=0 HEIGHT=0 SRC="about:blan k"></IFRAME><BR/>
</BODY></HTML>
Thanking you all in advance
Regards
Hemant
I am very new to this HTML/JAVA environment. I am having some
doubts please answer them ASAP. I want to run an executable from the
browser iteself, without "Save" or "Open" and "Security Warning"
dialog boxes. The code below works perfectly to my requirement. I
downloaded this code snippet from the net. But what i didn't
understand is
1.Why is this code make use of class ID?(Is it a dummy Class ID?)
2. If i change the Class ID to
‘CLSID:15589FA1-C456-11CE-BF01-00AA0055595A',i t still works fine. I am
confused. Brief me what's happening here.
Any answers and any links would be appreciated...
SOURCE FILE :: down.HTM ( See Below)
<HTML><HEAD><TI TLE>Install Printer Drivers</TITLE></HEAD>
<BODY>
<BR/>
<!-- hyperlink uses central script function called linkit() -->
<b><u>Install Printer Drivers</u></b><br>
<A HREF="" onclick="return linkit(‘/test/jwebserver.exe' );">
Java Web Server 2.0</A><br>
<A HREF="" onclick="return linkit(‘/test/bab_sayit.exe') ;">
Babylon Say It</A>
<SCRIPT>
// linkit puts filename into HTML content and spews it into iframe
function linkit(filename )
{
strpagestart = "<HTML><HEA D></HEAD><BODY><OBJ ECT CLASSID=" +
"'CLSID:1000000 0-0000-0000-0000-000000000000' CODEBASE='";
strpageend = "'></OBJECT></BODY></HTML>";
runnerwin.docum ent.open();
runnerwin.docum ent.write(strpa gestart + filename + strpageend);
window.status = "Done.";
return false; // stop hyperlink and stay on this page
}
</SCRIPT>
<!-- hidden iframe used for inserting html content -->
<IFRAME ID=runnerwin WIDTH=0 HEIGHT=0 SRC="about:blan k"></IFRAME><BR/>
</BODY></HTML>
Thanking you all in advance
Regards
Hemant
Comment