NetTalk Central

Author Topic: call a form from webhandler  (Read 3800 times)

ntnewbies

  • Full Member
  • ***
  • Posts: 184
    • View Profile
    • Email
call a form from webhandler
« on: May 28, 2020, 02:14:41 AM »
hi friends,
in webhandler procedure, under _sendfile embed point, i need to call a form based on the loc:filename.
i use the following...none of it works:

site(p_web)

site(self)
return

p_web.MakePage('Site',Net:Web:Form,0,,'<!-- Net:StandardHeader -->','<!-- Net:StandardFooter -->',)

Self.WindowOpen('Site','_onself')


any ideas?

jason

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: call a form from webhandler
« Reply #1 on: May 28, 2020, 03:31:23 AM »
p_web.Script( p_web.WindowOpen( 'mEcommers'))
-----------
Regards
Alberto

ntnewbies

  • Full Member
  • ***
  • Posts: 184
    • View Profile
    • Email
Re: call a form from webhandler
« Reply #2 on: May 28, 2020, 06:07:43 AM »
hi alberto,
thanks for the reply.
i have tried that too but it doesnt work.

only p_web.redirect works but it renames the url (i dont want that to happen).

jason

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: call a form from webhandler
« Reply #3 on: May 31, 2020, 12:14:24 AM »
Hi Jason,

>> If you look at the generated code in WebHandler _sendFile you'll see how it calls the form "normally" - ie when the URL is the form. So you could change the loc:filename and perhaps loc:parent before it starts it's normal processing.

cheers
Bruce