473,419 Members | 1,582 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,419 software developers and data experts.

How to create a hint?

I'm trying to create a web page.
I will have one column with records (table filled from dataset).
If mouse will be on one from this records, i want to show a hint what is it
(like in Windows - cursor on shortcut and i have a path to application).
How can i do this?
Nov 19 '05 #1
5 2622
Hi,

This has one implementation:
http://dotnetjunkies.com/WebLog/clar.../12/28366.aspx

"Marek" <ma***@zegarek.pl> wrote in message
news:#x**************@TK2MSFTNGP11.phx.gbl...
I'm trying to create a web page.
I will have one column with records (table filled from dataset).
If mouse will be on one from this records, i want to show a hint what is it
(like in Windows - cursor on shortcut and i have a path to application).
How can i do this?

Nov 19 '05 #2
Thanks!
It will help me i think.
Maybe is there any posibility to do this from clear framework?
Użytkownik "Shiva" <sh******@online.excite.com> napisał w wiadomości
news:uz**************@tk2msftngp13.phx.gbl...
Hi,

This has one implementation:
http://dotnetjunkies.com/WebLog/clar.../12/28366.aspx

"Marek" <ma***@zegarek.pl> wrote in message
news:#x**************@TK2MSFTNGP11.phx.gbl...
I'm trying to create a web page.
I will have one column with records (table filled from dataset).
If mouse will be on one from this records, i want to show a hint what is
it
(like in Windows - cursor on shortcut and i have a path to application).
How can i do this?

Nov 19 '05 #3
Alternative is to use the TITLE attribute of the cells or the row. For
DataGrid, as an example, use the ItemDataBound event as in:

void Grid_ItemDataBound(Object sender, DataGridItemEventArgs e)
{
// Tooltip at the row level: all cells will have same tooltip
e.Item.Attributes.Add ("Title", "Row#:" + e.Item.ItemIndex.ToString());

// Per-cell tool tip
/*
foreach (TableCell tc in e.Item.Cells)
{
tc.Attributes.Add ("Title", "Cell ID : " + tc.ClientID);
}
*/
}

"Marek" <ma***@zegarek.pl> wrote in message
news:O7**************@TK2MSFTNGP10.phx.gbl...
Thanks!
It will help me i think.
Maybe is there any posibility to do this from clear framework?
Użytkownik "Shiva" <sh******@online.excite.com> napisał w wiadomości
news:uz**************@tk2msftngp13.phx.gbl...
Hi,

This has one implementation:
http://dotnetjunkies.com/WebLog/clar.../12/28366.aspx

"Marek" <ma***@zegarek.pl> wrote in message
news:#x**************@TK2MSFTNGP11.phx.gbl...
I'm trying to create a web page.
I will have one column with records (table filled from dataset).
If mouse will be on one from this records, i want to show a hint what is
it
(like in Windows - cursor on shortcut and i have a path to application).
How can i do this?


Nov 19 '05 #4
Hey Shiva

Do you know how to create the same for Dropdown Items (individual list
items) ??

Thanks
vinay

"Shiva" wrote:
Alternative is to use the TITLE attribute of the cells or the row. For
DataGrid, as an example, use the ItemDataBound event as in:

void Grid_ItemDataBound(Object sender, DataGridItemEventArgs e)
{
// Tooltip at the row level: all cells will have same tooltip
e.Item.Attributes.Add ("Title", "Row#:" + e.Item.ItemIndex.ToString());

// Per-cell tool tip
/*
foreach (TableCell tc in e.Item.Cells)
{
tc.Attributes.Add ("Title", "Cell ID : " + tc.ClientID);
}
*/
}

"Marek" <ma***@zegarek.pl> wrote in message
news:O7**************@TK2MSFTNGP10.phx.gbl...
Thanks!
It will help me i think.
Maybe is there any posibility to do this from clear framework?
UÂżytkownik "Shiva" <sh******@online.excite.com> napisaÂł w wiadomoÂści
news:uz**************@tk2msftngp13.phx.gbl...
Hi,

This has one implementation:
http://dotnetjunkies.com/WebLog/clar.../12/28366.aspx

"Marek" <ma***@zegarek.pl> wrote in message
news:#x**************@TK2MSFTNGP11.phx.gbl...
I'm trying to create a web page.
I will have one column with records (table filled from dataset).
If mouse will be on one from this records, i want to show a hint what is
it
(like in Windows - cursor on shortcut and i have a path to application).
How can i do this?


Nov 19 '05 #5
This may be overkill but I often use popups for this. I like the control I
have over the content and the ability to include graphics.

<HEAD ....

<script language="JavaScript">
<!--
var oPopup = window.createPopup();
var TipsDisabled=0;

function richToolTip(fld,wideness, leftoffset) {
var lefter = 0;
TipsDisabled = top.Get_TipStatus();
if (TipsDisabled==0) {
if (leftoffset==-1) { lefter = window.event.screenX - (wideness *
1.4); }
else if (leftoffset == 2) { lefter = window.event.screenX - 140; }
else {lefter = window.event.screenX - wideness; }
var topper = window.event.screenY -140;
oPopup.document.body.innerHTML = fld.innerHTML;
var popupBody = oPopup.document.body;
oPopup.show(0, 0, wideness, 0);
var tallness = popupBody.scrollHeight;
oPopup.hide();
oPopup.show(lefter, topper, wideness, tallness, window.document.body); }
}

function ContextHelp(iContext) {
var sType = document.frmMain.hdnSchType.value;
var bResult = 0;

bResult = top.GlobalContextHelp(iContext, sType);
}

//-->
</script>

</HEAD>

<BODY .....>

<!-- START POP-UP //-->
<SPAN id="tip_Criteria"
style="FONT-WEIGHT: bold; FLOAT: left; WIDTH: 24px; CURSOR: help;
COLOR: green; DIRECTION: ltr; POSITION: static; HEIGHT: 19px;
TEXT-ALIGN: left"
onmouseover="richToolTip(oToolTip_Criteria,170,-1);"
onclick="ContextHelp(2);"
onmouseout="oPopup.hide()">
<IMG height="15" alt="" src="./images/qmrk_blue.gif" width="15">
</SPAN>
<!-- THIS CODE CONTROLS THE BOX AND WHAT IS IN IT -->
<DIV id="oToolTip_Criteria" style="DISPLAY: none">
<DIV style="BORDER-RIGHT: #0099ff 3px inset; PADDING-RIGHT: 5px; BORDER-TOP:
aqua 3px outset; PADDING-LEFT: 5px; Z-INDEX: 102; FILTER:
progid:DXImageTransform.Microsoft.Gradient(Gradien tType=0,
StartColorStr=aqua, EndColorStr=#FFFFFF); LEFT: 0px; PADDING-BOTTOM: 5px;
FONT: 9pt arial; BORDER-LEFT: aqua 3px outset; WIDTH: 100%; PADDING-TOP: 5px;
BORDER-BOTTOM: #0099ff 3px inset; POSITION: absolute; TOP: 0px; HEIGHT: 100%">
<B>Search Criteria</B>
<HR style="BORDER-RIGHT: 1px outset; BORDER-TOP: 1px outset; BORDER-LEFT: 1px
outset; BORDER-BOTTOM: 1px outset" color="#66ccff" SIZE="3">
- Click <I>Database Search Criteria</I> to access/setup database search
criteria.<BR>
<BR><FONT color="#000080">
- Click <I>Document Search Criteria</I> to access/setup document search
criteria.</FONT><BR>
<BR>
<IMG src="./images/leftred.gif"> The red arrow indicates currently active
search type and criteria.<BR>
<BR>
<FONT face="Arial" color="#000080">
<B><I>Click for more information.</I></B></FONT>
</DIV>
</DIV>
<!-- END POP-UP -->
</BODY>

"Marek" wrote:
I'm trying to create a web page.
I will have one column with records (table filled from dataset).
If mouse will be on one from this records, i want to show a hint what is it
(like in Windows - cursor on shortcut and i have a path to application).
How can i do this?

Nov 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Oliver Gräser | last post by:
Hej, I want to run batchfiles via the Shell, but accessible in the Browser via IIS. Actually, I'd like the server to start a command line ntbackup if a users selects to do so on an ASP in his...
1
by: Mark P | last post by:
Is an insert with hint (in say std::set) only beneficial if the insertion occurs immediately before the pointed to location of the hint? Suppose the insertion occurs right after the hint location? ...
6
by: Mark P | last post by:
Some time ago I posted here about inserting into a set with a hint: ...
7
by: piperzen | last post by:
Hi, I'm developing a set of language learning exercises for http://www.yale.edu/swahili , and we've run into a javascript question that the programmer doesn't know how to tackle (we mostly work...
2
by: Roberto Rocco | last post by:
Whenever I try to create a new ASP Web Page I get this message : "Visual Studio cannot create or open the application because the Web server on this computer is not running. Start the Web server...
17
by: Jeffrey W. Baker | last post by:
Greetings, I have a 23GB data table upon which I am building a primary key of three columns. The data is mounted in a 137GB device and pg_xlog is mounted on a separate 3.5GB device. I have...
1
by: Edwin New | last post by:
I have a requirement to run two separate postmasters on the one machine. It looks like they compete for resources (semaphores) so won't run concurrently. I compiled twice, specifying different...
5
by: Michael Sperlle | last post by:
Is it possible? Bestcrypt can supposedly be set up on linux, but it seems to need changes to the kernel before it can be installed, and I have no intention of going through whatever hell that would...
12
by: zwasdl | last post by:
Hi, I'm using MS Access to query against Oracle DB via ODBC. Is it possible to use HINT in Access? Thanks, Wei
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.