473,387 Members | 1,572 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,387 software developers and data experts.

how to display textbox entered value and with related values in textare using javascr

1
Hi friends,

i have xnl file like

Expand|Select|Wrap|Line Numbers
  1. <DATAPACKET >
  2.   <data1>
  3.     <R_ID>101</R_ID>
  4.     <R_PRE>38</R_PRE>
  5.     <R_PRE2>39</R_PRE2>
  6.     <R_TEMP>8.35</R_TEMP>
  7.     <R_TENP2>0.64</R_TENP2>
  8.   </data1>
  9.   <data1>
  10.     <R_ID>102</R_ID>
  11.     <R_PRE>36</R_PRE>
  12.     <R_PRE2>37</R_PRE2>
  13.     <R_TEMP>7.23</R_TEMP>
  14.     <R_TENP2>1.21</R_TENP2>
  15.   </data1>
  16.   <data1>
  17.     <R_ID>103</R_ID>
  18.     <R_PRE>34</R_PRE>
  19.     <R_PRE2>36</R_PRE2>
  20.     <R_TEMP>7.21</R_TEMP>
  21.     <R_TENP2>1.95</R_TENP2>
  22.   </data1>
  23.   <data1>
  24.     <R_ID>104</R_ID>
  25.     <R_PRE>32</R_PRE>
  26.     <R_PRE2>35</R_PRE2>
  27.     <R_TEMP>6.25</R_TEMP>
  28.     <R_TENP2>2.30</R_TENP2>
  29.   </data1>
  30.   <data1>
  31. <DATAPACKET >
then i have textbox...when i type 101 its go and get all data in the row in text area like

103
32
6025
2.30


please give me any idea how to do this

i m try this
Expand|Select|Wrap|Line Numbers
  1. if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari
  2.         xmlhttp = new XMLHttpRequest();
  3.     }
  4.     else {// code for IE6, IE5
  5.         xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6.     }
  7.     xmlhttp.open("GET", "Refrigerater.xml", false);
  8.     xmlhttp.send();
  9.     xmlDoc = xmlhttp.responseXML;
  10.     x = xmlDoc.getElementsByTagName("ROWDATA");
  11.  
  12.     //x = xmlDoc.getElementsByTagName("data1");
  13.  
  14.     function displayInfo(selBox) {
  15.         x = xmlDoc.getElementsByTagName("ROWDATA");
  16.         var col = (selBox.options[selBox.selectedIndex].text);
  17.         document.getElementById("show").innerHTML = "&nbsp;" + col;
  18. }
Please resolve my problem

Thanks
Venkat.S
Jul 8 '11 #1
1 1759
Dormilich
8,658 Expert Mod 8TB
please give me any idea how to do this
how to do what? I don’t see a relation between the XML and the JS code does.
Jul 9 '11 #2

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

Similar topics

2
by: RelaxoRy | last post by:
If I fill out the textfields properly with Name, Email etc in a row it is fine. But if I fill out, for example, my Name, then tab twice, it clears my entered value. How do I stop this? All I...
5
by: hans.bonefaas | last post by:
Hi all, I hope someone can help me with the following problem in ASP.net. I want to edit the information for a record in a database (MS Access). On the page I placed several textboxes and...
1
by: CharChabil | last post by:
Hello guys I m reading from a text file, and in the same time comparing the read value with predefined values in a DB From file: EXTERNAL ALARM GENERATOR RUNNING KAA EDL ARSAL FAILURE ...
2
by: wertqt | last post by:
hi there, im having a slight problem in matching the user input(textbox's text) with the values in one of the columns from a MS Access database. Im using C#.NET. The situation is this : My...
9
by: Bob Malcoprs | last post by:
Hi, I want to get all the selected values of a listbox in several labels.. With this code here below, when i click on e.g. "option 2", i get '2' in label2. That's ok. But if i then click on...
1
by: sathyan8294 | last post by:
i want to display the name starting with any letter(A-Z,a-z) in textbox from sqldatabase through datagrid using vb.net windows application. for example, values are in datagrid like companyid ...
4
by: sufian | last post by:
Below is the field where user enters his/her email address and the AJAX post request is sent to the server and the user sees the message: echo("<div id=\"message\" class=\"success\">Thank you! You...
7
by: TechnoAtif | last post by:
Hi..There is again a similar problem..Now i;ve got the option values of list?menu box to show the textbox. If the option value of list is yes then the textbox is to be displayed . Can anyone...
5
by: =?Utf-8?B?ZWdzZGFy?= | last post by:
I had to create a HTML textbox to add the date time but I don't know how to assign the value with asp.net, how can I do that? This is my HTM Textbox code: <input id="txtFechaPlan"...
1
by: nawedita | last post by:
Hi I am facing a problem with my code .... this is what I am doing ... I am running this dropdown in while loop...and i want when i select Cheque then display textbox otherwise textbox not...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.