• 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

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
 
Marshal
Posts: 28193
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
Javascript? HTML? We have a forum dedicated to those things...
 
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
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: 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
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
Marshal
Posts: 28193
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
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.
reply
    Bookmark Topic Watch Topic
  • New Topic