Re: ShowmodalDialog between servers
From: Martin Honnen (mahotrash_at_yahoo.de)
Date: 02/18/05
- Next message: Michael Harris \(MVP\): "Re: Classic ol' "Automation server Can't create object""
- Previous message: Dave Anderson: "Re: what user launched my script?"
- In reply to: nilsotto: "ShowmodalDialog between servers"
- Next in thread: nilsotto: "Re: ShowmodalDialog between servers"
- Reply: nilsotto: "Re: ShowmodalDialog between servers"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 18 Feb 2005 17:38:51 +0100
nilsotto wrote:
> We have a web-application that requres a modal dilaog for spellcheck
> functionality
>
> We have made the thing work on our local computers, but when deploying to
> different servers it doesn't work.
>
> The code goes like this :
>
> objTextBox = document.getElementById("txtToCheck");
> url = "http://someserver/spellcheck/SpellStarter.aspx";
> objTextBox.value = window.showModalDialog(url, objTextBox.value, "<params>");
> (<params> omitted for readability, they don't matter)
>
> When "someserver" is the same as the machine serving the javascript and html
> everything works ok.
> When someserver is another server, it doesn't work anymore, which is OK from
> a security point of view. (it works in ie5, but not in ie6, so its probably a
> security "fix")
>
> the next thing to expect is that it shoud start working again if i put the
> "someserver" in trusted sites in ie. It doesn't.
>
> Can you please help, or point me to some other method ?
Elsewhere someone recently claimed he got a similar scenario working by
calling showModalDialog with a URL to a server-side script on the
original server which then does a redirect to the intended URL e.g.
http://example.com/spellcheck/SpellStarter.aspx. I have never tested
whether respectively with what version of IE that works, whether
dialogArguments and returnValue work properly. But maybe you can try and
report back whether that works for you.
-- Martin Honnen http://JavaScript.FAQTs.com/
- Next message: Michael Harris \(MVP\): "Re: Classic ol' "Automation server Can't create object""
- Previous message: Dave Anderson: "Re: what user launched my script?"
- In reply to: nilsotto: "ShowmodalDialog between servers"
- Next in thread: nilsotto: "Re: ShowmodalDialog between servers"
- Reply: nilsotto: "Re: ShowmodalDialog between servers"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|