NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Rene Simons on January 03, 2024, 03:46:19 AM

Title: Static page with dynamic content redirect problem.
Post by: Rene Simons on January 03, 2024, 03:46:19 AM
Hello everybody,

I have a static page with dynamic content.
The page name is index.html and initially it is called without any parameters.
One  menu-option  (not NT) has an option which "calls" the page itself, this time WITH parameters.
Like:  /index.html?a=lng&b=en

I do not use the NT menu, because that would interfere too much with the "staticness" of the page.

As Bruce pointed out, I can retrieve the parameters in webhandler in the _sendfile method, and do some
processing.
Retrieving the parameters and the processing are successful. I checked that using trace.
After that I am a bit lost, because the index.html page is not refreshed after that. It is not even shown in the browser.
I have tried to use p_web.redirect(<with the link>) after the processing, but that did not work.

I hope someone can help me here.

Kind regards,
Ren? Simons
Title: Re: Static page with dynamic content redirect problem.
Post by: Bruce on January 03, 2024, 10:15:28 PM
the index.html page is not refreshed after that. It is not even shown in the browser.

I have no idea what you are trying to say here.

I fear you need to make an example app showing the effect. It's impossible to debug what you are doing without seeing it.

Cheers
Bruce