incorporate javascript, works in html but not xslt
Hi,
How do i incorprate the following code in my xslt file.
This script works in html but not in the xslt file.
This is part of my previous post where I want javascript popup and set variable & pass parameters.
<script>
var windowW=20// wide
var windowH=208 // high
var windowX = 20 // from left
var windowY = 20 // from top
var urlPop = "http://srv08-za119/fcparmalattest/browse2.aspx?o=769"
var title = "This Is A Frameless Popup Window"
var autoclose = true
s = "width="+windowW+",height="+windowH;
var beIE = document.all?true:false
function openFrameless(){
if (beIE){
NFW = window.open("","popFrameless","fullscreen,"+s)
NFW.blur()
window.focus()
NFW.resizeTo(windowW,windowH)
NFW.moveTo(windowX,windowY)
var frameString=""+
"<html>
"+
"<head>
"+
"<title>"+title+"</title>"+
"
</head>"+
"<frameset rows='*,0' framespacing='0' border='0' frameborder='0'>
"+
"<frame name='top' src='"+urlPop+"' scrolling='auto'>"+
"</frame>"+
"<frame name='bottom' src='about:blank' scrolling='no'>"+
"</frame>"+
</frameset>"+
"
</html>"
NFW.document.open();
NFW.document.write(frameString)
NFW.document.close()
} else {
NFW=window.open(urlPop,"popFrameless","scrollbars, "+s)
NFW.blur()
window.focus()
NFW.resizeTo(windowW,windowH)
NFW.moveTo(windowX,windowY)
}
NFW.focus()
if (autoclose){
window.onunload = function(){NFW.close()}
}
}
</script>
</head>
<body> <a href="javascript:openFrameless()">click here</a></body>
I tried attacheing the entire file but no luck!
Please Assist!
Regard,
|