NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: bergsj on June 14, 2010, 01:29:45 AM
-
Hi there,
I would like to do the following;
I have an web app that needs to get the address details using an HTTP-RPC request. I am doing this using the NetWebClient extension on a ABC Window. This is actually only requesting an XML , putting this into a structure and returning a couple of fields. The window is showing and after the request is done I auto-close it.
What I would like to know is how to use the NetWebClient without the Window. I have tried to add it to a NetWebServer Form, but it does not work.
Anyone an idea?
Greetings,
Sjoerd
-
HI,
You cant, the class needs the window.
Just hide it.
Regards
Alberto
-
Thanks Alberto,
It was worth a shot ;)
Cheers
Sjoerd
-
hi Sjoerd,
The class is event-driven so it needs an ACCEPT loop, which in turn needs a window.
However you can HIDE the window, just after it is opened.
window{prop:hide} = 1
Just make sure it closes automatically through both the .PageReceived and .ErrorTrap methods (by doing a Post(Event:Closewindow) or it will be "left open" and you won't be able to see it to close it.
cheers
Bruce