Mark,
I just started researching similar solutions today. I looked at the
code on the ActiveSpell web site:
<script language="JavaScript" src="spell.js"
type="text/javascript"></script>
<form name="myForm">
<textarea name="content">I am speled wrang</textarea>
<input type="button" value="Check Spelling" onClick="spell
('document.myForm.content.value');" />
</form>
In theory, it might work. If you use a .cfm page to embed you .swf
object. Put the javascript call in the .cfm then call from the .swf
(flex) object.
Here's an option to call javascript in action script 3.0:
public var u:URLRequest = new URLRequest("javascript:window.close
()");
I'm just not sure what happens when the javascript exectutes, how
does the Flash player get the miss spelled words back?
If you get a chance to test this out, please post your findings.
Good Luck! :)
Shelley Browning
Intermountain Healthcare
--- In [email protected], Shannon Hicks <[EMAIL PROTECTED]> wrote:
>
> Why wouldn't you just put the ActivSpell code into a CFC to call
in flex?
>
> Shan
>
> Mark Forsberg wrote:
> >
> > I'm very new to Flex so and would like to know if I can do the
> > following.
> > I would like to have the user enter text into a textarea in a
> > Flex app. When they click on "Spell Check" I would use getURL()
to
> > pass the text into a coldfusion template modally so that I can
spell
> > check it with ActivSpell. The CF template would then preferably
pass
> > the spellchecked data back into the Flex app. I could even live
with
> > the coldfusion putting the data into some temp table so that I
could
> > access the data with a cfc to pull back into the app.
> > I have an application that needs a spell checker. However, the
> > only flex component spell checker that I can find is a web-
service.
> > That doesn't meet our business requirements so I'm looking at a
way to
> > meld the two.
> > I'd also be interested if someone has a better idea on how to do
> > what I'm attempting.
> > Thanks for the info.
> >
> > Mark F.
> >
> >
>