[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 641
  • Last Modified:

classic asp recordset paging

9-2-2011-8-26-41-AM.pdf

Hi I have classic asp and use recordset to show the data from sql server database. and have two question.

1. Please view attached, when the mouse over on particular row. Is it possible to do something like that attached?

2. how to do the alternative color. the row color is different.

0
Webboy2008
Asked:
Webboy2008
  • 2
1 Solution
 
LZ1Commented:
I actually am working on the exact same type of project.  I found this jquery plugin to be extremely helpful

http://www.datatables.net/index 
0
 
Webboy2008Author Commented:
look good but i don't have time to learn this.
0
 
LZ1Commented:
Not really a whole lot to learn. You basically already have your table with your repeat-region right?

Give your table an ID, then you can basically do something like this, after you've included the Jquery library of course:
<script type="text/javascript">
		$(document).ready(function() {
			$('#admin').dataTable( {
				"aaSorting": [[ 4, "desc" ]],
				"sDom": 'Rlfrtip',
				"bStateSave":true,
				"sPaginationType": "full_numbers"
			} );
		} );
		</script>

Open in new window


If you still don't want to do something like that then for highlighting and clicking you can use something like this:  
<script type="text/javascript">
		    $(document).ready(function() {
			 $('#admin tr')
			   .addClass('highlight')
			   .end()
			 .click(function(event) {
			   $(this).toggleClass('highlight');
			 });
		    });
		</script>

Open in new window


Just make sure to give your CSS a class of .highlight.  Mine looks like this:
table#admin .highlight td,
table#admin tr.alt.highlight td{background:#FF6;}

Open in new window

0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now