NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: olu on June 22, 2012, 05:05:43 AM
-
hello please can anyone help on this i have a app created in nettalk 4 been converted to nettalk 6 but i have an index page that i have created and load using xhtml with <!--Net:s:mainbody --> but when i re-compile it in 6 it just prints the html code on screen and not actually generate the page
-
context is everything here - I think you will need to post an example.
cheers
Bruce
-
here is the source-code view from browser
<!DOCTYPE html><html class="nt-html no-js">
<head><title>Test Talent</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="/themes/ui-lightness/theme.css" rel="stylesheet" />
<link href="/styles/msie9.css" rel="stylesheet" />
<script src="/scripts/all.js" type="text/javascript"></script>
<script src="/tiny_mce_jq/tiny_mce.js" type="text/javascript"></script>
</head>
<body class="PageBody">
<div class="PageBodyDiv">
<div class="ctr" style="left: 0px; top: 0px; height: 100%;">
<table id="maintable" width="1024px" height="100%" border="0" cellpadding="0" cellspacing="0" align="center">
<tr><td valign="top" class="style3"><img src="images/leftcol.jpg" alt=""/></td>
<td valign="top">
<div class="movecenter">
<img src="images/talentsmall_02.jpg" alt=""/>
</div>
<table width="100%" >
<tr>
<td>
<div class="nav">
<ul>
<li><a href="#">Home</a></li>
<li><a href="aboutus">About us</a></li>
<li><a href="castinglocations">Casting Location</a></li>
<li><a href="registration">Registration</a></li>
<li><a href="loginpage2">Cast Login</a></li>
<li><a href="loginpage">Talent Login</a></li>
<li><a href="credits">Credits</a></li>
<li><a href="photo">Photographers</a></li>
<li><a href="contactus">Contact</a></li>
<li><a href="faq">Faq</a></li>
</ul>
</div>
</td>
</tr>
</table>
<table>
<tr><td>
<table>
<tbody>
<tr>
<td valign="top">
<div class="frontpic"><img style="float: left;" src="uploads/.jpg" alt="" /></div>
</td>
</div>
</div></body>
</html>
what i notice is that nettalk 6 converted things like < to <
-
hi bruce here is an example app check the xhtml <!-- Net:s:olu --> and see what it does on screen, instead of runing the html code it just prints it.
[attachment deleted by admin]
-
ok, I see what's going on.
you're putting stuff in a session value, which contains (hopefully valid) xHtml.
But the internal mechanism for handling session values (in tags) means that the contents of the session value is encoded.
I have added a new tag to 6.34,
<!-- Net:x:whatever -->
:x works like :s, except that you are explicitly telling it _not_ to encode the contents. This means (just like in all the places where you turn on "allow xHtml") that you are responsible to make sure the contents are indeed valid xHtml.
cheers
Bruce
-
Ok thanks bruce and when is 6.34 out?
-
soon
-
Is there anyway round this for now or just have to wait till update?
-
6.34 is up.
-
thanks bruce that works now