Contents of My Nook on the Web
Home Page

JavaScript Documentation PDFs

  Change Log

Analog LOGFORMAT for MyDomain Sites

Replacement Tips For Radio Shack 64-2184 Soldering Station

How to to allow tabs to be used a <textarea>

Site Change Log

Email Me

About Me

The following are links to other sites. They will open in a new window or tab:

My Wife's Business Named Sew-lutions

Sugarcat Simon's Niche on the Web about Feline Diabetes

Online Etymological Dictionary

Web site tracking a "person" through thirty three companiess in 8 states

Bob Novell's Nook on the World Wide Web
JavaScripter - Dynamically Insert Material Into Web Pages
Page Last Updated: July 30, 2001
Increased textarea tags from rows="10" to rows="30"

JavaScripter is Copyright Bob Novell, 2011,  All Rights are Reserved
See Copyright Details for more information

If your hosting company allows you to use SSIs (Server Side Include) you can use that method to insert things into your web pages, such as a Navagatgion list, much easier than using JavaScripter. I wrote JavaScripter when my web sites where on the AT&T servers (my ISP) and they did not allow the use of SSIs.

So - if you can use SSIs on your web server, do so, don't use JavaScriper.
If you don't know how to use this page or why you would want to you use it, go to the 
JavaScripter Help Page and read and understand it before you try to use this page and its output.

Paste your HTML code into the box below and click the Generate Code button

      Check this box to have JavaScripter create opening and closing Script tags.
Generated JavaScript Code

After you have generated the code, do the following to use in one of two ways:

  1. You can place (or have JavaScript generate) Script tags around the code and insert it directly into your web page at the point where you want the code created on your web page.
  2. Or, you can leave off the Script tags (don't tell JavaScripter to generate Script tags) and save the generated code in a file on your web site and then insert Script tags where you want the code created on your web page.
The Pros and Cons of each method are:

Method 1 - put the JavaScript generated code in each web page file

Pro - there really only one and it is not a very strong one:
Iif you are going to use the generated code in only one web p page, putting the code JavaScripter generated directly into your web page eliminates the steps needed to put the code in a file and then upload that file to the server.

Con -
With the first method, if you decide to change the code, you will have to make changes to every page into which you have inserted it. You can update the single file which you created with generated code and then all of your web pages which contain Script tags "pointing" to that one file will show the changes when they are displayed. This saves a lot of work.

Additonly, with the first option you are adding what may be a lot of text to each web page file and, if you use it in a lot of your web pages, this will increase the amount of disk storage space you use on your computer and on the server where your web site is hosted.

Method 2 - put the JavaScripter generated code into a file and then use Script tags to insert it into your web pages

  1. Create a text file and copy the entire contents of the "Generated JavaScript Code" text box into the new file. If you are a Windows user you can use the Notepad program to create this file. You should find Notepad in the Accessories group on the Program Menu.

  2. Save the file with a meaningful name and with the extension JS.

    For example, if you are creating a navigation list for your web pages, you might use the name navlist.js

    It is vital that you save the file as a text only file without any formatting codes. The Notepad program will save the file as a text file without any formatting codes but the WordPad program will add formatting codes unless you specify the type as TEXT (.txt) when you save the file.

    However you create the file, be absolutely sure that the program will not add anything to the file - you want the file to contain only the generated code shown above

  3. Upload the file to your web server.

  4. In each web page where you want to use the generated code, insert a Script tag:

    <script language="javascript" type="text/javascript" src="XXXXXX"></script>

    Copy this sample and paste it into your web pages at the point where you want the generated code to insert your statements. The src parameter in the Script tag stands for "Source." This is where you specify the name of the file you created in Step 2. You must change the XXXXXX to the name of the file you created in step 2. For example, if you use the file name navlist.js, the Script tag would be:

    <script language="javascript" type="text/javascript" src="navlist.js"></script>

    If you put the file in a directory/folder other than the one that contains the web pages which will use the generated code, you must specify that directory/folder in the script tag along with the file name.

    If you put the file in a directory/folder named JS which is directory below the root directory/folder for your web site, the Script tag would be:

    <script language="javascript" type="text/javascript" src="js/navlist.js"></script>
I recommend that you perform steps 1 through 3 and then make a test web page and use it to check that the code works as you wish it to before you change your other web pages.

Once you have it working as you want, then perform step 4 and change your web pages. You should then text each and every page you changed to insure that things are working as you want them to. Don't assume that because one page is okay that all of them are. You could make mistakes on other pages. Check all your pages after you change them.

JavaScripter is provide "as is" and no support is provided. Having said that, if you find a bug in JavaScripter" please report it to me via email and I will try to find time to investigate the problem but remember, I'm offering this for us "as is". Also - if you have a quick question about JavaScripter you can email me and I will try to reply to you but I can't guarantee that I will be able to reply in a timely fashion.
Copyright Details: JavaScripter is Copyright Bob Novell, 2011 All Rights are Reserved
You may freely use JavaScripter but you may not copy any part of the HTML, JavaScript, CSS Stylesheets, or any other part of JavaScripter. Further more, you must NOT remove the HTML comments generated with the JavaScript code created from your input. A link to this page would be appreciated if you use JavaScripter to generate code and include it in your web pages. To link to this page, insert the following in your web pages, be sure to copy all of the code:

The link will appear similar to the following:
Some content generated with JavaScripter from Bob Novell

If you use JavaScripter, send me a link to your page and I'll build a "Used By" page with links to those using code generated by JavaScripter. Of course, you should put a link to this JavaScripter pagbe on your pages using Javascripter - right?

Valid HTML 4.01 Transitional

Valid CSS!