473,322 Members | 1,510 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

modal dialog and returned results

(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!
Nov 18 '05 #1
4 1481
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" <br**********@newsgroups.nospam> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
(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!

Nov 18 '05 #2
how would i call a parent form from a modal form though?
"bruce barker" <no***********@safeco.com> wrote in message
news:eH*************@TK2MSFTNGP11.phx.gbl...
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" <br**********@newsgroups.nospam> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
(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!


Nov 18 '05 #3
<script>
if (window.opener.myRoutine)
{
window.opener.myRoutine(someData);
}
</script>
-- bruce (sqlwork.com)

"Brian Henry" <br**********@newsgroups.nospam> wrote in message
news:ue**************@TK2MSFTNGP09.phx.gbl...
how would i call a parent form from a modal form though?
"bruce barker" <no***********@safeco.com> wrote in message
news:eH*************@TK2MSFTNGP11.phx.gbl...
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" <br**********@newsgroups.nospam> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
(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!



Nov 18 '05 #4
ah thanks
"bruce barker" <no***********@safeco.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
<script>
if (window.opener.myRoutine)
{
window.opener.myRoutine(someData);
}
</script>
-- bruce (sqlwork.com)

"Brian Henry" <br**********@newsgroups.nospam> wrote in message
news:ue**************@TK2MSFTNGP09.phx.gbl...
how would i call a parent form from a modal form though?
"bruce barker" <no***********@safeco.com> wrote in message
news:eH*************@TK2MSFTNGP11.phx.gbl...
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" <br**********@newsgroups.nospam> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
> (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!
>
>



Nov 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Paul Aspinall | last post by:
Can anyone advise how to display a form on top, and modal, without using ShowDialog?? Thanks
2
by: Brian Henry | last post by:
If i have a window showing like this <script>window.showModalDialog('../weblinks/default.aspx','','unadorned:yes' );</script> how can i get it to return a value to its calling page? I want to...
10
by: Guadala Harry | last post by:
I have a modal dialog that currently does all of the following except item 4. 1. lets users select a graphic from a list of thumbnails (and when selected, displays the full-size image in a...
1
by: Davey P | last post by:
I am able to open a modal dialog on a button click from the code behind by placing a RegisterClientScriptBlock() method in the button click event handler. This all works fine, but the problem is...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.