Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

about showModalDialog
the function will return a value.
But when the function open a remote web page,
No value will be returned ?



Report this thread to moderator Post Follow-up to this message
Old Post
creative
04-23-04 04:30 AM


Re: about showModalDialog
Right.

"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 ?
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
William Morris
04-23-04 06:32 PM


Re: about showModalDialog
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...
> Right.
>
> "creative" <creativebyte@hotmail.com> wrote in message
> news:uDJvL0NKEHA.2260@TK2MSFTNGP09.phx.gbl... 
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
create
04-23-04 06:32 PM


Re: about showModalDialog
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.

- 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... 
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
William Morris
04-23-04 08:31 PM


Re: about showModalDialog
> 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


Report this thread to moderator Post Follow-up to this message
Old Post
Michael Harris \(MVP\)
04-24-04 01:33 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

IE Scripting archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 03:26 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.