NetTalk Central

Author Topic: NetWebClient no Window  (Read 3367 times)

bergsj

  • Jr. Member
  • **
  • Posts: 81
    • MSN Messenger - swjvandenberg@hotmail.com
    • View Profile
    • Email
NetWebClient no Window
« 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
Greetz,
Sjoerd

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: NetWebClient no Window
« Reply #1 on: June 14, 2010, 02:05:47 AM »
HI,
You cant, the class needs the window.
Just hide it.
Regards
Alberto
-----------
Regards
Alberto

bergsj

  • Jr. Member
  • **
  • Posts: 81
    • MSN Messenger - swjvandenberg@hotmail.com
    • View Profile
    • Email
Re: NetWebClient no Window
« Reply #2 on: June 14, 2010, 03:52:36 AM »
Thanks Alberto,

It was worth a shot ;)

Cheers
Sjoerd
Greetz,
Sjoerd

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: NetWebClient no Window
« Reply #3 on: June 14, 2010, 07:42:31 AM »
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