NetTalk Central

Author Topic: convert netalk 4 app to nettalk 6  (Read 3887 times)

olu

  • Sr. Member
  • ****
  • Posts: 351
    • View Profile
    • Email
convert netalk 4 app to nettalk 6
« 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11183
    • View Profile
Re: convert netalk 4 app to nettalk 6
« Reply #1 on: June 22, 2012, 06:57:43 AM »
context is everything here - I think you will need to post an example.

cheers
Bruce

olu

  • Sr. Member
  • ****
  • Posts: 351
    • View Profile
    • Email
Re: convert netalk 4 app to nettalk 6
« Reply #2 on: June 22, 2012, 07:23:43 AM »
here is the source-code view from browser
Code: [Select]
<!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">
&lt;div  class=&quot;ctr&quot; style=&quot;left: 0px; top: 0px; height: 100%;&quot;&gt;
&lt;table id=&quot;maintable&quot; width=&quot;1024px&quot; height=&quot;100%&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; align=&quot;center&quot;&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot; class=&quot;style3&quot;&gt;&lt;img src=&quot;images/leftcol.jpg&quot; alt=&quot;&quot;/&gt;&lt;/td&gt;
 &lt;td valign=&quot;top&quot;&gt;
 &lt;div class=&quot;movecenter&quot;&gt;
  &lt;img src=&quot;images/talentsmall_02.jpg&quot; alt=&quot;&quot;/&gt;
 
 
 &lt;/div&gt;
      &lt;table width=&quot;100%&quot; &gt;
       &lt;tr&gt;
       &lt;td&gt;

 &lt;div class=&quot;nav&quot;&gt;
 &lt;ul&gt;
    &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;
 &lt;li&gt;&lt;a href=&quot;aboutus&quot;&gt;About us&lt;/a&gt;&lt;/li&gt;
 &lt;li&gt;&lt;a href=&quot;castinglocations&quot;&gt;Casting Location&lt;/a&gt;&lt;/li&gt;
 &lt;li&gt;&lt;a href=&quot;registration&quot;&gt;Registration&lt;/a&gt;&lt;/li&gt;
 &lt;li&gt;&lt;a href=&quot;loginpage2&quot;&gt;Cast Login&lt;/a&gt;&lt;/li&gt;
 &lt;li&gt;&lt;a href=&quot;loginpage&quot;&gt;Talent Login&lt;/a&gt;&lt;/li&gt;
 &lt;li&gt;&lt;a href=&quot;credits&quot;&gt;Credits&lt;/a&gt;&lt;/li&gt;
 &lt;li&gt;&lt;a href=&quot;photo&quot;&gt;Photographers&lt;/a&gt;&lt;/li&gt;
 &lt;li&gt;&lt;a href=&quot;contactus&quot;&gt;Contact&lt;/a&gt;&lt;/li&gt;
 &lt;li&gt;&lt;a href=&quot;faq&quot;&gt;Faq&lt;/a&gt;&lt;/li&gt;

 &lt;/ul&gt;
         &lt;/div&gt;
         &lt;/td&gt;
         &lt;/tr&gt;
         &lt;/table&gt;
        
 
 
  
 &lt;table&gt;
            &lt;tr&gt;&lt;td&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td valign=&quot;top&quot;&gt;
&lt;div class=&quot;frontpic&quot;&gt;&lt;img style=&quot;float: left;&quot; src=&quot;uploads/.jpg&quot; alt=&quot;&quot; /&gt;&lt;/div&gt;
&lt;/td&gt;


&lt;/div&gt;


</div></body>
</html>

what i notice is that nettalk 6 converted things like < to &lt;
« Last Edit: June 22, 2012, 07:25:33 AM by olu »

olu

  • Sr. Member
  • ****
  • Posts: 351
    • View Profile
    • Email
Re: convert netalk 4 app to nettalk 6
« Reply #3 on: June 23, 2012, 11:55:19 PM »
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]

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11183
    • View Profile
Re: convert netalk 4 app to nettalk 6
« Reply #4 on: June 24, 2012, 11:51:11 PM »
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

olu

  • Sr. Member
  • ****
  • Posts: 351
    • View Profile
    • Email
Re: convert netalk 4 app to nettalk 6
« Reply #5 on: June 25, 2012, 12:13:28 AM »
Ok thanks bruce and when is 6.34 out?

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11183
    • View Profile
Re: convert netalk 4 app to nettalk 6
« Reply #6 on: June 25, 2012, 02:29:53 AM »
soon

olu

  • Sr. Member
  • ****
  • Posts: 351
    • View Profile
    • Email
Re: convert netalk 4 app to nettalk 6
« Reply #7 on: June 25, 2012, 03:32:53 AM »
Is there anyway round this for now or just have to wait till update?

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11183
    • View Profile
Re: convert netalk 4 app to nettalk 6
« Reply #8 on: June 25, 2012, 08:05:58 AM »
6.34 is up.

olu

  • Sr. Member
  • ****
  • Posts: 351
    • View Profile
    • Email
Re: convert netalk 4 app to nettalk 6
« Reply #9 on: June 25, 2012, 11:13:23 AM »
thanks bruce that works now