Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


DeCOMtamination: Freeze Panes

 
Logged in as: Guest
arrSession:exec spGetSession 2,7,41078
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [General Forum] >> Other Programming/Scripting Languages >> DeCOMtamination: Freeze Panes
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 DeCOMtamination: Freeze Panes - 12/15/2006 6:04:43 PM   
  TNO


Posts: 1064
Score: 10
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
Heres a question for you:

What do you do when you're trying to poll multiple servers and computers for software, and put it in an organized list that is easy to read? The common answer is: Put it in Excel. Well, what if you don't have Excel? Or even worse, what if you're using Internet Explorer 5? Are you doomed to long lists and large tables where you have to deal with all the information at once even though you only want to see maybe 3 fields at a time?

Behold, a plain HTML+CSS solution to this problem. A Table with a scrolling top and left column:

The CSS:

      

Alot of complex classes, but nothing too in-depth. The one thing that you may notice is a little known fact in internet explorer with css:
left: expression(parentNode.parentNode.parentNode.parentNode.scrollLeft)
Microsoft extended the specification to allow you to place scripting inside the css statements, giving you ALOT more power over your elements, and with ALOT less code.

The HTML:


      

So as you can see, the total amount of code really needed to run this table amounts to 2 lines:
top: expression(document.getElementById("tbl-container").scrollTop-2);
left: expression(parentNode.parentNode.parentNode.parentNode.scrollLeft);


And  of course, the live sample:
http://thenewobjective.com/website/development/JavaScript/Components/FreezePane/

You may think a first that that is an excessive amount of html for you to make, but don't forget about databinding:

Tabular Data Control: http://msdn.microsoft.com/workshop/database/tdc/overview.asp
XML:http://msconline.maconstate.edu/Tutorials/XML/XML02/xml02-02.aspx

< Message edited by TNO -- 12/15/2006 6:11:40 PM >


_____________________________

To iterate is human, to recurse divine. -- L. Peter Deutsch
 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [General Forum] >> Other Programming/Scripting Languages >> DeCOMtamination: Freeze Panes Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts