NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: ntnewbies on May 28, 2020, 02:14:41 AM

Title: call a form from webhandler
Post by: ntnewbies 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
Title: Re: call a form from webhandler
Post by: Alberto on May 28, 2020, 03:31:23 AM
p_web.Script( p_web.WindowOpen( 'mEcommers'))
Title: Re: call a form from webhandler
Post by: ntnewbies 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
Title: Re: call a form from webhandler
Post by: Bruce 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