Solved

call javascript output in an XSL variable

Posted on 2011-02-25
3
717 Views
Last Modified: 2012-06-27
Hello All,

I have a need to call a javascript function from xsl and store the output in an xsl variable.

I can't use <a href="javascript:somthingt()"></a>.

I am looking for something like  <xsl:variable name="newtest">
<xsl:value-of select="javascript:test()"/>
                                    </xsl:variable>
<script type=javascript>
function test(){
return "abcd";}
</script>

Where 'newtest' will contain the result of 'test' js function. i.e, abcd

Thanks,
Rohit.
0
Comment
Question by:RohitRepu
3 Comments
 
LVL 82

Accepted Solution

by:
hielo earned 500 total points
ID: 34989723
0
 
LVL 53

Expert Comment

by:Dhaest
ID: 35321642
This question has been classified as abandoned and is being closed as part of the Cleanup Program. See my comment at the end of the question for more details.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article discusses how to create an extensible mechanism for linked drop downs.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question