Inserting scripts in html file
Previous  Top 

Example file :

1. Inserting your script directly in *.html file :

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Created using ..:iPi NOW::..</title>
</head>

<%ipi%>onload
{ ^^^ ipi script start escape chars / keep exact syntax !}



{Script created usign ..::iPi NOW::..}

   {Insert your vars here}




begin

writeln (' Hello world !'
);   {Insert your code here}

end.



{ipi script end escape chars}

   
</%ipi%>


<body>
</body>
</html>




2. Using a *.ipi file in *.html file.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Created using ..:iPi NOW::..</title>
</head>

<%ipi%>
onload
{ ^^^ ipi script start escape chars / keep exact syntax !}


{$i
myscript.ipi}
{ include file
($httproot)\script\myscript.ipi)

{ipi script end escape chars}

   
</%ipi%>


<body>
</body>
</html>