30. April 2010 11:22
/* Microsoft Office Word Spelling Check*/
function SpellCheck(field)
{
window.frames[field].document.execCommand("Copy");
textRange = window.frames[field].document.body.createTextRange();
textRange.execCommand("Copy");
try
{
var oWord = new ActiveXObject("Word.Application");
oWord.Visible = false;
oWord.Documents.Add();
oWord.Top = -2000;
oWord.Selection.Paste();
oWord.ActiveDocument.CheckSpelling();
oWord.Selection.WholeStory();
oWord.Selection.Copy();
oWord.ActiveDocument.Close(0);
window.frames[field].focus();
window.frames[field].document.execCommand("SelectAll");
window.frames[field].document.execCommand("Paste");
}
catch(err)
{
alert("Error loading Microsoft Word Spelling Check: " + err);
}
finally
{
oWord.Quit(0);
}
alert("Spelling Check Finished!");
}
SpellCheck('crmForm.all.new_inhalt.DataValue');
3. Mai 2010 15:49
3. Mai 2010 21:36
4. Mai 2010 10:59
4. Mai 2010 20:00
5. Mai 2010 07:38
5. Mai 2010 08:06
<Entity name="email">
<ToolBar ValidForCreate="1" ValidForUpdate="1">
<Button Title="Spell Check" ToolTip="Spell Check" Icon="/_imgs/ico_18_home.gif" JavaScript="SpellCheck('descriptionIFrame');" />
</ToolBar>
</Entity>
6. Mai 2010 09:41