Hi,
That is an architecture question so it depends on how you have
decided delegate responsibilities in your application. As a general
guide however: your pop-up windows are views and should be separated
from (have no knowledge of) the service calls which are an interface
to the application layer.
A typical way to achieve this is to broadcast events from your view
describing user interactions (e.g. user submits form) passing the
object to which the form is bound as the event 'payload'. Listen for
these events with your controller and use your event handler to call
the webservice or respond as appropriate.
Your view needn't know anything about the webservice.
Hope that helps.
Cheers,
Lach
On 29/11/2006, at 4:42 AM, bghoward3 wrote:
i am in the middle of developing an application with several popup
windows that a user can populate and send to a db, i am wondering what
the best practice is here in regards to my webservice calls.
is it best to keep all of my REQUESTES TIED TO THE WEBSERVICE STORED
IN THE PARENT DOCUMENT AND USE FUNCTIONS to interact with the service
or should i initate new webservice calls within the pop up window?
thanks for any direction on the correct practice to follow