Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dispaly Data in divisions took from XML document.

 
T sandya
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have two divisions.

My problem is In first divsion the data will take from xml and will display like below

Customer name Tax number
-------------- -------------
smith 105
Tom 107

if we click on any of the above row it should display the full details of the individual customer in second division.but now it is displaying details of all customers.

how to filter and display based on cutomer or tax number in the second division.

The script code for to display in second division is



thank & Regards,
Nehaa.
 
Paul Clapham
Sheriff
Posts: 21316
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Neha p", welcome to the JavaRanch.

We're a friendly group here, but we do require members to have valid display names.

Display names must be your first name followed by your last name. Fictitious names are not allowed.

Please edit your profile and correct your display name since accounts with invalid display names get deleted.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65113
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This was your third and final warning. Your display name must be changed to adhere to the standard prior to your next post. Failure to comply will result in the disabling of your account.

bear
JavaRanch Sheriff
 
T sandya
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you see now i changed to original.
 
Paul Clapham
Sheriff
Posts: 21316
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you. So on to your question... which I don't understand, at least not if it's supposed to be a question about XML. What are these "divisions" you're talking about? And this "display", which you are clicking on? None of that seems to be related to XML. So could you perhaps explain your question a bit more?
 
T sandya
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have one html page.In that file source code is

<html>
----------
----------------
-------------
</html>


in between those html tags i want to paste the text ,which is coming from xsl tranformation before loading this html page.

how i can do this. that is the help required for me.
 
Paul Clapham
Sheriff
Posts: 21316
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paste text into an HTML page? I don't see the XML connection here. (The fact that you used XSLT to produce this text doesn't make it an XML problem.) So I'm going to move this over to our HTML and Javascript forum, maybe somebody there will understand the question.
 
T sandya
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
just asume in between above html tags the below code is there.

<script>
xmldoc = new ActiveXObject("Microsoft.XMLDOM");
xmldoc.async = false;
xmldoc.load("../../../Insight/EnterApplicantsData.xml");

xsldoc = new ActiveXObject("Microsoft.XMLDOM");
xsldoc.async = false;
xsldoc.load("../../../Insight/EnterApplicantsData.xsl");
var temp = xmldoc.transformNode(xsldoc);
var myArray = temp;
var nArray = new Array();
for(var i=0;(myArray.length>0) && (myArray.indexOf('*')>0);i++){
start = myArray.indexOf('(');
end = myArray.indexOf(')');
nArray[i] = myArray.substring(start+1,end);
myArray = myArray.substring(end+1);

}

</script>

this transformation producing the follwing text.

=========================
"this is list object"
=========================

i want to paste the above text in between the html tags before loading the page. this text should require for html to work properly.

can help me any body.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to write code to do the show hide

onclick="document.getElementById('divId').style.display='block';"
onclick="document.getElementById('divId').style.display='none';"

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic