Re: Images and Visibility linked to a Database
From: Jim Buyens (news_at_interlacken.com)
Date: 07/30/04
- Next message: Thomas A. Rowe: "Re: Using Media Player in Front Page"
- Previous message: craig: "Re: Using Media Player in Front Page"
- In reply to: stmartinez22: "re: Images and Visibility linked to a Database"
- Next in thread: stmartinez22: "Re: Images and Visibility linked to a Database"
- Reply: stmartinez22: "Re: Images and Visibility linked to a Database"
- Messages sorted by: [ date ] [ thread ]
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.
> > >.
> > >
- Next message: Thomas A. Rowe: "Re: Using Media Player in Front Page"
- Previous message: craig: "Re: Using Media Player in Front Page"
- In reply to: stmartinez22: "re: Images and Visibility linked to a Database"
- Next in thread: stmartinez22: "Re: Images and Visibility linked to a Database"
- Reply: stmartinez22: "Re: Images and Visibility linked to a Database"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|