NetTalk Central

Author Topic: Static page with dynamic content  (Read 3919 times)

Rene Simons

  • Hero Member
  • *****
  • Posts: 650
    • View Profile
Static page with dynamic content
« on: July 10, 2017, 11:31:42 AM »
Hi,

I have created a static page.
On the page I want to display some dynamic content.
The first line of the html contains the  <!-- NetWebServer --> tag
Just before the </head> tag I have a <!-- Net:c:Head --> tag
Just before the </body> I have a <!-- Net:c:BodyEnd -->

Because I need specific data in my page, the page is called using the URL: mypage.html?_bidv_=2rEGX0U6

To collect the data I want to see, I expect it to be right to call a procedure <!-- Net:GetMyData -->
This is a NetWebSource procedure where I expect that MY:Guid can be obtained using p_web.getValue('My:guid') .

Nothing happens however.

When I look at the page source, I even see the tags described above, and not their results.
I suspect that procedure GetMyData is not called.

It is probably worth mentioning that I use SVG tags in my static page.
The <!-- Net:GetMyData --> tag is outside (before) the SVG-tags.
The <!-- Net:s:MySessionvar --> are as well inside as outside the SVG-tags.

Is there a special setting I need?

Rene Simons
« Last Edit: July 11, 2017, 01:24:06 AM by Rene Simons »
Rene Simons
NT14.14

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Static page with dynamic content
« Reply #1 on: July 11, 2017, 09:38:37 PM »
can you post a sample of the static page?

my guess is that it's not being parsed at all, which suggests the <!-- NetWebServer --> tag is not right.

cheers
Bruce

Rene Simons

  • Hero Member
  • *****
  • Posts: 650
    • View Profile
Re: Static page with dynamic content
« Reply #2 on: July 11, 2017, 10:33:00 PM »
Hi Bruce,

That could be the case, because when I paste the whole HTML page in to the XHTML box of a NetWebPage, is all seems to work fine.
I'll send you  the HTML tonight.

René
Rene Simons
NT14.14

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Static page with dynamic content
« Reply #3 on: July 13, 2017, 09:47:48 PM »
The class was assuming <13,10> for line endings, whereas the HTML file in question has just <LF>. I've updated the class to cope.