Like say if I type a word like "Yo" when I type that it would change to "Dog" or some other random word?
change, Computers & Internet
Like say if I type a word like "Yo" when I type that it would change to "Dog" or some other random word?
change, Computers & Internet
March 11th, 2011 on 9:48 pm
I think you’re talking about Microsoft Word’s AutoCorrect feature. If so, try this:
In Word versions prior to Word 2007:
1.Click the Tools->AutoCorrect Options menu item.
2.Click the AutoCorrect tab.
3.Check the “Replace text as you type” checkbox.
4.Enter the text you want replaced in the Replace text box.
5.Enter the text you want used in the With text box.
6.Click the Add button.
7.Click the OK button.
In Word 2007:
1.Click the round Office button in the upper-left corner of the window.
2.Click the Word Options button.
3.Click the Proofing task.
4.Click the AutoCorrect Options button.
5.Continue as in Step 3, above.
Hope that helps.
March 11th, 2011 on 9:48 pm
You need to write a program… you could use Java… or PHP… or mix Java and PHP together and make it AJAX…
But basically I would use AJAX… but you just need to do a:
Suppose the form field was a text type… named entry…
<? php
$string = $_POST["entry"];
$string = str_replace("Yo", "Dog", $string);
// Output will be Dog if they entered Yo
echo $string;
?>
But you need to use Java to the XMLHTTPRequest function… and that will post your data into a PHP script, or you can have Java handle the form processing as well… up to you…
Good luck
March 11th, 2011 on 9:48 pm
Daniel has the right idea, but thumbs down for confusing Java and Javascript. They are nothing alike. Javascript is the technology used in web browsers, not Java.
You need to make a word filter that catches trigger words and replaces them with the substitution word. This action happens as the form data is posted to the filter function, typically on page refresh. You could use Javascript to submit the form data via AJAX everytime the text element is updated, but it’s pretty tricky and totally depends on your setup.