<< . .

. 48
( : 51)



. . >>



Figure 22-33: Digitally signing an Access project.

3. Select Choose. The Select Certificate dialog box displays, as shown in Figure 22-34.
Chapter 22 ¦ Adding Security to Access Applications 557




Figure 22-34: Choosing a digital certificate.

4. Select the certificate to add to the Access project. Then select OK to close the Select
Certificate dialog box.
5. Select OK to close the Digital Signature dialog box and save the security setting.

Do not sign your Access project until the application has been thoroughly tested and you do not
Note
expect to make any further changes to it. Modifying any of the code in the project will invalidate
the digital signature.

Tip
To prevent users from making unauthorized changes to the code in your project, be sure to lock
the project and apply a project password.

With a full understanding of the Jet security model and how to manage it, you can create
databases that protect your development investment and your users™ data.
¦ ¦ ¦
23 CHAPTER



Adding
FrontPage Web
Components . . . .

In This Chapter

Exploring FrontPage
Web components

T his chapter introduces FrontPage Web Components, a.k.a.
Web components that
FrontPage components, a.k.a. Web components, and a.k.a.
require FrontPage
just plain ol™ components. These handy features allow you to do
extensions
everything from generate and automatically update a table of
contents, to create hover buttons that change when a visitor
Inserting a time stamp
moves over them with a cursor.

Activating a hit counter
Adding FrontPage Web Components
Creating hover buttons
Many of the Web components add interactivity to your site. These and marquees
interactive elements respond to the actions of visitors. For
example, a hit counter responds to a visit by changing the number Working with Web
of visitors displayed, and search boxes respond to a visitor™s components in forms
query with a list of matching pages.
Working with images
Prior to FrontPage 98, FrontPage components were called
Providing search boxes
WebBots. Now we are in the new millennium, and Microsoft still
Note
for visitors
uses WebBots in the HTML codes for FrontPage components.
As you add components to your page, you can click the HTML
. . . .
tab to see the WebBot terminology in place.


Defining and using components
FrontPage components are actually small programs that are
embedded in FrontPage. You don™t need to know how Web
components work to use them, but you should be aware of two
particular attributes of components:
Part III ¦ Beyond Mastery: Initiative within Office
560

. Web components enable you to use preprogrammed elements that normally require a
scripting language to create.
. Many (roughly half) of the Web components work only after your Web is published
to a Web server with FrontPage extensions.

We™ll explore the implications of having (or not having) access to a server with FrontPage exten-
Note
sions throughout this chapter, both in relation to using components in general, and in relation to
specific components.


Web components are programs
Web components are prefabricated programming modules that you can customize and insert
into your Web pages. When you add a Web component to your Web page, FrontPage inserts
HTML tags that reference it, much as HTML is used to reference a graphic, a sound file, or
a Java applet.
Customization of components is done through HTML attributes in the component tag.
Figure 23-1 shows an example of the HTML used to point to a component. In this case, you
can see WebBot tags for a Navigation component.




Figure 23-1 HTML for a component
Chapter 23 ¦ Adding FrontPage Web Components 561

If FrontPage components are little programs, where the heck are these programs stored?
That depends. Components that require FrontPage server extensions are stashed on Web
servers, and simply called by the code that FrontPage inserts into your page. No connection
to a FrontPage Web server? In that case, these components won™t work.
While about half of the FrontPage components rely on FrontPage server extensions to
work, other components (like the Photo Gallery) generate JavaScript code. All recent
version browsers (going back to version 4) support JavaScript, and so the programming
support for these components is essentially in a visitor™s own Web browser. Still other
components (like hover buttons or the Banner Ad Manager) generate Java programs,
which are saved to your Web.

Many Web components require FrontPage
server extensions
The following FrontPage components work only when your site is published to a Web server
with FrontPage server extensions:
. Web Search
. Hit Counter
. Top 10 List
. List View
. Document Library View
If you aren™t publishing your Web to a server armed with FrontPage extensions, you can
disable the components that require extensions by selecting Tools _ Page Options, and
clicking the Authoring tab. Then, use the FrontPage and SharePoint technologies drop-down
menu to select “custom” or “none” in order to use selected or no FrontPage components. x.
After you do that, only those components that do not require FrontPage extensions will
display. When you choose Insert _ Navigation, the rest of the components are grayed out,
as shown in Figure 23-2.




Figure 23-2 Hit counters components require FrontPage extensions.
Part III ¦ Beyond Mastery: Initiative within Office
562

If you are saving your Web to a disk folder (a disk-based Web), the FrontPage server
extension requiring Web components will be grayed out automatically.


Developing on a Disk but Developing for a Server?
Suppose you are developing your Web site using a drive-based Web or a server that doesn™t have
FrontPage extensions, but you plan eventually to publish your Web to a server that does have
FrontPage extensions. If you are using a server without FrontPage extensions, you can still install
(non-working) components. In this scenario, do not disable components. You can still place them on
Web pages ” you just can™t test them or use them in a Web site until you publish to a FrontPage-
friendly Web server with FrontPage extensions.
On the other hand, if you are developing your site using a disk-based Web, but eventually plan to
publish it to a server with FrontPage extensions, you have to turn on the features that require
FrontPage server extensions. Do this by choosing Tools _ Page Options, and selecting the Enabled
with FrontPage Server Extensions check box in the Compatibility tab of the Page Options dialog
box. In this scenario, you are fooling FrontPage, telling it that your site is published to a FrontPage
Web. Remember, some components won™t work until you actually publish your site to a FrontPage
server.


Because components require FrontPage-enabled servers, they are less portable than standard
CGI applications or Java applets and are more akin to other Microsoft technologies, such as
Active Server Pages (ASP), that are limited to servers supported by Microsoft. But, if you
have access to a FrontPage-enabled Web server, the ease with which you can add compo-
nents makes using them hard to resist.
If you don™t plan to publish your Web site to a FrontPage server and you are inclined to do
your own scripting and programming, you can jump ahead to Part V of this book, which
introduces other programming components that you can use to create many of the same
functions (with perhaps a bit more labor on your part).

Many components don™t require FrontPage extensions
If you are creating a Web for a server without FrontPage extensions, you can use the
components identified in Table 23-1. Some of these components simply generate HTML
code. Others generate Java applets, and others create JavaScript.
Chapter 23 ¦ Adding FrontPage Web Components 563


Table 23-1
Coding and Scripting for Various Web Components
Component Type of Script or Coding
Hover buttons Java applets

Marquees HTML

Banner Ad Manager Java applets

Photo Gallery JavaScript

Included Content HTML

Link Bars HTML

Table of Contents HTML

Commercial components Remote sites linked through HTML
(bCentral, Expedia, MSN,
and so on)

Advanced Controls Various scripting languages



Some components require SharePoint servers
As if all this wasn™t complicated enough, some Web components are only functional
when you are publishing a Web to the SharePoint server that comes with Office XP.
SharePoint servers are designed with built-in intranet tools, like bulletin boards, up-
loaded document libraries, and customizable interfaces. You can use the SharePoint
server as-is, out of the box, on your intranet (or Internet). Or, you can customize a
SharePoint server by editing pages in FrontPage and adding lists and other features
proprietary to the SharePoint server.

The SharePoint server files (called SharePoint Team Services)
This chapter takes a quick look at the components that require SharePoint servers. However,
its focus is on publishing FrontPage Web on Office 2003™s SharePoint server, as well as the
lists and other special features available for this server.
Part III ¦ Beyond Mastery: Initiative within Office
564


Spreadsheet Components
Spreadsheet Web components (Office Spreadsheet, Office Chart, and Office Pivot Table) are
actually embedded pieces of Microsoft Excel.
The main deal with these components is that they allow visitors to your Web site to see and interact
with elements of a spreadsheet. To do this, visitors must have Excel installed, or download pro-
grams that function as a kind of limited Excel viewer.
As we go to press, Microsoft has not yet released a public domain downloadable Excel viewer for
Excel 2003. However, downloadable viewers for older versions of Excel are available at
http://office.microsoft.com/Downloads/.
Web site visitors who use a downloaded viewer will not have full functionality for spreadsheet
components, but will be able to view spreadsheet data.
Both in their use and their function, the three Spreadsheets and Charts components fall more in the
category of Microsoft Office application integration.


Inserting Components
You can add a component to your Web page in two ways:
. Insert the component directly into your Web page (the primary method).
. Use one of the many Web page templates and wizards that come with preconfigured
Web components (secondary method).
Page templates that generate components include:
. Confirmation Form: Generates a confirmation form for an input form, using the
Confirmation Field Component (found in the Advanced Components submenu).
. Table of Contents: Generates a page with a table of contents.
In addition, many page templates include comments. And most Web templates include many
components.
To insert a component in an existing Web page, first position the cursor where you want the
component to appear. Select Insert _ Web Component, or click the Web Component icon in
the toolbar. The Insert Web Component submenu is a dialog box, as shown in Figure 23-3.
Chapter 23 ¦ Adding FrontPage Web Components 565




Figure 23-3 Choosing Web Component from the Insert menu brings up this dialog box.

After you select a component, additional options may appear, enabling you to customize the
component™s properties. After you add a component to your Web page, you can edit it by
double-clicking it. Alternatively, you can right-click the component and select (Component™s
Name) Properties from the pop-up menu.


Using Components that Aren™t “Components”
In addition to the components listed in the Insert Web Components submenu, the main Insert
menu includes a few miscellaneous but highly useful objects that work like components,
such as Date and Time (which works like a time stamp), and Comments. These features are
explored in this chapter, even though they aren™t listed in the Component submenu.

Using Date and Time
The Date and Time and the Comments elements could have been put in the Components
submenu, but they weren™t. Nevertheless, they work like components. When you insert a
Date and Time code, you create a time stamp WebBot code in HTML. Comments also
generate WebBot coding.
The Date and Time component displays the modification time and date of the Web page on
which it resides. In other words, you can tell visitors exactly when the page was last
changed, so that they can quickly decide whether the material at your Web site is current
enough for their needs.
Including a last-modified date on your Web pages is a courtesy to visitors because it helps
them judge whether the information on your site is up-to-date. Of course, if currency isn™t
that important to your Web page, you certainly aren™t required to have a time stamp on it.
Part III ¦ Beyond Mastery: Initiative within Office
566

Every time you save your Web pages, the time stamp (Date and Time code) updates. So, the
only “revising” reflected by your time stamp may simply be that you actively maintain the
page. Manually updating the modification date by resaving a page is one way to indicate that
you are maintaining the page, even if the content has not changed recently.
To add a Date and Time code, position the cursor at the location where you want the
component to appear. Select Insert _ Date and Time. The Date and Time properties dialog
box appears, as shown in Figure 23-4.




Figure 23-4 Adding a time stamp to a page

The Date this Page Was Last Edited radio button revises the displayed date when you update
the page. The Date this Page Was Last Automatically Updated radio button changes the Date
and Time code if the page was changed by the action of a Web component or other applet, or
if an embedded page changed.

Still don™t get the difference between the Date this page was last edited button and the Date
Note
this page was last automatically updated button? Here it is in a nutshell: When you select the
Date this page was last edited button, merely opening the page in the Page view will update
the time stamp. You don™t even have to change the page ” just open and close it. When you
select the Date this page was last automatically updated button, the time stamp will also
update every time you open the page. However, and in addition, if you include content (such
as a table of contents or another HTML page) and you change the embedded content, the time
stamp updates then as well.

Use the Date Format drop-down menu to select from a variety of date formats. Use the Time
Format drop-down menu to select from a list of time formats.
After you make your selections, click OK to insert the Date and Time code in your page. The
time stamp appears just as it will look in the Web page. You can also format the date text.
When you edit in Page view, you can distinguish the date and time data from regular text
because its code has an icon over it rather than an insertion cursor, as shown in Figure 23-5.
Chapter 23 ¦ Adding FrontPage Web Components 567




Figure 23-5 The Web Component icon is your clue that this date is not text, but a
generated component.


Note
The Date and Time component displays only a date. If you want text like “Date page was last
updated,” you have to add that yourself.


Adding comments
Comments are just little pieces of information you add to a Web page for your personal
purposes. They do not directly show up on the page, but they can remind you about certain
page development issues or help you keep track of changes. In short, anything can be a
comment, so how you use the feature is up to you.
To add a comment, position the cursor where you want the comment to appear in the Web
page, and then select Insert _ Comment. The dialog box allows you to enter the text of your
comment.
As you can see in Figure 23-6, comments show up in FrontPage in the visited link color,
which is purple by default (in fact, the actual name of this component is PurpleText, as
you will notice if you look at the HTML). Comment text doesn™t appear when the page is
viewed by a Web browser, because the entire component is enclosed in a standard HTML
comment tag.
Part III ¦ Beyond Mastery: Initiative within Office
568




Figure 23-6 Comments don™t show up in Web browsers.


The comment may not appear on the Web page, but it is still there in the HTML, viewable by
Caution
anyone who decides to view the HTML source code of the page. As a result, use of the Com-
ment component to record your trade secrets or the combination of your safety deposit box is,
as they say, discouraged.

The Comment component is used in almost every template, to instruct you about the
purpose of the template or to teach you how to customize it.


Exploring Web Components
This section briefly examines the operation of all the components that come packaged with
FrontPage 2003.

Dynamic effects
The Dynamic Effects option in the Insert Web Component dialog box offers two options for
presenting active page elements: interactive buttons and scrolling text marquees, and banner
ads. These elements (text and/or images) are active, as opposed to static text and images that
just sit there.
Chapter 23 ¦ Adding FrontPage Web Components 569

Other options for dynamic objects include Dynamic HTML formatting, which is explored in
Chapter 13 of Wiley™s FrontPage Bible. Dynamic HTML (DHTML) effects rely on a
browser™s ability to accurately interpret the DHTML specifications that FrontPage uses to
generate animation and interactivity. Some of these effects are not supported by Netscape
Navigator 4.7.
As opposed to DHTML effects, the dynamic effects Web components rely on HTML and
Java to generate small programs right in your Web site to produce interactivity. Therefore,
these Web components are compatible with Netscape 4.7. And, they do not require
FrontPage Server Extensions, or even a Web server to work.

Interactive buttons
Interactive buttons display an effect when visitors to your page pass their cursor over the
button. Interactive buttons provide a way to make boring buttons more interesting. Effects
range from a glow to color changes. You can even define images and sounds to display for
the button, to provide a more interactive look and feel to your pages.
To add an Interactive button, select Insert _ Web Component _ Interactive Button, and
then click Finish. The Interactive Buttons dialog box appears, as shown in Figure 23-7.




Figure 23-7 Defining a hover button
Part III ¦ Beyond Mastery: Initiative within Office
570

You can make the following selections in the Hover Button dialog box:
. Button Text: The text that is displayed on the button™s face. You can change the
font, color, style, and size by clicking the Font button.
. Link To: The page or file that is opened when the button is clicked by visitors. Enter
the URL directly in the text box, or click the Browse button to select a page.
. Button Color: On the Text tab, you can change the button color. You can configure
the button™s “static” color, used when the button is not in use. Notice you have a
hovered color and a pressed color.
. Image: On the Image tab, you can see a preview of the button, and you can adjust
the button™s image. For example, you can change the width and height of the button,
create buttons with solid backgrounds, and create buttons with transparency.

<< . .

. 48
( : 51)



. . >>