NetTalk Central

Author Topic: Parent URL? Current URL?  (Read 2599 times)

JohanR

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • Email
Parent URL? Current URL?
« on: June 11, 2012, 11:29:57 AM »

Hi,

How do I get the URL of the WebBrowse/Webform that called the current procedure?

How do I get the current URL?

thanks

Johan

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11251
    • View Profile
Re: Parent URL? Current URL?
« Reply #1 on: June 11, 2012, 11:33:03 PM »
Hi Johan,

because of the nature of NetTalk, the "URLs" are most likely not terribly useful to you. However here are some answers;

in most procedures loc:parent will contain the name of the "parent procedure" - ie the one that "called" this one. For example, if you have a browse embedded on a form, then the form is the parent of the browse. If you have a "child browse" then the parent is, well, the parent browse, and so on.

the current URL is in p_web.Requestfilename
the RequestReferer is in p_web.RequestReferer

but both of these are usually more or less meaningless because of the nature of Ajax requests, the popup (and content body) systems, and so on. However in specific situations they may be useful.

Cheers
Bruce