NetTalk Central

Author Topic: Using <!-- Net: to call form or procedure  (Read 3266 times)

HPabon

  • Newbie
  • *
  • Posts: 20
    • View Profile
    • Email
Using <!-- Net: to call form or procedure
« 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

MyBrainIsFull

  • Full Member
  • ***
  • Posts: 134
    • View Profile
Re: Using <!-- Net: to call form or procedure
« Reply #1 on: January 14, 2015, 10:23:04 PM »
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]

terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
Re: Using <!-- Net: to call form or procedure
« Reply #2 on: January 14, 2015, 10:28:17 PM »
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:
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186