Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Header Fixed

Reply
Thread Tools

Header Fixed

 
 
=?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?=
Guest
Posts: n/a
 
      04-26-2007
Hello misters,

I have an DAtalist that generates an html table with a header. There are
many rows, and I want that it appears scroll horizontal and vertical, and the
header be fixed.

Any help ? Thanks in advance.
--
http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.net

 
Reply With Quote
 
 
 
 
=?Utf-8?B?TWFuaXNoIEJhZm5h?=
Guest
Posts: n/a
 
      04-27-2007
Hi,
This link should help you:
http://www.dotnet247.com/247referenc...edHeader.shtml
--
If my answer helped you,then please do press Yes below.
Thanks and Regards.
Manish Bafna.
MCP and MCTS.



"Alhambra Eidos Kiquenet" wrote:

> Hello misters,
>
> I have an DAtalist that generates an html table with a header. There are
> many rows, and I want that it appears scroll horizontal and vertical, and the
> header be fixed.
>
> Any help ? Thanks in advance.
> --
> http://www.alhambra-eidos.es/web2005/index.html
> www.kiquenet.net
>

 
Reply With Quote
 
 
 
 
=?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?=
Guest
Posts: n/a
 
      05-03-2007

Hello misters again,

Thanks mister Manish, for your answer, but I'm with the same problem. Repeat
my trouble:

I have an HTML table with a header.
There are many rows, and I want that it appears scroll horizontal and
vertical, and the header be fixed.

Very important point, the user would select an row and then, its changes
row's color (I use javascript to do this)

I have seen this references:

http://home.tampabay.rr.com/bmerkey/...olumn-csv.html
http://www.webdeveloper.com/forum/sh...d.php?t=108597

The trouble about this references, when the user select an row and changes
color of row, the header dissaparears !!!.

Any solution about this issue, now I'm crazy.

Thanks in advance. Any help will be appreciated, very grateful if any help.
Greetings


--
http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.net



"Manish Bafna" wrote:

> Hi,
> This link should help you:
> http://www.dotnet247.com/247referenc...edHeader.shtml
> --
> If my answer helped you,then please do press Yes below.
> Thanks and Regards.
> Manish Bafna.
> MCP and MCTS.
>
>
>
> "Alhambra Eidos Kiquenet" wrote:
>
> > Hello misters,
> >
> > I have an DAtalist that generates an html table with a header. There are
> > many rows, and I want that it appears scroll horizontal and vertical, and the
> > header be fixed.
> >
> > Any help ? Thanks in advance.
> > --
> > http://www.alhambra-eidos.es/web2005/index.html
> > www.kiquenet.net
> >

 
Reply With Quote
 
Alexey Smirnov
Guest
Posts: n/a
 
      05-03-2007
On May 3, 1:52 pm, Alhambra Eidos Kiquenet
<AlhambraEidosKique...@discussions.microsoft.com > wrote:
> Hello misters again,
>
> Thanks mister Manish, for your answer, but I'm with the same problem. Repeat
> my trouble:
>
> I have an HTML table with a header.
> There are many rows, and I want that it appears scroll horizontal and
> vertical, and the header be fixed.
>
> Very important point, the user would select an row and then, its changes
> row's color (I use javascript to do this)
>
> I have seen this references:
>
> http://home.tampabay.rr.com/bmerkey/...d.php?t=108597
>
> The trouble about this references, when the user select an row and changes
> color of row, the header dissaparears !!!.
>
> Any solution about this issue, now I'm crazy.
>


A solution about which issue? You referenced to an examples with the
fixed headers, but not with the code you used to select a row.

 
Reply With Quote
 
=?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?=
Guest
Posts: n/a
 
      05-03-2007
Sorry,

the javascript code for change color of row:

// Selecciona la fila y cambia el hidden del seleccionado
function SeleccionarFila(identificadorTarea, offset)
{
if( (identificadorSeleccionada != null) &&
(document.getElementById(identificadorSeleccionada ) != null) )
{
document.getElementById(identificadorSeleccionada) .className
= 'ItemStyle';
if(identificadorTarea == identificadorSeleccionada)
{
identificadorSeleccionada == null;
if(document.getElementById(HiddenSeleccionadoClien tID)
!= null)
{

document.getElementById(HiddenSeleccionadoClientID ).value = null;

document.getElementById(HiddenSeleccionadoOffsetCl ientID).value = null;

}
return;
}
}
document.getElementById(identificadorTarea).classN ame =
'SelectedItemStyle';
identificadorSeleccionada = identificadorTarea;
if(document.getElementById(HiddenSeleccionadoClien tID) != null)
{
document.getElementById(HiddenSeleccionadoClientID ).value =
identificadorTarea;

document.getElementById(HiddenSeleccionadoOffsetCl ientID).value = offset;
}
}


 
Reply With Quote
 
Alexey Smirnov
Guest
Posts: n/a
 
      05-03-2007
On May 3, 4:15 pm, Alhambra Eidos Kiquenet
<AlhambraEidosKique...@discussions.microsoft.com > wrote:
> Sorry,
>
> the javascript code for change color of row:
>
> // Selecciona la fila y cambia el hidden del seleccionado
> function SeleccionarFila(identificadorTarea, offset)
> {
> if( (identificadorSeleccionada != null) &&
> (document.getElementById(identificadorSeleccionada ) != null) )
> {
> document.getElementById(identificadorSeleccionada) .className
> = 'ItemStyle';
> if(identificadorTarea == identificadorSeleccionada)
> {
> identificadorSeleccionada == null;
> if(document.getElementById(HiddenSeleccionadoClien tID)
> != null)
> {
>
> document.getElementById(HiddenSeleccionadoClientID ).value = null;
>
> document.getElementById(HiddenSeleccionadoOffsetCl ientID).value = null;
>
> }
> return;
> }
> }
> document.getElementById(identificadorTarea).classN ame =
> 'SelectedItemStyle';
> identificadorSeleccionada = identificadorTarea;
> if(document.getElementById(HiddenSeleccionadoClien tID) != null)
> {
> document.getElementById(HiddenSeleccionadoClientID ).value =
> identificadorTarea;
>
> document.getElementById(HiddenSeleccionadoOffsetCl ientID).value = offset;
> }
> }


Hi... how do you call that function?

>> Very important point, the user would select an row and then, its changes
>> row's color (I use javascript to do this)


I see that in your js-function you are doing much more than just
changing a color. What exactly do you need once the row is clicked?

 
Reply With Quote
 
=?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?=
Guest
Posts: n/a
 
      05-03-2007

Hi,

I call my function like this

<tr ... onclick="SeleccionarFila(12034, 0)" ...

the function SeleccionarFila does the following:

- change the color of row (selected row)

- set values in input hidden. This values are codes (id of row and another
value)

Any problem with the code ?? Only put values in hidden ...and changes color
with className attribute..

Thanks...

"Alexey Smirnov" wrote:

> On May 3, 4:15 pm, Alhambra Eidos Kiquenet
> <AlhambraEidosKique...@discussions.microsoft.com > wrote:
> > Sorry,
> >
> > the javascript code for change color of row:
> >
> > // Selecciona la fila y cambia el hidden del seleccionado
> > function SeleccionarFila(identificadorTarea, offset)
> > {
> > if( (identificadorSeleccionada != null) &&
> > (document.getElementById(identificadorSeleccionada ) != null) )
> > {
> > document.getElementById(identificadorSeleccionada) .className
> > = 'ItemStyle';
> > if(identificadorTarea == identificadorSeleccionada)
> > {
> > identificadorSeleccionada == null;
> > if(document.getElementById(HiddenSeleccionadoClien tID)
> > != null)
> > {
> >
> > document.getElementById(HiddenSeleccionadoClientID ).value = null;
> >
> > document.getElementById(HiddenSeleccionadoOffsetCl ientID).value = null;
> >
> > }
> > return;
> > }
> > }
> > document.getElementById(identificadorTarea).classN ame =
> > 'SelectedItemStyle';
> > identificadorSeleccionada = identificadorTarea;
> > if(document.getElementById(HiddenSeleccionadoClien tID) != null)
> > {
> > document.getElementById(HiddenSeleccionadoClientID ).value =
> > identificadorTarea;
> >
> > document.getElementById(HiddenSeleccionadoOffsetCl ientID).value = offset;
> > }
> > }

>
> Hi... how do you call that function?
>
> >> Very important point, the user would select an row and then, its changes
> >> row's color (I use javascript to do this)

>
> I see that in your js-function you are doing much more than just
> changing a color. What exactly do you need once the row is clicked?
>
>

 
Reply With Quote
 
Alexey Smirnov
Guest
Posts: n/a
 
      05-03-2007
On May 3, 6:27 pm, Alhambra Eidos Kiquenet
<AlhambraEidosKique...@discussions.microsoft.com > wrote:
> Hi,
>
> I call my function like this
>
> <tr ... onclick="SeleccionarFila(12034, 0)" ...
>
> the function SeleccionarFila does the following:
>
> - change the color of row (selected row)
>
> - set values in input hidden. This values are codes (id of row and another
> value)
>
> Any problem with the code ?? Only put values in hidden ...and changes color
> with className attribute..
>


Well, I prefer to use something simple, as an example at the following
tutorial

http://www.rgagnon.com/jsdetails/js-0093.html

You don't need any offset, etc. and I hope it will work better.

 
Reply With Quote
 
carion1
Guest
Posts: n/a
 
      05-03-2007
<!--display header here-->
<div style="width: 800px; height: 400px; overflow : auto">
<!--display data here-->
</div>

Change the width and height to whatever floats your boat.

Derek

On May 3, 1:49 pm, Alexey Smirnov <alexey.smir...@gmail.com> wrote:
> On May 3, 6:27 pm, Alhambra Eidos Kiquenet
>
>
>
>
>
> <AlhambraEidosKique...@discussions.microsoft.com > wrote:
> > Hi,

>
> > I call my function like this

>
> > <tr ... onclick="SeleccionarFila(12034, 0)" ...

>
> > the function SeleccionarFila does the following:

>
> > - change the color of row (selected row)

>
> > - set values in input hidden. This values are codes (id of row and another
> > value)

>
> > Any problem with the code ?? Only put values in hidden ...and changes color
> > with className attribute..

>
> Well, I prefer to use something simple, as an example at the following
> tutorial
>
> http://www.rgagnon.com/jsdetails/js-0093.html
>
> You don't need any offset, etc. and I hope it will work better.- Hide quoted text -
>
> - Show quoted text -



 
Reply With Quote
 
=?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?=
Guest
Posts: n/a
 
      05-04-2007
Thanks, Derek. Have you any sample code about it ??

Regards.

> <!--display header here-->
> <div style="width: 800px; height: 400px; overflow : auto">
> <!--display data here-->
> </div>
>
> Change the width and height to whatever floats your boat.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Header files with "header.h" or <header.h> ?? mlt C++ 2 01-31-2009 02:54 PM
Problem WIth Fixed Header DataGrid CSS Expression batista ASP .Net 1 02-16-2006 09:03 AM
Fixed Header on a Data Grid using CSS - problem with Drop downs =?Utf-8?B?Sm9lIER1bmxlYXZ5?= ASP .Net 1 10-13-2005 09:09 PM
Free Fixed-Width/Fixed-Pitch fonts? johnp HTML 4 05-23-2005 06:14 AM
Fixed header by CSS only kurt sune ASP .Net 0 03-21-2005 08:59 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57