Re: Images and Visibility linked to a Database

From: Jim Buyens (news_at_interlacken.com)
Date: 07/30/04


Date: 29 Jul 2004 20:25:19 -0700

In that case, I would display the "found" picture normally, but with a
name= attribute. For example:

<img name="lostfound" src="found.gif">

Then I would preload the "not found" picture by adding this script to
the <head> section:

<script>
var notfound = new Image(); notfound.src = "images/notfound.gif";
</script>

Then I would rerun the DRW, click More Options on page 3, and add the
following script at the end of the Message To Display If No Records
Are Returned text.

<script>document.lostfound.src = eval('notfound.src');</script>

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------

stmartinez22 <stmartinez22@discussions.microsoft.com> wrote in message news:<FF3C93E2-0CC6-430B-A2E9-3BDF73C9B5CC@microsoft.com>...
> No...it is not possible to return more than one record. It is actually a phone number directory. Thanks.
>
> "Jim Buyens" wrote:
>
> > How are you doing the database lookup?
> >
> > o Using the Database Results Wizard?
> > o Using custom ASP code?
> > o Using custom ASP.NET code?
> > o Something else?
> >
> > Also, is it possible to get two or more records back, or
> > is the result always zero or one records?
> >
> > Jim Buyens
> > Microsoft FrontPage MVP
> > http://www.interlacken.com
> > Author of:
> > *----------------------------------------------------
> > |\---------------------------------------------------
> > || Microsoft Office FrontPage 2003 Inside Out
> > ||---------------------------------------------------
> > || Web Database Development Step by Step .NET Edition
> > || Microsoft FrontPage Version 2002 Inside Out
> > || Faster Smarter Beginning Programming
> > || (All from Microsoft Press)
> > |/---------------------------------------------------
> > *----------------------------------------------------
> >
> >
> >
> > >-----Original Message-----
> > >I have a pair of images that appear or disappear
> > depending upon the search results of a database. Here's
> > the situation...when a record is found, one image appears
> > alerting the user that an action can be taken. When the
> > record is not found, the other image appears in the same
> > place telling the user to not take action. This process
> > is done several times, so each time one image must replace
> > the other, it must be cleared first. Any ideas? Thanks.
> > >.
> > >



Relevant Pages

  • Re: Creating Dynamic URLs
    ... > then searched for in the database. ... >> I specify what page to include/what content to display in the event ... A CGI script is a program that generates as output the HTML that the web server will send to the browser. ... Usually, the script takes arguments from the URL to decide what to display, and very often it will obtain some of the data on the page from a database. ...
    (comp.lang.php)
  • Re: Creating Dynamic URLs
    ... then searched for in the database. ... I specify what page to include/what content to display in the event ... A CGI script is a program that ... the script takes arguments from the URL (usually the part after ...
    (comp.lang.php)
  • Re: FMPro8 - Logging out of an IWP database
    ... > Bill Marriott wrote: ... >> otherwise provide a mechanism for them to return to the database. ... My logout script commits the new record okay, ... >>>display it. ...
    (comp.databases.filemaker)
  • Re: Creating Dynamic URLs
    ... to have a page which can display information from a database filtered ... I specify what page to include/what content to display in the event ... the script takes arguments from the URL (usually the part after ... for example, many CGI scripts display information ...
    (comp.lang.php)
  • re: Deleting files with ASP
    ... >creates some files from a database. ... >can't run the script again and overwrite them. ... Microsoft FrontPage MVP ...
    (microsoft.public.frontpage.programming)

Loading