Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Wed, 13 Aug 2008 18:26:09 +0100,    group: microsoft.public.dotnet.framework.aspnet        back       


Hover popups in table cells   
In my ASP.NET web app I'm trying to create a popup DIV that displays some 
text when the user hovers the mouse over a link in a particular cell in a 
table. I'm using JavaScript to show & hide the popup.

I've played around but can't get the popup to work properly. Toggling 
between 'visibility:hidden' & 'visibility:visible' doesn't work correctly 
because the row height is incorrect and includes the height of the popup 
text. Toggling between 'display:none' & 'display:block' doesn't work because 
the row height gets increased when the popup is displayed.

Can someone help me out to get the popup to work properly so that the row 
height is correct? It needs to work with IE6.
date: Wed, 13 Aug 2008 18:26:09 +0100   author:   chrisp

Re: Hover popups in table cells   
This is what I use, hope it helps.

function switchVisible(objname) {
    var obj = document.getElementById(objname);
    
    if ( obj.style.display == 'none' ) {
      obj.style.display = '';
    } else {
      obj.style.display = 'none';
    }
}

> In my ASP.NET web app I'm trying to create a popup DIV that displays
> some text when the user hovers the mouse over a link in a particular
> cell in a table. I'm using JavaScript to show & hide the popup.
> 
> I've played around but can't get the popup to work properly. Toggling
> between 'visibility:hidden' & 'visibility:visible' doesn't work
> correctly because the row height is incorrect and includes the height
> of the popup text. Toggling between 'display:none' & 'display:block'
> doesn't work because the row height gets increased when the popup is
> displayed.
> 
> Can someone help me out to get the popup to work properly so that the
> row height is correct? It needs to work with IE6.
>
date: Wed, 13 Aug 2008 20:54:52 +0000 (UTC)   author:   The Colorado Kid tck

Re: Hover popups in table cells   
This is what I've been using and it doesn't work. It will show & hide the 
popup OK but it also causes the row height to get increased & decreased each 
time.

"The Colorado Kid" <tck> wrote in message 
news:9d7f13bf8a0f8cacb6bad0c1388@newsgroups.comcast.net...
> This is what I use, hope it helps.
>
> function switchVisible(objname) {
>    var obj = document.getElementById(objname);
>    if ( obj.style.display == 'none' ) {
>      obj.style.display = '';
>    } else {
>      obj.style.display = 'none';
>    }
> }
>
>> In my ASP.NET web app I'm trying to create a popup DIV that displays
>> some text when the user hovers the mouse over a link in a particular
>> cell in a table. I'm using JavaScript to show & hide the popup.
>>
>> I've played around but can't get the popup to work properly. Toggling
>> between 'visibility:hidden' & 'visibility:visible' doesn't work
>> correctly because the row height is incorrect and includes the height
>> of the popup text. Toggling between 'display:none' & 'display:block'
>> doesn't work because the row height gets increased when the popup is
>> displayed.
>>
>> Can someone help me out to get the popup to work properly so that the
>> row height is correct? It needs to work with IE6.
>>
>
>
date: Wed, 13 Aug 2008 22:24:42 +0100   author:   chrisp

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us