• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Can we pass parameters from a Javascript function to an XSL file

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I would like to know whether it is possible to pass parameters from a javascript function (in a HTML form) to an XSL file.
Your help would be highly appreciated.

Thanks
Solomon
 
Sheriff
Posts: 26959
84
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
Javascript? HTML? We have a forum dedicated to those things...
 
Sheriff
Posts: 67619
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
What relationship exists between the HTML file and the XSL sheet?
 
solomon alexander
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have a HTML form, which has a javascript function.
What i need to do is , pass a parameter from a javascript function and access that from XSL tags.
This parameter is not static , it is a HTML form field. This will come dynamically to XSL and needs to be accessed via XSL tag.

Could you let me know, whether it is possible?

Thanks
Solomon
 
solomon alexander
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The relationship is : HTML form will have fields and a search button. User will perform search by entering the search fields and hit search button. The data needs to be pulled out from an XML file which uses a XSL stylesheet and convert the XML data into HTML
 
Bear Bibeault
Sheriff
Posts: 67619
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
Your reply did nothing to describe the relationship between the HTML form and the XML file.
 
solomon alexander
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have an HTML form. This form has the fields Title,Artist,Company,Country,Company,Price,Year and a search button.
User needs to enter the search fields and hit the submit button. A Javascript function will be invoked. This function will load the XML file and the XSL file as well. Then it transforms the XML data into HTML. The search needs to be done against the XML file and display the data in HTML.
Basically we need to convert the XML data into HTML data.
Everything should happen at the client side.

I think this can be achieved by Ajax, however it needs a web server like Apache Web Server.
I would like it get this done on the client side.

Let me know, if it is possible.

Thanks
Solomon
 
Paul Clapham
Sheriff
Posts: 26959
84
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
I still don't see where this XML file is supposed to be coming from. Let me put it this way: You can't access the client machine's file system from Javascript, so if you were expecting to get the XML file from there, you won't be able to do that.
 
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic