I use Javascript to get cross-page callbacks working. All this
server-side stuff gets on my wick.
On your pop-up page, in an init function called from body.onload you
can do something like
var CallHome;
function init()
{
this.CallHome = this.opener.get CallbackFunctio n(this);
}
and in your opening page
function getCallbackFunc tion(caller)
{
// add your own logic based on caller.name if you're
// going to have several control windows open
return updateResourceL ist;
}
function updateResourceL ist(resource)
{
// do what you have to do to update your list
// with the value(s) from resource
}
now, when the user selects a resource in your popup window you can call
CallHome() and pass the value that they've selected. The nice thing
about doing it this way is that neither page really cares about the
other, you can mix and match pages with callback functions as you
please. If your popup refreshes, or does a postback, it will
automagically dial home again to get the callback function.
AAOMTim wrote:
In my design, page 1 is a web-based dashboard used to assign resources to an
organization. The dashboard includes information about the organization as
well as a list of all assigned resources. Included on page 1 is a lookup
button that will open a search menu to find additional resources to assign to
the orgaization. When I press the lookup button on page 1, I want to leave
page 1 open and open a new search page. On the search page, I want to
perform a search and get a list of resources to choose from to assign to the
organization on the first page. When I select the resource, I want to
automatically update tje listed of assigned resources on page 1. The key
here is that I want to keep both pages open at the same time as part of my
workflow.
Cross-page postbacks don't seem to work because it closes the submitting
page. Any recommendations ? Any examples?
Thank you!
--
Tim Meagher