• 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

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: 28295
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: 67750
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: 67750
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: 28295
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.
 
"Don't believe every tiny ad you see on the internet. But this one is rock solid." - George Washington
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic