Code Comments
Programming Forum and web based access to our favorite programming groups.the function will return a value. But when the function open a remote web page, No value will be returned ?
Post Follow-up to this messageRight. "creative" <creativebyte@hotmail.com> wrote in message news:uDJvL0NKEHA.2260@TK2MSFTNGP09.phx.gbl... > the function will return a value. > But when the function open a remote web page, > No value will be returned ? > >
Post Follow-up to this messageHow to get the return value by opening a remote page? "William Morris" <news.remove.this.and.the.dots@seamlyne.com> дÈëÓʼþ news:c6beud$a6h1q$1@ID-205671.news.uni-berlin.de... > Right. > > "creative" <creativebyte@hotmail.com> wrote in message > news:uDJvL0NKEHA.2260@TK2MSFTNGP09.phx.gbl... > >
Post Follow-up to this messageIn the calling page: retVal = window.showModalDialog(url, args, options) In the dialog page: // the remote page has to assign a value to window.returnValue. window.returnValue = 'some value or object' window.close() Any values that are passed back and forth have to be done explicitly. - Wm -- William Morris Semster, Seamlyne reProductions Visit our website, http://www.seamlyne.com, for the most comfortable historically inspired clothing you can buy! "create" <creativebyte@hotmail.com> wrote in message news:OUMjhIVKEHA.3016@tk2msftngp13.phx.gbl... > How to get the return value by opening a remote page? > "William Morris" <news.remove.this.and.the.dots@seamlyne.com> дÈëÓʼþ > news:c6beud$a6h1q$1@ID-205671.news.uni-berlin.de... > >
Post Follow-up to this message> In the calling page: > > retVal = window.showModalDialog(url, args, options) > > > In the dialog page: > > // the remote page has to assign a value to window.returnValue. > window.returnValue = 'some value or object' > window.close() > > Any values that are passed back and forth have to be done explicitly. > I think the OP knows the syntax, but that the issue is the cross-domain access. The showModalDialog documentation only cautions about sending private information as an argument to a page in a different domain. Even though there is no mention in the documentation of passing arguments or returning a value being blocked in the cross-domain case, I think that may actually have changed as the consequence of one of the *many* IE upgrades and/or security patches. -- Michael Harris Microsoft.MVP.Scripting Sammamish WA US
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.