[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

call javascript output in an XSL variable

Posted on 2011-02-25
3
Medium Priority
?
726 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
2 Comments
 
LVL 82

Accepted Solution

by:
hielo earned 2000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

When using a search centre, I'm going to show you how to configure Sharepoint's search to only return results from the current site collection. Very useful when using Office 365 with multiple site collections.
When you discover the power of the R programming language, you are going to wonder how you ever lived without it! Learn why the language merits a place in your programming arsenal.
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 …
Starting up a Project

825 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