NetTalk Central

Author Topic: Include Clarion variable in HTML  (Read 2885 times)

rupertvz

  • Sr. Member
  • ****
  • Posts: 326
    • View Profile
    • Email
Include Clarion variable in HTML
« on: April 05, 2012, 01:56:19 AM »
Hi Guys,

Is it possible to include a Clarion variable in my HTML code?

Example

In my PageHeaderTag, in XHTML code:

<table class="headingtable">
 <tr>
<td>
<a href="http://www.site.co.za">
<img border="0" width="294" height="73" src="\images\image.jpg" width="100%" align="left"/></a>


p_web.GetSessionValue('LOC:Message')

</td>
 </tr>
</table>

Rene Simons

  • Hero Member
  • *****
  • Posts: 650
    • View Profile
Re: Include Clarion variable in HTML
« Reply #1 on: April 05, 2012, 02:36:51 AM »
Hi Rupert,

From the NetTalk docs: http://www.capesoft.com/docs/NetTalk6/NetTalkWebBasic.htm

================================
<!-- Net:s:SessionVariable -->

This will embed the current contents of the session variable on the web page. If the variable should be formatted (for example a DATE field) then make sure the Picture parameter of the session variable is set using either
p_web.SetSessionValue('name','value','pic') or
p_web.SetSessionPicture('name','pic')

================================

Cheers,
Rene
Rene Simons
NT14.14

rupertvz

  • Sr. Member
  • ****
  • Posts: 326
    • View Profile
    • Email
Re: Include Clarion variable in HTML
« Reply #2 on: April 05, 2012, 04:04:42 AM »
Thanks Rene :-)