• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Dispaly Data in divisions took from XML document.

 
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Marshal
Posts: 28177
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
can you see now i changed to original.
 
Paul Clapham
Marshal
Posts: 28177
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Marshal
Posts: 28177
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic