Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 31st, 2007, 05:57 AM
Authorized User
 
Join Date: Jan 2007
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to change the color of selected row of an HTML

How to change the color of selected row of an HTML table without using CSS or Javascript?
 
Old January 31st, 2007, 06:09 AM
Authorized User
 
Join Date: Dec 2006
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I dont understand what yu want!!!without CSS or Javascript how color can be changed. If possible clear ur scenerio.

Dharmendra
Sr. Software Architect
 
Old January 31st, 2007, 10:16 AM
Authorized User
 
Join Date: Jan 2007
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have a table with some items in its rows like some messages and i want when i click on a particular row the color of tht row should be changed.There is an event attribute in HTML table "onclick". But i have tried with tht also but its not working.
Actually i have a VB.NET code which is written in console which accepts command line arguments and i am displaying it in an HTML format where i hv stuck up in the above thing.

 
Old January 31st, 2007, 10:17 AM
Authorized User
 
Join Date: Jan 2007
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have a table with some items in its rows like some messages and i want when i click on a particular row the color of tht row should be changed.There is an event attribute in HTML table "onclick". But i have tried with tht also but its not working.
Actually i have a VB.NET code which is written in console which accepts command line arguments and i am displaying it in an HTML format where i hv stuck up in the above thing.



Quote:
quote:Originally posted by dhara_adh
 I dont understand what yu want!!!without CSS or Javascript how color can be changed. If possible clear ur scenerio.

Dharmendra
Sr. Software Architect
 
Old February 11th, 2007, 09:22 PM
Friend of Wrox
 
Join Date: Nov 2005
Posts: 223
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sorry to say but always use css for colors and styles in your HTML.

attributes in your HTML for your layout and colors is such a pain.
I recommend you use css and use VB code serverside to give your table elements a class for example
Code:
<table>
<tr>
  <%
  Response.Write("<td class="selected"></td>")
  %>
</tr>
</table>
__________________________________________________ ________
I am DJ Kat...that's my name. Its a D and a J and a Kat with a K.





Similar Threads
Thread Thread Starter Forum Replies Last Post
change the color of selected text dynamically NEO1976 Flash (all versions) 1 December 18th, 2007 11:11 AM
how can i change row color in datagrid? berzegerol VS.NET 2002/2003 3 October 31st, 2006 09:08 AM
How to change color of selected external listview method VB How-To 8 October 20th, 2006 07:01 PM
datagrid row color change berzegerol Visual Studio 2005 0 October 18th, 2006 06:33 AM
change row color vivek_pon VS.NET 2002/2003 3 April 13th, 2006 01:42 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.