+ Start a Discussion

wait on web service call; use retrieved data

i am looking towards doing the following:
call a web service and retrieve a variable x; use this variable x to construct a url to load in a VF iFrame. would the call execution occur in time for the page request to be formed properly? i mean i want the variable to be initialized and accepted as part of the url before the page request is sent from the iFrame. If it won't how can I achieve this?
would the routine:
call web service; retrieve result as an apex string and append to url for iframe src work? i am yet to get the web service to try this out ... should try it today or tomm