article

Variable Tool Tips

Email
Submitted on: 1/6/2015 3:29:00 AM
By: Tata''s (from psc cd)  
Level: Advanced
User Rating: By 3 Users
Compatibility: ASP (Active Server Pages)
Views: 298
 
     This Article explain and gives an example how to create a tool-tips in ASP page includes the data from one or more fields in the database in a grid.

This article has accompanying files

 
<%For i = 1 To RS.Fields.Count -1%><%Next%> <%RS.MoveNext%> <%Loop%> Here I placed "ad_description" field in every field for every row in my table. It obviously would be different for every row, save you space and make the Page look more professional. This idea may be used for different purposes. Happy programming!
				It is possible to make a custom, professional-looking tool-tips in .html files, using "Overlib.js" by Erik Bosrup. How about tool-tips changing from row to row in table when looping the database?
For instance, you need to query a database table and display it in html table. And every row has a "memo" description which will take too much space if display and at the same time is unique for every row. 
I included "Overlib.js" like:
<SCRIPT
LANGUAGE="JavaScript" SRC="overlib.js">
somewhere in the body of my Page. I placed it at the bottom. 
Then I placed:
So, what's new? Everybody knows it. Yes and now. I used a variable of Recordsource field for the text of tool-tip. Like this: <%Do While NOT RS.EOF%>

', FULLHTML); return true;" onmouseout="nd(); return true;"><%=RS.Fields(i)%>

winzip iconDownload article

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this article (in the Advanced category)?
(The article with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments


 There are no comments on this submission.
 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular article, please click here instead.)
 

To post feedback, first please login.