HORACE'S NEOWEBSCRIPT
ODDS & ENDS DEMOS

These are just a few example applications of NeoWebScript. Some are probably useful - others are just for grins. Below, you will find demos with some explaination for ...
  1. Startable/Stopable Gif Animation - a little demo that illustrates integration of NeoWebScript, GD, Java and JavaScript (new 1-19-98)
  2. Dynamic Gif Generation - a little demo that illustrates the dynamic creation of gifs (updated 4-1-97)
  3. Credit Card Number Validation - a little demo that validates the form of an entered number and returns the TYPE of card it should be on. The demo is on a SECURE server. (new 3-7-97)
  4. Homegrown Image Maps - a little demo that suggests several ways to implement your own image mapping using NeoWebScript.- Now with a little Netscape 3.0 image manipulation JavaScript demo as well. (Updated 9-26-96)
  5. Notes & Event Calendar - a little demo that implements a calendar that may be used to add/edit/delete notices associated with selected days (new 8-11-96)
  6. NeoWebScript Cookies - an example of NeoWebScript's cookie handling - (new 6-8-96)
  7. Postgres95 PhoneBook - a little phonebook demo of NeoWebScript's Postgres95 capability - (new 6-1-96)
  8. NeoWebScript Interpreter - a NeoWebScript Interpreter for testing commands online - (new 5-25-96)
  9. Mail - Mail list handling
  10. GuestBook - a demo guestbook
  11. World Clocks - just for grins - a little demo that allows you to view the current time from several major cities/countries - (Updated 6-7-96)
  12. PhoneBook - an old phonebook example (may be broken)

Disclaimers: (what's a page like this without 'em {;-)

  1. NeoWebScript is under fundemental development and is subject to rapid - sometimes substantial - change. I will try to keep these demos current - but they may break from time to time.

  2. Few, if any, of these demos are fully error resistent. Once NeoWebScript development settles down a bit, I'll make them more bullet proof. For now, please be careful about things like reloading pages. Some browsers (Netscape for example) are "smart" enough to re-post input data while others (MSIE for example) are not. Use the back button to backup and manually re-post.


"Start-able / Stop-able" Gif Animation

- a little demo that illustrates the integration of NeoWebScript, GD, Java and JavaScript. It implements a gauge of the current load on the webserver that you can start and stop by placing your cursor in the vicinity og the graphic. (new 11-17-97)

Dynamic Gif Creation

- a little demo that illustrates on the fly creation of gifs using NeoWebScript and Boutel's GD graphics. This little demo illustrates the Server Caching and control of Client Caching of dynamically generated gifs. The graphic below represents a chart of the Visitor and Page Access counts to my sites over the last 30 days ending yesterday.

NEW 4-1-97 Just added code to the .gd file to generate a client-side imagemap along with the gif. The imagemap contains one hot-spot for each data value plotted. The spots all link to the JAVA demo of Hourly Visitors & Accesses for the day to which the data value applies. (No - not an April Fool's Joke - and tested with IE 3.01 and Netscape 3.01 - older/other browsers may work for a client-side map that follows the image)

NEW 8-15-97 Added a little Javascript to the imagemap's links to display the date of a pointed to data point in a little text box. I also added alt link attributes...IE4.0b2 shows them but Netscape doesn't seem to (yet {;-)


Wed, Mar 22 Thu, Mar 23 Fri, Mar 24 Sat, Mar 25 Sun, Mar 26 Mon, Mar 27 Tue, Mar 28 Wed, Mar 29 Thu, Mar 30 Fri, Mar 31 Sat, Apr  1 Sun, Apr  2 Mon, Apr  3 Tue, Apr  4 Wed, Apr  5 Thu, Apr  6 Fri, Apr  7 Sat, Apr  8 Sun, Apr  9 Mon, Apr 10 Tue, Apr 11 Wed, Apr 12 Thu, Apr 13 Fri, Apr 14 Sat, Apr 15 Mon, Apr 17 Tue, Apr 18 Wed, Apr 19 Thu, Apr 20 Fri, Apr 21 Wed, Mar 22 Thu, Mar 23 Fri, Mar 24 Sat, Mar 25 Sun, Mar 26 Mon, Mar 27 Tue, Mar 28 Wed, Mar 29 Thu, Mar 30 Fri, Mar 31 Sat, Apr  1 Sun, Apr  2 Mon, Apr  3 Tue, Apr  4 Wed, Apr  5 Thu, Apr  6 Fri, Apr  7 Sat, Apr  8 Sun, Apr  9 Mon, Apr 10 Tue, Apr 11 Wed, Apr 12 Thu, Apr 13 Fri, Apr 14 Sat, Apr 15 Mon, Apr 17 Tue, Apr 18 Wed, Apr 19 Thu, Apr 20 Fri, Apr 21 138400&theDay=Wed_Feb_15', 'visWin1', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=800,height=600')"> Additional info is available here (new 3-26-97)

Credit Card Number Validation

- a little demo that validates the form of an entered number and returns the TYPE of card it should be on. Card types validated inclide MasterCard, VISA, American Express, Diner's Club/Carte Blanche, Discover, enRoute and JCB. Validation is performed according to number prefises, number of digits and (so called) Mod-10 checksum. The demo is on a SECURE server. (new 3-7-97)

Homegrown Image Maps

This is just a little demo that illustrates how you can pass cursor position coordinates from one page to another using NeoWebScript. The examples show using a graphic as either a standard link or as the submit button of a form. Now with a little Netscape 3.0 image manipulation JavaScript demo as well. (Updated 9-26-96)

Notes & Events Calendar

This is a little demo that implements a calendar. It aoolws you to Add, Edit and Delete notes that are associated with particular days.

NeoWebScript Cookies

This little demo illustrates the cookie handling in NeoWebScript. This section will set a cookie to record your current visit to this page. Then, Next time you visit (or reload) this page (within 30 days from now), you will see a message letting you know the last time you visited.

The following command is used to set the new cookie...

html [neo_make_cookie lastnwsdemo [clock seconds] -days 30 -path /]

The following code is used to check to see if (and when) you have visited in the last 30 days...

load_cookies
if {[info exists cookies(lastnwsdemo)]} {
    ...
} else {
    ...
}

That's how I know that you have not visited this page in the last 30 days (or since this example was added), or ... you visited with a different browser, or ... your browser does not support cookies, or ... you disallowed the cookie from being set, or ... you removed the lastnwsdemo cookie from your computer, or ...well you get the idea {;-)

BUG ALERT: I've noticed something odd with Netscape Gold-3B4. If the browser wraps a line of text before seeing the neo_make_cookie command, it will ignore the request to set the cookie. I've told Netscape (though they may have already known) but, for now, try to place the neo_make_cookie command as near the beginning of your page as ppossible - preferably in the head section.


Postgres95 PhoneBook

This little demo implements a simple phonebook using Postgres95 and NeoWebScript.

This demo has just been started - so I'll list the various functional pieces as they are completed and made available:

  • Display (1) - whole phonebook ordered by Last Name - source (1). - (added 6-1-96)
  • Dlsplay (2) with order by field selection. (same as source 1 above) - (added 6-1-96)
    Last Name First Name Comany Name Daytime Phone Email Address
  • Display only the folks from a selected Company - (added 6-1-96)
    BTW - even the selection list here was built by a Query and a bit of NeoWebScript... - source

There are no known problems with this example - which is not to say there are none {;-) - at the time of this writing;


NeoWebScript Interpreter

This little demo presents an input textarea into which you may enter any NeoWebScript commands that you want to test - including procs. When you hit the EXECUTE button, the code will be processed and the results will be displayed in the lower frame.

NOTE: This demo has been placed in a dummy user account. This allows full NeoWebScript functionality to be enabled - but be aware that you may experience some conflicts with other users if you create and delete files and records, etc.

Since folks have different sized screens and resolutions, you may select the size of the input textarea below.

Number of Cols:
Number of Rows:

This demo is still being cleaned up - doesn't look pretty. Also, the Non-Frames version needs a bit of work (especially in the reseting of the textarea value on successive self-loads) - but is at least functional.

Because certain NeoWebScript commands allow manipulation of data files, this demo has been made available in a dummy user account. If you get a copy for your local use, you will want to take precautions to keep anyone from toasting your active data files. One approach would be to keep the interpreter in a protected area. Another approach would be to disable certain commands like: eval, dbstore, dbdelkey, puts, make_nc_registry, register_nc and incr_nc Please be aware that this second approach offers only partial protection - and a skilled NeoWebScript-er will be able to get around it.

Known Problems

  1. neo_make_cookie generates a <meta http-equiv ...> and may have odd side effects (such as posting a cookie more than once) when used in the interpreter.

Mail Lists

This demo is Copyrighted © - 1996 by hav.Software. All Rights Reserved.

The Mail List example shows how NeoWebScript might be used to handle mail lists. The demo allows visitors to subscribe/unsubscribe to various mail lists and to send mail to publicly accessible mail lists (if any). Also included are pages that are intended for private use - such as pages that allow authorized users to send mail to any or all mail list - and sys. admin. pages for reviewing the currently subscribed users, etc. An added attraction of this demo is the ability to post messages to selected newsgroups as well.

The Mail List demo is available for review here. Please note that this demo is provided only for information and example of how NeoWebscript might be used - and you are not to copy it either by ftp or source copy - at least not at this time.

There are no known problems with this example - which is not to say there are none {;-) - at the time of this writing;


GuestBook

This is an example Guest Book patterned after my original guestbook (which was written in HTMLScript). This example does not support threaded messages - but it's Ok as far as it goes.

This example demonstrates several additional features of NeoWebScript like...

  • accessing environment variables;
  • use of numeric record IDs;
  • sorting of database records;
  • encoding and decoding of complicated string values;
  • various entry field validation techniques;
  • including external files - like reusable forms, etc.;

There are no known problems with either of these examples - which is not to say there are none {;-) - at the time of this writing;


World Clocks

This little demo uses the clock facilities of NeoWebScript to allow you to see the current time for various countries and major cities aroound the world. There are two forms of this demo.

First, there is a fairly static display which shows the current time for all covered locations. This example is acceptable for either Netscape or non-Netscape browsers (however, it does use tables). I really prefer this one because it gives a good relative overview along with good indication of dateline and day or night for each location. (NOTE: dateline and day/night conditions are indicated by changes in text and table cell background colors. This will be less effective for browsers that do not support these features) You may grab the source for this example.

Please Note: if you want to use this source, you should be aware that it is written to calculate times based on the current time in Houston - so, if you are in some other timezone, you will need to adjust the time offsets for all locations realative to your location.

The second example is for Netscape visitors who are using at least version 2.0 or later. This example opens a small floating Netscape window in which it displays a continuously updating report of the current time and date along with a selection list from which you can select the location whose time should be displayed. The value is updated approximately once every 5 seconds.

NOTE: This demo may not work for older versions of Netscape with early JavaScript support.
If you experience problems, try the static version above.

There are no known problems with this example - which is not to say there are none {;-) - at the time of this writing;

Change History:

  1. 6-7-96 - hav: Updated the non-JavaScript example to include indications of dateline and day/night in each location. Dateline is indicated by change in the text color used for the location name. Day/Night is indicated by changes in the background color of the table cells. NOTE: assumed sunrise at 7am and sunset at 7pm.


PhoneBook

This example implements a simple Phone Book access/maintanence program and demonstrates several features of NeoWebScript:
  • passing form-info from one .html file to another;
  • reading, writing and runtime creation of server-side datafiles;
  • accessing and scaning a list of datafile record ids;
  • including external files - like for help info;
  • general NeoWebScript syntax.

This was my first attempt at NeoWebScript and I haven't yet gone back to rework it - so...Known problems with this example are...

  1. when a new database file is created, an entry must be made before trying to locate an id;
  2. the database delete NS functon is not yet implemented;
  3. the HELP file content is not complete.

Search the Site
Home
http://www.hav.com/
Find Any or All of

http://www.hav.com/
  
Questions?
Feel free to drop by and chat if you have any questions - one of us is usually around during normal CST/CDT business hours.


hav.Software

Copyright © -1995-2017 by hav.Software. All Rights Reserved.

http://www.hav.com/ havBpNet:J, havFmNet:J, havBpNet++, havFmNet++, havBpETT, havCNet, WebSnarfer, havIndex and havChat are all trademarks of hav.Software.

Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.

There may be other trademarks or tradenames listed in this document to refer to the entities claiming the marks and names or products. hav.Software disclaims any proprietary interest in any trademark, tradename or products other than its own.


hav@hav.com
Modified - 02/05/09 - 31552568 - 6676330