Solved

call javascript output in an XSL variable

Posted on 2011-02-25
3
715 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
Comment Utility
0
 
LVL 53

Expert Comment

by:Dhaest
Comment Utility
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

This is an explanation of a simple data model to help parse a JSON feed
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
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 …

743 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now