|
|
Introduction
Thousands of free "Jump Box" CGI hosting services and "cut-and-paste" javascripts are available on the web. Use any major search engine to find one you like. As an example, the Yahoo (Google) search engine list of 511,000 is at: |
A Subscription CGI Jump Box
This jump box is similar to hundreds of free codes that are available on the web. All you have to do is go to the website of the provider and fill out a form with your URL choices. The code will be shown for C&P or you can select an option to have the code emailed to you. |
|
Note: For demo only – the NetJump server is inactive at the present time. Here's the code for the above jump box, which is all HTML and can be used in an email signature box: |
A Jump Box Using JavaScript Event Handlers
In response to a problem post from Webber Mellissa, aka mjs526@webtv.net, in Beth Candy's PageBuilder NG, I added the javascript jump box from her webpage as a demo of how to modify her problem script to work correctly on WebTV PageBuilder webpages. Mellissa's code would not work on my PageBuilder webpage until I modified the code. Here's the code I used for the above jump box: With WebTV, using the jump box above; if you click on the drop-box index phrase after the drop-box displays the menu, nothing happens except that the drop-box collapses. However, if you inadvertantly click the selected index option after returning from a jump, the WebTV browser will take you to the top of the webpage! This is a quirky nuisance that I don't know how to avoid. Anyone who knows how to prevent this let me know and I will add the necessary changes and give you full credit! Also, I used the "onChange" event handler, instead of the "onClick" handler Melissa's code used in the <select> tag because older versions of the Netscape browser, still in widespread use today in schools and libraries, do not support the "onClick" event handler in the <select> tag, while MS and WebTV supports both handers. OK folks, this illustrates how you have to work with online JavaScript scripts with WebTV to "debug" your scripts and learn what works. See how I discovered the errors in the script and changed it. This is the way Webbers have to do with any scripts, especially the many free online C&P scripts that contain properties and methods that Web doesn't support, and which usually extra spaces and "returns" (whitespace) that PageBuilder webpages don't allow. Also, the PageBuilder progran will not allow the use of HTML comment tags to hide scripts from non-javascript browsers. Now one other point here that is controversial and the result of habit – the use of the ending </option> tag. The <option> tag is a singleton tag that does not require a closing tag. However, many programs, such as MS Office Word, still insert closing tags in HTML text for most singleton tags like </li> and other tags that can be used as singleton tags like <p> and it's optional </p> tag. Also, the HTML DTD does not strictly prohibit these closing tags, but apparently allows their transitional, optional use. I, out of habit, inadvertently put closing option (</option>) tags in Melissa's script. Also, in the NetJump code above they were put in the code I received from NetJump. All the old deprecated and unused closing tags will still be OK to use for some time to come and may even be OK with XHTML. With XHTML all singleton tags must have the "closing tag" syntax, like <option />, to tell the browser HTML markup interpreter not to expect to see a closing tag. So with XHTML, if you don't use the singleton tag closing syntax, you must use a closing tag. However, I wonder if future strict HTML and XHTML DTD's will prohibit using the optional closing tags to force the universal use of the XHTML singleton closing tag syntax? I like to use closing tags to clearly label an HTML element's contents, but don't know how long I can get by with it because the new versions of HTML, XHTML, and XML keep getting much more strict. The jump box code shown above is for Melissa's Page One. I suggest that Mellissa use a drop-box like this on all her webpages. To use the jump box code on page Two, just remove the first option value URL and substitute the URL for Page One to link back to the previous page. Do this for subsequent pages, always listing links back to the other pages in the website. I also suggest that instead of just listing pages in the jump box, you consider putting subject information in the option boxes, that will better inform your viewers of the subject choices on each page of your website. In fact, you could also put navagational links to the "Top" of each page and to the "Home" page. Search the web and your fellow webbers websites in the NG's to find the code you want. Ask your fellow Webbers what's the most dependable online jump-box (CGI driven) providers if you want an HTML form jump-box for your email signature box. Use the javascript jump-box code shown above for your webpages. |
|
|
|
|
| |
|
|
||
|
|
||
|
|
||