Folks:
Hoping someone can help in debugging this small script. It’s designed to launch a modal window as on this site:
http://prototype-window.xilinus.com/samples.html. However, for some reason, it is not working and I’m not exactly a coder. Here’s the script:
============start===============
<script type="text/javascript()">
function displayWindow()
{
var win = new Window(Application.getNewId(), {className: "dialog",
width:350, height:400, zIndex: 100, resizable: true, title: "Sample window",
showEffect:Effect.BlindDown, hideEffect: Effect.SwitchOff, draggable:true})
win.getContent().innerHTML= "<div style=’padding:10px’> Lorem ipsum dolor sit amet, consectetur adipiscing elit, set eiusmod tempor incidunt et labore et dolore magna aliquam. Ut enim ad minim veniam, quis nostrud exerc. Irure dolor in reprehend incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse molestaie cillum. </div>" win.setStatusBar("Status bar info"); win.showCenter();
}
</script>
<div><span onClick="displayWindow();">Click here to launch modal window</span> </div>
=============end=================
Any help warmly appreciated