Include Javascript in XSL
843834Nov 4 2003 — edited Nov 6 2003Hello,
I have a javascript file that I want to include into my xsl file (the Javascript file has also some JSP code). The output of the xsl file should be JSP.
I tried tons of sollutions and none of them worked.
here some code of my .js file:
function validTransaction(thisForm)
{
<%@ include file="/javascript/elb/jsReady.js" %>
if(isBusy==true) {
alert("<%= KdMg.ohlKd("LIT-KD","020338",taalKd) %>");
return false;
}
var accountType, accnr1, accnr2;
alert('test1');
// Debet account can't be the same as credit account
accnr1=thisForm.<%=TestOvsTask.REQ_DB_REK_NR_EN_DEV%>.options[thisForm.<%=TestOvsTask.REQ_DB_REK_NR_EN_DEV%>.selectedIndex].value;
accnr2=thisForm.<%=TestOvsTask.REQ_CR_REK_NR_EN_DEV%>.options[thisForm.<%=TestOvsTask.REQ_CR_REK_NR_EN_DEV%>.selectedIndex].value;
if(accnr1 == accnr2) {
alert("<%=TextManager.ohlText("Dyl0701", "rekBegRekOpdGl", taalKd).getText()%>");
thisForm.<%=TestOvsTask.REQ_DB_REK_NR_EN_DEV%>.focus();
return false;
}
}
Any idea how to include such a file into my xsl file???
greatly appreciated...
Michael