Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

Related items

Arrays, Object Arrays and Sorting

Seek, and ye shall find

Text Strings and String Objects

Searching- source1

You are here: irt.org | Articles | JavaScript | Object | Searching [ previous next ]

Published on: Sunday 9th February 1997 By: Martin Webb

search.htm source code

<html lang="en">
<head>

<title>Search</title>

</head>

<script language="JavaScript"><!--
var vhref = true;
var vdesc = true;
var vtech = true;
var vdate = true;
var searchtext = '';

//This script defines an object called 'articleObject'
function articleObject(href,text,desc,tech,date) {
  this.href = href;
  this.text = text;
  this.desc = desc;
  this.tech = tech;
  this.date = date;
}

//This script creates an array called 'articleArray'
var articleIndex = 0;
var articleArray = new Array();

//This script creates a new instance of a 'articleObject' object
function setArticle(href,text,desc,tech,date) {
  articleArray[articleIndex] =
    new articleObject(href,text,desc,tech,date);
  articleIndex++;
}

//This script populates the array 'articleArray' with
//'articleObject' objects
setArticle('../js001/',
  'Calendar JavaScript',
  'Demonstrations of different calendar displays.',
  'JavaScript, Functions, Arrays, Tables, Floating Frames, Windows',
  '19961201');
setArticle('../js002/',
  'Array-Tours JavaScript',
  'Demonstration of navigation tools.',
  'Frames, JavaScript, Arrays, Objects, Forms',
  '19970101');
//--></script>

<frameset
  frameborder="0"
  framespacing="0"
  rows="50,*">

<frame
  scrolling="no"
  frameborder="0"
  marginheight="0"
  marginwidth="0"
  name="tools"
  noresize
  src="tools.htm">
<frame
  scrolling="yes"
  frameborder="0"
  marginheight="0"
  marginwidth="10"
  name="results"
  noresize
  src="results.htm">

</frameset>

</html>

Related items

Arrays, Object Arrays and Sorting

Seek, and ye shall find

Text Strings and String Objects

©2018 Martin Webb