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.
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.
If you saved the above files in a different directory than your webpage, you must:
- 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.
- 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.)
- var url = "DIRECTORYNAME/ipa-pop-up-1.html?ID="+NAME;
- var url = "DIRECTORYNAME/ipa-pop-up-3.html?ID= »
Step 3. In the BODY section of your webpage (your web form), change your HTML form element name to "form1".
<FORM NAME="form1" ACTION="http://www.somewhere.com/somepage.html" METHOD="POST">
OnDblClick="GetIPA ('YOUR HTML ELEMENT NAME')" OnContextMenu="return GetIPA2('YOUR HTML ELEMENT NAME')"
<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
|User Contributed Notes
E-MELD School of Best Practice: Tool Room
|+ Add a comment|