.
 News & Views
  The online information source for iSeries and mrc-Productivity Series users
.  May 2002  
Volume 2, Issue 5  
.
. . . . . . . . .
 

Hotline Question of the Month

by Sean Crawley
 

Question:

“How do I use a Style Sheet to control the appearance of my CGI Applications?”

Answer:

All mrc CGI applications use a style sheet (mrcstyle.css) by default to control some of the page appearances. For example, in a Multiple Record Retrieval you might want to change the colors of the odd and even rows or the color of the cell divider.

The style sheet (mrcstyle.css) is stored in the IFS directory /mrcjava/mrcclasses. One can access this directory by using the WRKLNK command or mapping a drive to this location on the IFS.

You can change the style sheet in one of the following two ways:

  1. You can replace this file with your own style sheet file by importing it to the IFS or by copying it from the mrc default style sheet. After you've created your own style sheet you need to update the CGI application's HTML source file (CGIHEAD) to reference the new style sheet.

    To change the HTML source file member (CGIHEAD) to reference a different style sheet file, enter STRPDM on a command line and select 3 (Members).

    Enter QHTMLSRC for the file and the library is your mrc data dictionary library. Then edit the HTML source file (CGIHEAD) by placing a 2 next to it.

    In the HTML Source File (CGIHEAD) you'll see that the style sheet (mrcstyle.css) is being referenced from the 3rd line (See Figure 1). Now you can change the path of the href= to the location of your new style sheet.

    Figure 1
    0001.00 <!-- Begin mrc default header -->
    0002.00 <!-- Style Sheet link here -->
    0003.00 <link rel="stylesheet" type="text/css" href="/mrcjava/mrcclasses/mrcstyle.css">

  2. Change the mrcstyle.css style sheet directly on the IFS. Note that the mrc staff doesn't support this method. We'd prefer you making a copy or importing your own file.

Have a hotline question of your own? Send an e-mail to support@mrc-productivity.com and let our product specialists help you!



Take Our Poll

Why hasn't your company brought live data to the Web yet?

Budget concerns
Time constraints
Security fears
Limited know-how
Don't see a need
We have

View Results
View Poll Archive

.
.
.
.
. Quick Links...

Visit mrc's Web site

See a live demo

Get more information

View Latest Newsletter

Last Month's Newsletter

.
.
.
.
. Contact mrc...

U.S. Offices
mrc@mrc-productivity.com

voice: 630-916-0662

www.mrc-productivity.com



U.K. Offices
michaels, ross & cole (UK) ltd

voice (UK): +44 (0)20 8282 1600

mail@mrcuk.com

.
 mrc publishes this newsletter on a monthly basis. Subscription is free of charge. Please send any questions or comments about this newsletter to news@mrc-productivity.com. This newsletter is edited by Heather Gately.

Visit our subscription center to update your subscription or unsubscribe.
View our privacy promise.

.