aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Dispaly Data in divisions took from XML document. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Dispaly Data in divisions took from XML document." Watch "Dispaly Data in divisions took from XML document." New topic
Author

Dispaly Data in divisions took from XML document.

T sandya
Ranch Hand

Joined: Aug 03, 2006
Posts: 64
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
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

"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

Joined: Jan 10, 2002
Posts: 61064
    
  66

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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
T sandya
Ranch Hand

Joined: Aug 03, 2006
Posts: 64
can you see now i changed to original.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

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

Joined: Aug 03, 2006
Posts: 64
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
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

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

Joined: Aug 03, 2006
Posts: 64
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

Joined: Nov 08, 2001
Posts: 15376
    
    6
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
 
 
subject: Dispaly Data in divisions took from XML document.