ivan.x
11-19-2009, 05:03 PM
This is work in progress and extremely rudimentary to solve a table with fixed headers and scroll capabilities.
I also want to turn this into a listview control similar to the MS OS and have managed to overcome some of the problems I have encountered elsewhere.
I have only tested this in IE8, Chrome and FF. Further testing is probably required.
Basic todo list:
1.- Create an array in the global scope containing the ids of the divs that have listviews (LV) in the html.
var aLV=Array(0:'lv_Id_0',1:'lv_Id_1');
2.- Create an object from the LVs
var oLV=LV_Init();
3.- Create methods for the above object
LV_SelectAll,
LV_DeselectAll,
LV_Reset,
LV_ToggleSortByHeader,
LV_SetHoverState,
LV_SetSelectedState,
LV_SetNormalState,
LV_Resize,
LV_Resized,
LV_Drag,
LV_Move
Any thoughts, criticisms are greatly appreciated. By the way, I've only been doing javascript for a few weeks, so do expect odd constructs.
Enough talk and here is the first skelleton:
3015
I also want to turn this into a listview control similar to the MS OS and have managed to overcome some of the problems I have encountered elsewhere.
I have only tested this in IE8, Chrome and FF. Further testing is probably required.
Basic todo list:
1.- Create an array in the global scope containing the ids of the divs that have listviews (LV) in the html.
var aLV=Array(0:'lv_Id_0',1:'lv_Id_1');
2.- Create an object from the LVs
var oLV=LV_Init();
3.- Create methods for the above object
LV_SelectAll,
LV_DeselectAll,
LV_Reset,
LV_ToggleSortByHeader,
LV_SetHoverState,
LV_SetSelectedState,
LV_SetNormalState,
LV_Resize,
LV_Resized,
LV_Drag,
LV_Move
Any thoughts, criticisms are greatly appreciated. By the way, I've only been doing javascript for a few weeks, so do expect odd constructs.
Enough talk and here is the first skelleton:
3015