NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: hkalmbach on April 23, 2016, 03:20:18 AM

Title: p_web.redirect produces error
Post by: hkalmbach on April 23, 2016, 03:20:18 AM
Hello,
I have a not standard situation (not browse and form) to let the user enter data and save them.
I have a memory form with three save buttons for different situations. Each one calls a new page (UpdateDB) with an action parameter (UpdateDB?Action=xxx).
Depending on the action parameter the page works with data (from session values) and saves them to the db. this I do in the page setup of UpdateDB.
At the end of the page setup I redirect to different other pages dependend on the action parameter.
Sometimes, it happens, that the redirection does not work. The browser shows the message 'This page cannot be displayed. Check if the web adress is correct.'
This happens after updating the database, directly when calling the redirection to the next page.

But if I press F5 to refresh the browser the page is shown correctly.

This happens with IE, Chrome and Firefox, not exactly in the same situation but in all.

What can be wrong there?

Thanks for every help

Cheers
Heinz
Title: Re: p_web.redirect produces error
Post by: Bruce on April 24, 2016, 11:05:14 PM
Hi Heinz,

>> The browser shows the message 'This page cannot be displayed. Check if the web adress is correct.'

how long passes between pressing the Save button, and seeing this message? I'm presuming no more than a second or two? Or is it a long time (like 31 seconds)?

cheers
Bruce
Title: Re: p_web.redirect produces error
Post by: hkalmbach on April 25, 2016, 03:11:41 AM
Hi Bruce,

this message appears within one or two seconds.

But I found a way round. Instead of p_web.redirect I use p_web.Script(p_web.WindowOpen(URL)). I found it in the forum. This works so far.

But anyway it would be interesting why the redirect does not work.

Cheers
Heinz