Change to showModalDialog?

Use a spelling app that opens using, checks and help correct the spelling in a text box and then closes.  Want to be able to change how this opens, from a link to a showModalDialog link.  Is this possible?

Current code:

<textarea name="MyTextArea" cols="50" rows="7" id="MyTextArea">Ths iz a tezt sampl. </textarea>
<a title="Spell Check" href="#"  onClick="'/ASPSpellCheck/ASPSpellCheck.asp?fields=MyTextArea','aspSpellWin','width=460, height=290, scrollbars=no');return false;" ><img src="/ASPSpellCheck/Assets/spellicon.gif" style="cursor:pointer"   alt="Spell Check" border="0" ></a>

Had a go at using showModalDialog, the window opens but hangs. Presume that there is an parameter that is not being passed:
<textarea name="MyTextArea" cols="50" rows="7" id="MyTextArea">Ths iz a tezt sampl. </textarea>
<a title="Spell Check" href="#"  onClick="window.showModalDialog('/ASPSpellCheck/ASPSpellCheck.asp?fields=MyTextArea','aspSpellWin','dialogWidth:460px;dialogHeight:290px');" ><img src="/ASPSpellCheck/Assets/spellicon.gif" style="cursor:pointer"   alt="Spell Check" border="0" ></a>

Anyone got any ideas?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

First question before I move forward on this: do you intend for people using browsers other than Internet Explorer to use your web page?  If so, then showModalDialog is not for you, as it is a feature implemented only by Microsoft browsers, and is the function you should use.
daimo1Author Commented:
Hi Kyanar

Happy with IE only.  

OK, first things first, you do not need that second parameter - unlike in, that is the special dialog parameters to hand to the javascript of the popup (for future reference when using window.showModalDialog)

Second up, modal dialogs don't have as much access to the DOM and API as a regular popup does.  First thing I note is that the ASP spell check system has a "Processing" wait screen while it works, then it redirects you off to it's actual scripts to perform the spell check.  Unfortunately, a dialog opened with showModalDialog is not actually allowed to do this, probably due to the risk of XSS exploits making it too dangerous to allow.

So, regretfully, I must inform you that what you are attempting to do is not possible with the showModalDialog method (I tore my hair out attempting to do this with a complex online data entry application - eventually gave up and removed all showModalDialog references from the script)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
daimo1Author Commented:
Not what I wanted to hear but at least i won't waste anymore time trying.

Thanks for you help Kyanar.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.