How to Install CharWrite

You may download and install CharWrite in a web page provided (1) that it is not used for commercial purposes and (2) that you attribute it to The LINGUIST List.

Note: View CharWrite in action on the demonstration page. View the source of this page if you wish to see a working example of the code described on this page.

Step 1. Download the source-code of the following files and put the files in the same directory as your webpage. To download the source-code, right click on the file names below and select the appropriate Save option ("Save Target" in Internet Explorer or "Save Link Target" in Netscape). Use control-click instead of right click on a Mac.

  1. ipa-pop-up.js
  2. ipa-pop-up-1.html
  3. ipa-pop-up-3.html
Note: You must save the source-code of these files. You cannot simply copy the page as it appears in your browser, since the last page (ipa-pop-up-3.html) appears completely blank.

Step 2. Insert the following JavaScript (the ipa-pop-up.js file call) into the HEAD section of your webpage:

<SCRIPT language="JavaScript" src="ipa-pop-up.js">
</SCRIPT>

Note:

If you saved the above files in a different directory than your webpage, you must:

  1. Add a directory path for the ipa-pop-up.js file to the script in the HEAD section of your webpage according to where you saved the file.

    For example,
    src="DIRECTORYNAME/ipa-pop-up.js"

  2. In the ipa-pop-up.js file, add a directory path for both the ipa-pop-up-1.html file and the ipa-pop-up-3.html file according to where you saved the files.
    (» denotes code that is continued on next line.)

    For example,
    1. var url = "DIRECTORYNAME/ipa-pop-up-1.html?ID="+NAME;
    2. var url = "DIRECTORYNAME/ipa-pop-up-3.html?ID= »
      "+NAME+"&String1="+temp4;

Step 3. In the BODY section of your webpage (your web form), change your HTML form element name to "form1".

For example,
<FORM NAME="form1" ACTION="http://www.somewhere.com/somepage.html" METHOD="POST">

Step 4. Insert the following JavaScript (the CharWrite function call) into your webpage's text field or text area:

OnDblClick="GetIPA ('YOUR HTML ELEMENT NAME')" OnContextMenu="return GetIPA2('YOUR HTML ELEMENT NAME')"

Note:

The two bolded places in the JavaScript function must use the same name as your HTML element name. Your HTML element name is the name of the input on your form.

For example,
<input name="SampleInput" OnDblClick="GetIPA('SampleInput')" OnContextMenu="return GetIPA2('SampleInput')"type="Text" size= "28" maxlength="255">

View CharWrite in action on the demonstration page. View the source of this page if you wish to see a working example of the code described on this page.

The content of this page was developed by the E-MELD Web Development Team.

Choosing Software
Software Database
CharWrite

User Contributed Notes
E-MELD School of Best Practice: Tool Room
+ Add a comment

Back to top Credits | Glossary | Help | Navigation | Site Map | Site Search