Click here to Skip to main content
15,908,834 members
Home / Discussions / Web Development
   

Web Development

 
QuestionMaintain cursor in parent window when pop-up opens.... Pin
Khawar Abbas121-Jun-09 18:55
Khawar Abbas121-Jun-09 18:55 
AnswerRe: Maintain cursor in parent window when pop-up opens.... Pin
DoctorMick22-Jun-09 6:23
DoctorMick22-Jun-09 6:23 
QuestionExport "Installed Updates" In vista Using VBscript Pin
Geo S Neeliyara21-Jun-09 18:39
Geo S Neeliyara21-Jun-09 18:39 
AnswerRe: Export "Installed Updates" In vista Using VBscript Pin
wSWs30jY6tgX18-Feb-10 18:48
wSWs30jY6tgX18-Feb-10 18:48 
QuestionHow I can Convert one Color to Another Color Pin
Saba0220-Jun-09 2:18
Saba0220-Jun-09 2:18 
AnswerRe: How I can Convert one Color to Another Color Pin
Not Active20-Jun-09 4:13
mentorNot Active20-Jun-09 4:13 
AnswerRe: How I can Convert one Color to Another Color Pin
Gary Stafford23-Jun-09 16:22
Gary Stafford23-Jun-09 16:22 
QuestionHelp in tool tip alignment in Gridview Pin
www.Developerof.NET19-Jun-09 22:00
www.Developerof.NET19-Jun-09 22:00 
Hi all,

I have a gridview on my form with 5 columns. One of the field contains item name along with an small icon image. On mouseover of that image i have to show the specification of that item. The specification is in a hidden column of the gridview. For this i wrote the following code:


Dim specimg As System.Web.UI.WebControls.Image = CType(e.Row.FindControl("Item_Spec"), System.Web.UI.WebControls.Image)
specimg.Attributes.Add("onmouseover", "Show_ToolTip(event,'" + HttpUtility.HtmlDecode(msg.Replace("'", "\'")) + "')")

Javascript:

function Show_ToolTip(e,myString)
{
var regX = /\\n/g;
var replaceString = '<br> \\n';
myString=myString.replace(/^\s\s*/, '').replace(/\s\s*$/, '');
myString=myString==""? "No Specification": myString;
text= myString.replace(regX, replaceString)
document.getElementById("Tip_Label").innerText=text;
x = event.clientX + document.body.scrollLeft;
y = event.clientY + document.body.scrollTop ;
document.getElementById("Tool_Tip").style.display="block";
document.getElementById("Tool_Tip").style.left = x;
document.getElementById("Tool_Tip").style.top = y;
}


HTML:

<div id="Tool_Tip" style="position: absolute; z-index: 130" class="tip">
<label id="Tip_Label">
</label>
</div>


But when i hover over the image the tooltip doesn`t always appear below the image and some times appers very far away on the top of the page. What is it that i need to change so that my tooltip always appears just below the image ???

When you fail to plan, you are planning to fail.

QuestionGenerate word document from web form Pin
Hemant Thaker18-Jun-09 23:12
Hemant Thaker18-Jun-09 23:12 
AnswerRe: Generate word document from web form Pin
Not Active19-Jun-09 2:44
mentorNot Active19-Jun-09 2:44 
GeneralRe: Generate word document from web form Pin
Hemant Thaker19-Jun-09 4:37
Hemant Thaker19-Jun-09 4:37 
GeneralRe: Generate word document from web form Pin
Not Active19-Jun-09 5:08
mentorNot Active19-Jun-09 5:08 
QuestionRe: Generate word document from web form Pin
led mike19-Jun-09 5:18
led mike19-Jun-09 5:18 
QuestionRe: Generate word document from web form Pin
Hemant Thaker19-Jun-09 23:17
Hemant Thaker19-Jun-09 23:17 
AnswerRe: Generate word document from web form Pin
Not Active20-Jun-09 4:07
mentorNot Active20-Jun-09 4:07 
AnswerRe: Generate word document from web form [modified] Pin
Gary Stafford21-Jun-09 8:38
Gary Stafford21-Jun-09 8:38 
QuestionRe: Generate word document from web form Pin
Hemant Thaker21-Jun-09 23:41
Hemant Thaker21-Jun-09 23:41 
QuestionRe: Create Header in word document dynamically Pin
Hemant Thaker23-Jun-09 3:30
Hemant Thaker23-Jun-09 3:30 
AnswerRe: Create Header in word document dynamically Pin
Gary Stafford23-Jun-09 12:56
Gary Stafford23-Jun-09 12:56 
GeneralRe: Create Header in word document dynamically Pin
Hemant Thaker26-Jun-09 23:55
Hemant Thaker26-Jun-09 23:55 
QuestionData Scrapping in Asp.net Pin
ravi.vellanky18-Jun-09 21:12
ravi.vellanky18-Jun-09 21:12 
AnswerRe: Data Scrapping in Asp.net Pin
Not Active19-Jun-09 2:41
mentorNot Active19-Jun-09 2:41 
QuestionJquery Validation plugin in Ajax Update Panel Pin
sagnik mukherjee18-Jun-09 8:41
sagnik mukherjee18-Jun-09 8:41 
QuestionSourceCode for Sharing My Website on Social Networking Sites Pin
mshen0118-Jun-09 4:44
mshen0118-Jun-09 4:44 
AnswerRe: SourceCode for Sharing My Website on Social Networking Sites Pin
Aman Bhullar18-Jun-09 19:44
Aman Bhullar18-Jun-09 19:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.