Javascript spell check
OK,
I have been 'volunteered' for a little project here at work. We have an HTML application that is our main customer database, but it has no in-built spell check feature. Management would like to spell check documentation that is entered into a customer's file. I have no direct access to the HTML application, so the only way I can interact with it is though the .hta file that loads the application. Here is my problem: I have found a nifty little Javascript that will copy selected text from a web page, paste it into Word, run Word's built in spell check, and then paste the changes back into the original document. Code: Code:
<HTML> Any ideas on what I might be missing? I know that within the application pressing ctrl+c and ctrl+v work well enough for copy paste, but I don't know how to code this into the script. I probably did a real bad job of explaining the problem, so let me know if I can clarify. slight |
This is just a guess, but shouldn't you select something first, like
oShell.SendKeys( "^a" ); // select all |
I have tried select all via the sendkeys command, and also just by highlighting with the mouse, and neither works. It's as if the document in the <iframe></iframe> is oblivious to the command, like it's seperate from the rest of the document.
thanks for the suggestion though. slight |
..... I have a spell-checker written in JavaScript I did for a project .... e-mail me if you want it. It does require
1.) JavaScript (duh!) 2.) server-side language (asp, php, etc.) 3.) database or flat files if you have asp/perlscript and sql server you won't even need to change it. |
All times are GMT -5. The time now is 01:56 PM. |