NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: HPabon on January 14, 2015, 09:36:28 PM
-
Hi,
is there an example around which shows how to call a procedure or form by using <!-- Net:... --> ?
TIA
Hector
-
Yes there is Pages (47) - See image
Very simple to do - below is some html I did a while back, think it still works. I had trouble at first as I had spaces after <!-- NetWebServer -->
IT HATES SPACES AT THE END....
Use the html below as index.htm with example 47 - index htm gets called by the browser on startup, so this html runs, and pulls up the browse.
INDEX.HTM
<!-- NetWebServer -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head><!-- Net:c:Head --> </head>
<body>
<br>dt==<!-- Net:s:Date-->
<br>
<center>
<table class="MyWindow" width="400">
<tr>
<td class="TitleBar">Web Server Example</td>
</tr>
<tr>
<td class="HeadingBar">Browse Telephone Q</td>
</tr>
<tr>
<td width="100%" align="center">
<!-- Net:MailBoxesBrowseControl -->
</table>
<br>Session Active From: <!-- Net:s:StartDate --> <!-- Net:s:StartTime -->
</center>
<!-- Net:c:BodyEnd -->
</body>
</html>
[attachment deleted by admin]
-
Hi Hector
A good example is web1.
On the IndexPage\Actions\Netwebpage Settings\XHTML\body it shows the header tag, a browse and the footer tag called using the <!-- Net: