Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: Tooltips


Message #1 by "Rakesh Parekh" <rakesh.parekh@j...> on Sun, 8 Sep 2002 09:03:16
Hello,

I display database result in an ASP page. One of the field I display in the 
result is Order_details. I want to use tooltips (or titles) to show the 
corresponding remark details of that particular order when a user mouseover 
on a value of Order_details. For example, the table I show in an ASP is as 
under:

ORDER DETAILS

A511001 (This will be hyperlinked to remark field. When a user mouseover on 
it, it will show the correspondng remark which will be in the same database 
as Order_details.

A511002 
A511003

Can somebody help?

Best regards,
Rutik
Message #2 by "Ben Smith" <ben@b...> on Sun, 8 Sep 2002 12:30:25 +0100
Hi

Yes - I think I know what you need.

Try http://www.bosrup.com/web/overlib/ - it's a tool tip JavaScript thing.

Because it's client-side, you can change the values of the tool tips on the
server side as such:

Response.Write("<a href=""javascript:void(0);"" onmouseover=""return
overlib('" & objRS("Help") & "', CAPTION, 'CAPTION IN HERE IF REQUIRED',
FGCOLOR, '#FFFFFF', BGCOLOR, '#003399', BORDER, 1, CAPTIONFONT, 'Verdana',
TEXTFONT, 'Verdana', TEXTSIZE, 1,STICKY, WIDTH, 200, HEIGHT, 235)""
onmouseout=""return nd();"">HELP</a>" & vbCrLf)

Don't forget that any apostrophes will need to be escaped:   '  =>  \'

You could easily write a replace function to do that:

strHelp = Replace(objRS("Help"), "'", "\'")

FYI, BrainBench use that tool tip component on their site
(http://www.brainbench.com) - well, they used to anyway!

Hope I've helped (and not mis-read your question and gone off on some stupid
tangent)

Ben Smith
ben@b...

-----Original Message-----
From: Rakesh Parekh [mailto:rakesh.parekh@j...]
Sent: 08 September 2002 09:03
To: ASP Databases
Subject: [asp_databases] Tooltips



Hello,

I display database result in an ASP page. One of the field I display in the
result is Order_details. I want to use tooltips (or titles) to show the
corresponding remark details of that particular order when a user mouseover
on a value of Order_details. For example, the table I show in an ASP is as
under:

ORDER DETAILS

A511001 (This will be hyperlinked to remark field. When a user mouseover on
it, it will show the correspondng remark which will be in the same database
as Order_details.

A511002
A511003

Can somebody help?

Best regards,
Rutik


Message #3 by "Kim Iwan Hansen" <kimiwan@k...> on Sun, 8 Sep 2002 16:31:24 +0200
You can use the TITLE attribute of the <A>nchor tag.

-Kim



> -----Original Message-----
> From: Rakesh Parekh [mailto:rakesh.parekh@j...]
> Sent: 8. september 2002 09:03
> To: ASP Databases
> Subject: [asp_databases] Tooltips
> 
> 
> 
> Hello,
> 
> I display database result in an ASP page. One of the field I 
> display in the 
> result is Order_details. I want to use tooltips (or titles) to show the 
> corresponding remark details of that particular order when a user 
> mouseover 
> on a value of Order_details. For example, the table I show in an 
> ASP is as 
> under:
> 
> ORDER DETAILS
> 
> A511001 (This will be hyperlinked to remark field. When a user 
> mouseover on 
> it, it will show the correspondng remark which will be in the 
> same database 
> as Order_details.
> 
> A511002 
> A511003
> 
> Can somebody help?
> 
> Best regards,
> Rutik
> 

  Return to Index