NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: rupertvz on April 05, 2012, 01:56:19 AM

Title: Include Clarion variable in HTML
Post by: rupertvz 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>
Title: Re: Include Clarion variable in HTML
Post by: Rene Simons 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
Title: Re: Include Clarion variable in HTML
Post by: rupertvz on April 05, 2012, 04:04:42 AM
Thanks Rene :-)