SHARE
Facebook X Pinterest WhatsApp

Creating Dynamic Forms Page 2

Jan 11, 1999
ServerWatch content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More



This page is the main page for the insurance company. It contains
links to the new transaction page and links to each transaction,
done thru DHTML outlines.

The following  javascript is
from MSDN. It is used for the DHTML outlines for the Insurance
center

 
function clickHandler() {
      var
targetId, srcElement, targetElement;
    

      srcElement =
window.event.srcElement;
      if
(srcElement.className == “Outline”)
{
          
targetId = srcElement.id +
“d”;
          
targetElement =
document.all(targetId);
      if
(targetElement.style.display == “none”)
{
         
targetElement.style.display =
“”;
         
srcElement.src = “OPEN.gif”;
      }
else {
         
targetElement.style.display =
“none”;
         
srcElement.src = “CLOSED.gif”;
     
}
}
}

document.onclick =
clickHandler;

INSURANCE
CENTER:


‘I have begun using file DSN to connect to
web databases. It is the way to go if you have to wait
‘for an
administrator to set up a system DSN

DB_PATH = SERVER.MAPPATH(“/DB”)  ‘map a path to the Database directory
CONNECT_STR = “FILEDSN=”&DB_PATH&”DB.DSN;”
& _
“DBQ=” & DB_PATH & “WEBDB.MDB;”  

count.Open
CONNECT_STR  
‘open the db
connection

‘get a recordset of all the transactions
Set RS = Count.Execute(“SELECT * FROM TRAN ORDER
BY TR_NAME”)
%>

MAINTENANCE

     ADD NEW
TRANSACTION

     ADD NEW
INSURANCE TYPE

<

img src=

"

"

id=

"

Out

class=

Outline

style=

cursor: hand

width=

16

height=

16

>

TRANSACTIONS

‘in this loop we are creating a link
to each form

DO WHILE NOT RS.EOF

      DIV_NBR = DIV_NBR + 1
%>

    — 
<a href="TRAN.ASP?TRAN_ID=“>

RS.MOVENEXT
LOOP
%>

Recommended for you...

What Is a Container? Understanding Containerization
What Is a Print Server? | How It Works and What It Does
Nisar Ahmad
Dec 8, 2023
6 Best Linux Virtualization Software for 2024
What Is a Network Policy Server (NPS)? | Essential Guide
ServerWatch Logo

ServerWatch is a top resource on servers. Explore the latest news, reviews and guides for server administrators now.

Property of TechnologyAdvice. © 2025 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.