473,383 Members | 1,892 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Related to give me in javascript or other programming language

Respected Sir,
I am new in java i sending you a source file please make its html site and see.
My question is that its a very big table so at above in this table i make different icon so how can i connect this icon with this table so by entering the detail in icon i can see only this much table. For example in this icon i enter only H K Pathak so i can see the detail in the table related to only H K Pathak.
Here i attech the text document please convert in thml file and just see.
So please give me such type of javascript or any programm.
Nov 6 '09 #1
5 1219
RamananKalirajan
608 512MB
Yep, you can very well do that. I am attaching a Sample with this... I am not sure wether you are looking for this one. Have a look over that.. Please post back if you have any doubts on that one.

Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <HTML>
  3. <HEAD>
  4. <TITLE> New Document </TITLE>
  5. <META NAME="Generator" CONTENT="EditPlus">
  6. <META NAME="Author" CONTENT="">
  7. <META NAME="Keywords" CONTENT="">
  8. <META NAME="Description" CONTENT="">
  9. <script type="text/javascript">
  10.     function doThis()
  11.     {
  12.         var xx= document.getElementById('mySelect').selectedIndex;
  13.         if(xx=="1")
  14.         {
  15.             document.getElementById('1').style.display='block';
  16.             document.getElementById('2').style.display='none';
  17.             document.getElementById('3').style.display='none';
  18.         }
  19.         else if(xx=="2")
  20.         {
  21.             document.getElementById('1').style.display='none';
  22.             document.getElementById('2').style.display='block';
  23.             document.getElementById('3').style.display='none';
  24.         }
  25.         else if(xx=="3")
  26.         {
  27.             document.getElementById('1').style.display='none';
  28.             document.getElementById('2').style.display='none';
  29.             document.getElementById('3').style.display='block';
  30.         }
  31.         else
  32.         {
  33.             document.getElementById('1').style.display='none';
  34.             document.getElementById('2').style.display='none';
  35.             document.getElementById('3').style.display='none';
  36.         }
  37.  
  38.     }
  39. </script>
  40. </HEAD>
  41.  
  42. <BODY>
  43. <select id="mySelect" name="mySelect" onchange="doThis()">
  44. <option value="0">Select</option>
  45. <option value="1">Rahman</option>
  46. <option value="2">Manirathnam</option>
  47. <option value="3">Tom Cruise</option>
  48. </select>
  49. <table>
  50. <tr id="1" style="display:none;">
  51. <td><center>1</center></td>
  52. <td><center>----</center></td>
  53. <td><center>----</center></td>
  54. <td><center>L</center></td>
  55. <td><center>EP</center></td>
  56. <td><center><A href="nt.html.doc">H.A.Pahtak</A></center></td>
  57. <td><center>Filing cabinet and storwel</center></td>
  58. <td><center>As per spec</center></td>
  59. <td><center>IPR/SST/OA/003/1996-97</center></td>
  60. <td><center>16/07/1996</center></td>
  61. <td><center>48,810.70</center></td>
  62. <td><center>M/s. Godrej & Boyce <br>MFG.CO.LTD.</center></td>
  63. </tr>
  64. <tr id="2" style="display:none;">
  65. <td><center>2</center></td>
  66. <td><center>----</center></td>
  67. <td><center>----</center></td>
  68. <td><center>F</center></td>
  69. <td><center>EP</center></td>
  70. <td><center>H.A.Pathak</center></td>
  71. <td><center>120 m3/hr rotary pump</center></td>
  72. <td><center>04 nos.</center></td>
  73. <td><center>IPR/SST/F/020/1996-97</center></td>
  74. <td><center>16/09/1996</center></td>
  75. <td><center>FF 22,5000.00</center></td>
  76. <td><center>M/s.Alcatel Vacuum GmbH</center></td>
  77. </tr>
  78. <tr id="3" style="display:none;">
  79. <td><center>3<center></td>
  80. <td><center>----<center></td>
  81. <td><center>----<center></td>
  82. <td><center>F<center></td>
  83. <td><center>EP<center></td>
  84. <td><center>H.A.Pathak<center></td>
  85. <td><center>5000 1/s TMP<center></td>
  86. <td><center>08 nos.<center></td>
  87. <td><center>IPR/SST/F/031/1996-97<center></td>
  88. <td><center>07/11/1996<center></td>
  89. <td><center>DM 6,64,512.00<center></td>
  90. <td><center>M/s.Pfeiffer Vacuum GmbH<center></td>
  91. </tr>
  92. </table>
  93. </BODY>
  94. </HTML>
  95.  
Thanks and Regards
Ramanan Kalirajan
Nov 9 '09 #2
Dormilich
8,658 Expert Mod 8TB
@RamananKalirajan
  1. why not using the select’s value directly?
    Expand|Select|Wrap|Line Numbers
    1. var xx = this.value;
  2. IDs must never ever start with a number (see ID constraints, resp. the Name type definition (use the link))
  3. <center> is not necessary, a simple CSS line can do the same (and saves you quite some transfer volume)
    Expand|Select|Wrap|Line Numbers
    1. td { text-align: center; }
Nov 9 '09 #3
RamananKalirajan
608 512MB
@ Dormilich, I have learnt a thing which I dont know till now.. I wont start the Id with a number. Thanks man...

Thanks and Regards
Ramanan Kalirajan
Nov 9 '09 #4
Dormilich
8,658 Expert Mod 8TB
@RamananKalirajan
wait ’til you use XHTML. you’ll be prompted with every XML error that occurs.
Nov 9 '09 #5
Thank You Very much Sir
Nov 9 '09 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: MStepansky | last post by:
Whats the difference between Javascript and Java3D? I mean can Javascript do like Java3D can? Or is Java3D on top of Javascript (the core, if thats what it is)? Then I should learn Javascript...
2
by: Jackson Yap | last post by:
can someone kind enough to help me look at the attached html and js file? Why is it that the javascript menu could not work at www.apchosting.net but could work at...
1
by: jarit | last post by:
Hi, Found these coding guidelines for C#, HTML, Javascript, Java, HTML, PL/SQL, T-SQL, VB and VBScript. Well written and free to download. www.demachina.com/products/swat Jeroen
136
by: Matt Kruse | last post by:
http://www.JavascriptToolbox.com/bestpractices/ I started writing this up as a guide for some people who were looking for general tips on how to do things the 'right way' with Javascript. Their...
4
by: Luke Matuszewski | last post by:
Here are some questions that i am interested about and wanted to here an explanation/discussion: 1. (general) Is the objectness in JavaScript was supported from the very first version of it (in...
5
by: Hasin Hayder | last post by:
I have been working with PHP for more than 3yrs (I believe still I am beginner in this category) - I was present in several interview board. Which things disappointed me most is the "lack of...
43
by: Bill H | last post by:
25 years ago every computer came with some form of Basic interpreter so you could use yoru computer without having to buy more software. Is Javascript (teamed with HTML) set to become the new...
12
by: pantagruel | last post by:
Hi, I'm thinking of making a WScript based JavaScript library, I can think of some specific non-browser specific scripting examples that should probably make it in, like Crockford's little...
84
by: Patient Guy | last post by:
Which is the better approach in working with Javascript? 1. Server side processing: Web server gets form input, runs it into the Javascript module, and PHP collects the output for document prep....
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.