NetTalk Central

Author Topic: p_web.redirect produces error  (Read 3505 times)

hkalmbach

  • Jr. Member
  • **
  • Posts: 81
    • View Profile
    • Email
p_web.redirect produces error
« 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: p_web.redirect produces error
« Reply #1 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

hkalmbach

  • Jr. Member
  • **
  • Posts: 81
    • View Profile
    • Email
Re: p_web.redirect produces error
« Reply #2 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