NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: Rene Simons 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
-
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
-
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é
-
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.