NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: terryd on April 16, 2013, 11:24:25 PM
-
I have noticed in 707 that session values set on login are not appearing although they did so it 706
In my login procedure I have the following:
p_web.SetSessionValue('WebLoginName',CLIP(WEB:LoginName))
In my header I have:
<div class = "nt-left nt-site-header-logo"><img border="0" src="client/Client.jpg" /></div>
<div class = "nt-center-justify"><h1>Logged in User:<!-- Net:s:WebLoginName--></h1></div>
Please look at the 2 attached images on the same application compiled in the 2 versions
[attachment deleted by admin]
-
Do you have the "content body" feature turned on or off?
(WebServer procedure, General tab I think.)
cheers
Bruce
-
In NT707 Use Content Body is checked
-
Testing with unchecked made no difference
-
Hi Terry,
I tried here in example 3 and it seems ok.
maybe I've fixed it already for 7.08?
cheers
Bruce
-
Hi Bruce
Interesting.
There seems to be a change in the way that Nettalk707 treats code in a called text file from all previous versions.
I checked using web3 as you did and found that the user name appeared if I entered the HTML code in the XHTML tab.
Going back to my standard code the only difference is that I call a text file In the Page header tag XHTML section like this.
<!-- Net:f:Client/myHeadingWhenLoggedIn.txt -->
When this runs the result is as you have seen i.e. the User Login string appears but no UserLoginName.
I then copied all the code in the text file into the XHTML section just below the Net call and reran. This displayed the correct information.
If you look at the attached the first occurrence of User Login: is generated by the net call, the second with the User Login and login name is generated by the HTML code copied from the text file.
This is the code I copied from the text file
<div class = "nt-left nt-site-header-logo"><img border="0" src="client/Client.jpg" /></div>
<div class = "nt-center-justify"><h1>User Login:<!-- Net:s:WebLoginName--></h1></div>
[attachment deleted by admin]
-
ahh - yes - tags in text files are not being parsed.
yes, that's a known bug, and already fixed for the 7.08 build.
(which is likely to go out on Monday.)
cheers
Bruce
-
Thanks Bruce