473,588 Members | 2,474 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using Javascript to call many xml files into xsl

6 New Member
I am creating many xml files. I want each one to be shown in an xsl type sheet but my problem is that I would like to have a next button so that I can look at the next xml sheet. I have seen a few things that have said you can do this with javascript but I am unsure. The example would be these xml files in a folder
xml_file001
xml_file002
xml_file003
xml_file004
and the xsl file would read the information on a single page, then click a link to go to the next page to read the next xml file. Any help with this would be greatly appreciated.

Thanks.
Feb 15 '08 #1
5 1440
acoder
16,027 Recognized Expert Moderator MVP
I don't know how you add JavaScript to xsl, but you can use JavaScript to load an XML file. Can you show some code, so we have a better idea of the setup.
Feb 15 '08 #2
nocturnal428
6 New Member
Sorry, for the data I'm applying this to I really can't. I will go in more detail for you though.
Lets say I have three xml files that all look like this

<Information>
<System>abc</System>
<Model>xyz</Model>
<Uptime>123</Uptime>
<Information>

I want to load a xsl type of file to show a web page with this information in a table from one xml file. I then would have a next link, or next button to click to reload the same information but with the next xml file in a folder. The only other way I have heard of doing something like this without Javascript is by merging all the xml files together and passing a position parameter in xsl but I am unsure if that would work. I would need the user of the script to be able to click a link to move on to the next xml file.
Feb 15 '08 #3
nocturnal428
6 New Member
Thinking about it now would it be possible with javascript (I dont think you can use just html) to create a webpage with links to the xml files that I can just click on and open. They would all be linked back to one xsl file to open because they are all of the exact same format. So it would look something like

xml_link1 (click on any of the three links to open up the xml file based on the xsl)

xml_link2

xml_link3
Feb 15 '08 #4
nocturnal428
6 New Member
Sorry I guess it was as simple as using html to do what I wanted to do. I think that if I actually had the something like a next or prev link I would of had to embed the xml in html anyways. Thanks.
Feb 15 '08 #5
acoder
16,027 Recognized Expert Moderator MVP
Well, that was simple. Glad to hear that you got it working and thanks for posting back to let us know.
Feb 15 '08 #6

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

Similar topics

25
1985
by: Martin Walke | last post by:
Hi, This may seem like a client side problem but.... I have web pages that are made up of a number of javascript include files as well as 'in page' script. They all work fine running locally until I hosted them on our IIS server. Then the pages refuse to see nested javascript calls. e.g.
6
23740
by: Sergio Otoya | last post by:
Hi all, Is there any way of copying a file using javascript, not using the Filesystemobject (ActiveX). I need this to run in Windows and MACS. Any help would be greatly appreciated. Thanks in advance. Sergio Otoya.
2
4237
by: KS | last post by:
I have a folder where i got all my external javascript.js files saved. Using the external.js files in my .jsp files works fin by: <script language="JavaScript" src="/PlexSysWeb/javascript/disableObjekt.js"> </script><script language="JavaScript" src="/PlexSysWeb/javascript/respons.js"></script>
1
8072
by: Troy | last post by:
Hi! I am working on a rather complicated set of html and javascript files here and am experiencing some serious IE/Netscape(Mozilla actually) incompatability issues. I have an html page that includes a hidden IFRAME (size 0x0). That IFRAME get's reloaded and calls the parent's write_table function. This is to ensure the illusion that the page is not refreshing (my boss didn't like the "blinking" of the refresh).
9
6887
by: Charley Kyd | last post by:
I'm a newbie who needs advice about how to use external files of JavaScript code. I spent an hour this afternoon browsing through JavaScript books at the local book store. In about 15 different titles, I found a total of about five pages that covered js files. For all practical purposes, these pages said, "You can use js files. But we won't tell you how." Therefore, I hope someone can answer a few questions about js files... 1....
4
1765
by: gmazujian | last post by:
I have a problem. I would like to call a cgi program from javascript. I have scanned the web. I have a cgi program. It works fine if I call it by the url. However, when I call it from the javascript script it appears to do nothing. It doesn't generate any error. First, Here is my html with Javascript. <script type="text/javascript" language="JavaScript" src="/cgi-bin/cookie/script1.cgi"> </script>
4
10672
by: Steven | last post by:
Hello, I have 3 files -- 1. mainform.aspx 2. mainform.aspx.cs 3. mouse.js mainform.aspx contains a image button ("zoominimgbut") which will exceute C# code, whenever the user clicks on it. mainform.aspx.cs is the code behind for mainform.aspx. Mouse.js contains javascript code which needs to executed
8
2385
by: otto | last post by:
Hi, all: I have a problem with the inclusion of .js files in mu .aspx pages when using Master Pages. I try to explain it. If I make a web project without master pages I simply put in the head tag on each page the reference to the ..js file I want to use. Because I want client side includes I make the reference with <script> tag, for example: <head runat=server> <script src="/javascript/test.js" /> </head>
8
2601
by: Frank | last post by:
Hi, I am working with VS.NET 2005 Ultimately, I wish to call a JavaScript function from a .js file
2
11613
hsriat
by: hsriat | last post by:
For a good programmer, providing good comments in the code is a must. In PHP, giving comments has no demerits. But what about JavaScript? Do you really want those comments to stay in the code and make it double in size, and of course disclose what you have done when the code reaches the client (browser)? I am not sure how many of you would have faced this problem, but I faced this many times. I am not good at memorizing things, so I give lot...
0
7862
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8357
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8223
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6634
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5729
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
3847
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3887
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2372
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1459
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.