NetTalk Central

Author Topic: Problem Serving A Static Site With Dynamic Content  (Read 3067 times)

bryce

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • Email
Problem Serving A Static Site With Dynamic Content
« on: May 18, 2013, 03:54:44 AM »
I am a beginner and am attempting to display my NetTalk browse in an existing static page.  If I copy the index.htm in example 47 and modify it to display the browse in my NetTalk webserver it seems to work fine.

However, if I replace the index.htm with one of my own (a simple page generated with WYSIWYG Web Builder) there is no sign of my browse being displayed.

So my question is not how do I embed NetTalk content into an existing web page but what can stop the embedded content displaying if I have followed the instructions?

Thanks.

Bryce

bryce

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • Email
Re: Problem Serving A Static Site With Dynamic Content
« Reply #1 on: May 18, 2013, 09:14:32 PM »
I think I have found the problem.  The web site generator concatenates multiple tags onto a single line (including the NetTalk tags).  I suspect that the NetTalk parser can't cope with the tags being embedded in a line of HTML code rather than being on a separate line.

As soon as I put each of the NetTalk tags onto its own line it all sprang into action.

Bryce

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Problem Serving A Static Site With Dynamic Content
« Reply #2 on: May 19, 2013, 10:38:11 PM »
It shouldn't need line endings.
can you email me your IndexPage so I can try here?

Which NT build are you using Bryce?

cheers
Bruce

bryce

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • Email
Re: Problem Serving A Static Site With Dynamic Content
« Reply #3 on: May 20, 2013, 01:35:19 AM »
Hi Bruce,

I think I have narrowed it down to just the
<!-- NetWebServer -->
on the first line.

The book just says 'add to the top of pages containing dynamic content' but the documentation says it has to be on a line of its own.  I think the latter appears to be the case.

I am on the latest version (downloaded at the weekend).

My website generator wasn't putting this tag on a line of its own.

False alarm................sorry.

Bryce

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Problem Serving A Static Site With Dynamic Content
« Reply #4 on: May 20, 2013, 01:58:00 AM »
correct - it'll only parse the file if the first line is (and only is)
<!-- NetWebServer -->

Cheers
Bruce