modal dialog and returned results

Discussion in 'ASP .Net' started by Brian Henry, Jul 7, 2004.

  1. Brian Henry

    Brian Henry Guest

    (please dont say don't do this because SP2 will block this, this is an
    internal site and i have full access to settings on the domain to make popup
    blocking turned off for this site)

    i have a modal dialog box, which lets users select user names from a list
    (kinda like an address book) but then i need to return that list to the
    calling application form... how would i go about doing this? thanks!
    Brian Henry, Jul 7, 2004
    #1
    1. Advertising

  2. Brian Henry

    bruce barker Guest

    to reutn an object from a modal window to the caller, require the caller
    window to clone the objects. this is because when the modal window is
    closed, all javascript memory is recovered. any ref to objects in the the
    caller will reutrn null. for this reason returnValue can only return a
    simple object (int/string).

    the best approach is to call a method in the caller (opener window) and
    pass your list to it, and have the caller clone it.

    -- bruce (sqlwork.com)


    "Brian Henry" <> wrote in message
    news:%...
    > (please dont say don't do this because SP2 will block this, this is an
    > internal site and i have full access to settings on the domain to make

    popup
    > blocking turned off for this site)
    >
    > i have a modal dialog box, which lets users select user names from a list
    > (kinda like an address book) but then i need to return that list to the
    > calling application form... how would i go about doing this? thanks!
    >
    >
    bruce barker, Jul 7, 2004
    #2
    1. Advertising

  3. Brian Henry

    Brian Henry Guest

    how would i call a parent form from a modal form though?


    "bruce barker" <> wrote in message
    news:...
    > to reutn an object from a modal window to the caller, require the caller
    > window to clone the objects. this is because when the modal window is
    > closed, all javascript memory is recovered. any ref to objects in the the
    > caller will reutrn null. for this reason returnValue can only return a
    > simple object (int/string).
    >
    > the best approach is to call a method in the caller (opener window) and
    > pass your list to it, and have the caller clone it.
    >
    > -- bruce (sqlwork.com)
    >
    >
    > "Brian Henry" <> wrote in message
    > news:%...
    > > (please dont say don't do this because SP2 will block this, this is an
    > > internal site and i have full access to settings on the domain to make

    > popup
    > > blocking turned off for this site)
    > >
    > > i have a modal dialog box, which lets users select user names from a

    list
    > > (kinda like an address book) but then i need to return that list to the
    > > calling application form... how would i go about doing this? thanks!
    > >
    > >

    >
    >
    Brian Henry, Jul 7, 2004
    #3
  4. Brian Henry

    bruce barker Guest

    <script>
    if (window.opener.myRoutine)
    {
    window.opener.myRoutine(someData);
    }
    </script>


    -- bruce (sqlwork.com)

    "Brian Henry" <> wrote in message
    news:...
    > how would i call a parent form from a modal form though?
    >
    >
    > "bruce barker" <> wrote in message
    > news:...
    > > to reutn an object from a modal window to the caller, require the caller
    > > window to clone the objects. this is because when the modal window is
    > > closed, all javascript memory is recovered. any ref to objects in the

    the
    > > caller will reutrn null. for this reason returnValue can only return a
    > > simple object (int/string).
    > >
    > > the best approach is to call a method in the caller (opener window) and
    > > pass your list to it, and have the caller clone it.
    > >
    > > -- bruce (sqlwork.com)
    > >
    > >
    > > "Brian Henry" <> wrote in message
    > > news:%...
    > > > (please dont say don't do this because SP2 will block this, this is an
    > > > internal site and i have full access to settings on the domain to make

    > > popup
    > > > blocking turned off for this site)
    > > >
    > > > i have a modal dialog box, which lets users select user names from a

    > list
    > > > (kinda like an address book) but then i need to return that list to

    the
    > > > calling application form... how would i go about doing this? thanks!
    > > >
    > > >

    > >
    > >

    >
    >
    bruce barker, Jul 7, 2004
    #4
  5. Brian Henry

    Brian Henry Guest

    ah thanks


    "bruce barker" <> wrote in message
    news:%...
    > <script>
    > if (window.opener.myRoutine)
    > {
    > window.opener.myRoutine(someData);
    > }
    > </script>
    >
    >
    > -- bruce (sqlwork.com)
    >
    > "Brian Henry" <> wrote in message
    > news:...
    > > how would i call a parent form from a modal form though?
    > >
    > >
    > > "bruce barker" <> wrote in message
    > > news:...
    > > > to reutn an object from a modal window to the caller, require the

    caller
    > > > window to clone the objects. this is because when the modal window is
    > > > closed, all javascript memory is recovered. any ref to objects in the

    > the
    > > > caller will reutrn null. for this reason returnValue can only return a
    > > > simple object (int/string).
    > > >
    > > > the best approach is to call a method in the caller (opener window)

    and
    > > > pass your list to it, and have the caller clone it.
    > > >
    > > > -- bruce (sqlwork.com)
    > > >
    > > >
    > > > "Brian Henry" <> wrote in message
    > > > news:%...
    > > > > (please dont say don't do this because SP2 will block this, this is

    an
    > > > > internal site and i have full access to settings on the domain to

    make
    > > > popup
    > > > > blocking turned off for this site)
    > > > >
    > > > > i have a modal dialog box, which lets users select user names from a

    > > list
    > > > > (kinda like an address book) but then i need to return that list to

    > the
    > > > > calling application form... how would i go about doing this? thanks!
    > > > >
    > > > >
    > > >
    > > >

    > >
    > >

    >
    >
    Brian Henry, Jul 7, 2004
    #5
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Leila
    Replies:
    0
    Views:
    390
    Leila
    Apr 26, 2005
  2. Matt
    Replies:
    1
    Views:
    3,122
    Whitecrest
    Jun 1, 2004
  3. Don
    Replies:
    0
    Views:
    339
  4. Matt
    Replies:
    0
    Views:
    211
  5. gopal srinivasan
    Replies:
    0
    Views:
    217
    gopal srinivasan
    Nov 5, 2004
Loading...

Share This Page