• 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

JavaScript and XSL

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
I am developing a xml driven web site. On the main index page for the site, I have some information about the latest special offers on holidays.
I want the user to click on the offer, which will then open a new window displaying the full details of that particular offer. I dont know how to approach this in xsl? The main page info. is contained in an xml file, the offers are all contained in multiple xml files according to a particular category - 3 categories - 3 xml files. I want the user to click on an offer on the main page, which will look up the relevant xml page and display this info in a new window.
Someone told me to use a JavaScript - Have the details of each offers fields passed to a Javascript routine accessed via an onClick handler on a link. The JavaScript routine is responsible for popping up a window and showing these details.
But how do I implement this, has anyone done this before?, or any good code online to help me.
Thanks.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How are you pulling the XML to the page?
Are you planning on doing it ith a server side langugae or JavaScript?
 
Annemarie McKeown
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I didn't know how to obtain information from three xml files, so I created a new xml file, which could be modified for details of latest special offers for the main index page only. Using xsl to transform the xml to xhtml.
I want then to click on the offers on the main page, and be redirected to the appropriate xml file, and look up information relative to that offer.
Again using xsl to transform the xml information
Someone told me that Javacsript was the best way to approcah this but like I said I dont know where to start, or how to implement.
Some guidance on how to start or approach would be helpful.
Many thanks.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic