Edit the user dictionary

Use the form below to remove words from and add words to your user dictionary.

User dictionary contents:

Word:




 

Home | Order Now | Products | Upgrades | Free Trial | Partners | About Spellex | Contact Us | Site Map | Privacy Policy

Spellex Corporation © 2008. All rights reserved


// Spellex Spell Check Applet // EditUserDict: JavaScript support functions for the Edit User Dictionary form // Copyright (c) 2001-2006 Spellex Corporation // www.spellex.com // Copyright (c) 2001-2006 Wintertree Software Inc. // // $Id: EditUserDict.js,v 2.1 2006/06/15 13:20:24 wsi Exp wsi $ // Fill the list box in the user dictionary form with words in the user dictionary var userDictArray = new Array(); if (userDictStr.length > 0) { userDictArray = userDictStr.split(" "); } document.editUserDict.userDict.options.length = 0; for (var i = 0; i < userDictArray.length; ++i) { var newWord = new Option; newWord.text = userDictArray[i]; document.editUserDict.userDict.options[document.editUserDict.userDict.options.length] = newWord; } // Add a word to the user dictionary function onAddWordBtn() { var word = document.editUserDict.word.value if (word.length == 0) { alert("Please enter a word in the 'Word' field."); return; } // Make sure the word isn't a duplicate for (var i = 0; i < document.editUserDict.userDict.options.length; ++i) { if (document.editUserDict.userDict.options[i].text == word) { return; } } var newWord = new Option; newWord.text = word; document.editUserDict.userDict.options[document.editUserDict.userDict.options.length] = newWord; } // Remove a word from the user dictionary function onRemoveWordBtn() { if (document.editUserDict.userDict.selectedIndex < 0) { alert("Please select a word to delete."); return; } document.editUserDict.userDict.options[document.editUserDict.userDict.selectedIndex] = null; } // Respond to an OK button press by saving the user dictionary contents // and returning to the previous page function onOkBtn() { // Build a string containing the user dictionary. userDictStr = ""; for (var i = 0; i < document.editUserDict.userDict.options.length; ++i) { userDictStr += document.editUserDict.userDict.options[i].text; if (i < document.editUserDict.userDict.options.length - 1) { userDictStr += " "; } } saveCookie(); history.back(); } // Return to the previous page without saving the dictionary contents function onCancelBtn() { history.back(); } // Clear the user dictionary by deleting the cookie. function onClearBtn() { if (confirm("Remove all words in the user dictionary?")) { document.cookie = cookieName + "=" + "; expires=Fri, 02-Jan-1970 00:00:00 GMT" + "; path=/"; document.cookie = cookieName + "=" + "; expires=Fri, 02-Jan-1970 00:00:00 GMT"; } history.back(); }