NetTalk Central

Author Topic: Redirecting users to different pages  (Read 4283 times)

Mike Grigsby

  • Sr. Member
  • ****
  • Posts: 380
    • Yahoo Instant Messenger - onthedotsoftware
    • View Profile
    • MyHomeAssets! Software (among others)
Redirecting users to different pages
« on: November 06, 2007, 04:45:03 PM »
I'm kind of confused on how to do this: I need to redirect users to different pages, based on the session variables passed in the URL.

I can capture the variable on a NetWebPage using  G:value = p_web.GetValue('to_page')

but a) I can't find docs on how to redirect based on that variable, and b) once the NetWebPage is loaded (or being loaded), there's not really any way to automatically redirect the user to the right page is there?

Any ideas on how to handle this? Thanks!
Mike Grigsby
Credify Systems
Central Oregon, USA

Poul

  • Full Member
  • ***
  • Posts: 160
    • View Profile
Re: Redirecting users to different pages
« Reply #1 on: November 21, 2007, 10:29:31 AM »
Hi Mike,

I have done something similar to:

packet = clip(packet) & '<script> document.location.href="'&clip(g:value)&'"; parent.frames.MenuFrame.location.reload(true);</script>'
do SendPacket
   
then exit quickly, quietly from your procedure
(you may not need /want the reload bit)

poul