History of JavaScript Module Tutorial
Version 5 | Current version | |
---|---|---|
This page is not finished!!! It Should NOT be considered anything more than a rough draft. While the information in it is essencially correct - there may be errors. IntroductionA while ago - I spent a little time browsing the library sites for JavaScript code. One of these is The JavaScript Source at http://JavaScript.internet.com where I found a nice little routine that I rewrote as a module for TikiWiki. This tutorial explains the steps taken, why they were taken, and how this can be beneficial to any administrator or beginning developer. In the process, this module was included and is available in TikiPro.What Does It Do?The JavaScript code is fairly simple. See for yourself at http://JavaScript.internet.com/forms/dictionary.html#source. It allows a user to enter a word / select either a Dictionary or a Thesaurus / and then look up a definition for that word.I liked the idea of this, but I did not care for the implementation due to the following reasons:
In the process, I added:
So Where Is The Source Code?In making this tutorial - I had a choice to make. This module could be added as a complete Package - or – it could be added to an existing Package in TikiPro. I didn’t think this little module added enough functionality to claim to be a Package – and it was sort of related to an existing Package – so I added it the Search Package.The primary files are named “mod_dictionary.php” and “mod_dictionary.tpl” which should be located in the search/modules directory and the JavaScript source was added to the file kernel/tiki.js file. All of these files are attached to this page. The Code – How Does It Work?
The PHP File – “mod_dictionary.php”[+]The TPL File – “mod_dictionary.tpl”[+]The ))JavaScript.Code(( In Tiki.js[+]How Do I Modify This For Myself?As stated earlier, other search sites can be easily added to this module. The key to this is the Option Statements in the file “mod_dictionary.tpl”. The following steps were taken when Google was added.
| This page is not finished!!! It Should NOT be considered anything more than a rough draft. While the information in it is essencially correct - there may be errors. IntroductionA while ago - I spent a little time browsing the library sites for JavaScript code. One of these is The JavaScript Source at http://JavaScript.internet.com where I found a nice little routine that I rewrote as a module for ((bitweaver and ((bitweaver and ((bitweaver and ((bitweaver and ((bitweaver and ((bitweaver and ((bitweaver and ((bitweaver and ((bitweaver and bitweaver and TikiWiki. This tutorial explains the steps taken, why they were taken, and how this can be beneficial to any administrator or beginning developer. In the process, this module was included and is available in bitweaver.What Does It Do?The JavaScript code is fairly simple. See for yourself at http://JavaScript.internet.com/forms/dictionary.html#source. It allows a user to enter a word / select either a Dictionary or a Thesaurus / and then look up a definition for that word.I liked the idea of this, but I did not care for the implementation due to the following reasons:
In the process, I added:
So Where Is The Source Code?In making this tutorial - I had a choice to make. This module could be added as a complete Package - or – it could be added to an existing Package in bitweaver. I didn’t think this little module added enough functionality to claim to be a Package – and it was sort of related to an existing Package – so I added it the Search Package.The primary files are named “mod_dictionary.php” and “mod_dictionary.tpl” which should be located in the search/modules directory and the JavaScript source was added to the file kernel/tiki.js file. All of these files are attached to this page. The Code – How Does It Work?
The PHP File – “mod_dictionary.php”[+]The TPL File – “mod_dictionary.tpl”[+]The ))JavaScript.Code(( In Tiki.js[+]How Do I Modify This For Myself?As stated earlier, other search sites can be easily added to this module. The key to this is the Option Statements in the file “mod_dictionary.tpl”. The following steps were taken when Google was added.
|