![]() |
| Script2EXE Home | How to Use | Interface | Buy | Support | Site Home |
Script2EXE has two URL patterns: "/resource/x" and "/script/x?y&z". The URL of the default page of your application is "/resource/".
With the "resource" pattern, "x" is the name of a resource, "abc.gif" for example.
With the "script" pattern, "x" is the name of a script resource, "dyna.js" for example, "y" is the function name and "z" is the parameter to be passed to "y".
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">
<TITLE>Test</TITLE>
<script>
function GetSin()
{
if(!window.external.shw)
alert("This program requires Script2EXE support");
else
document.URL="/script/funcs.js?sin&" + dgr.value;
}
</script>
</HEAD>
<BODY>
<INPUT TYPE="TEXT" NAME="dgr" value="3.1415926">
<INPUT TYPE="BUTTON" VALUE="Get sin()" onclick="GetSin()">
</BODY>
</HTML>
function sin(r)
{
var v=Math.sin(r);
var s="sin(" + r.toString() + ")=" + v.toString();
var html="<html>\r\n<BODY>\r\n<h3>" + s + "</h3>\r\n</body>\r\n</html>";
return(html);
}