Subject:Getting xsl element in javascript Author:Sumeet Badwal Date:19 May 2009 04:09 PM
Hi,
I am working with a xsl file. In that I need if user clicks some row to hide and submit the page, on coming from server, that particular row should be hidden. I am adding class attribute to row, where I am displaying and hiding it. Now, before transmitting it to server. I need to see what is the attribute value. I am calling javascript function dotransmitDoc(). Following is my code :
Subject:Getting xsl element in javascript Author:John Bampton Date:21 May 2009 11:26 AM
Hi, the XSL is run first and the HTML is created then the javascript runs. So you the bit of code in the javascript function 'xsl:attribute' will never be found.
Subject:Getting xsl element in javascript Author:Sumeet Badwal Date:21 May 2009 12:05 PM
Thanks for your reply. But I need something like, on submitting the form, check for any hidden rows, if there is any, hide it before submitting, so after refreshing page, previously hidden row should be hidden. And javascript is in xsl file.