[greenstone-users] Problem with Javascript

From Raúl Barrera
DateSat Dec 15 04:52:38 2007
Subject [greenstone-users] Problem with Javascript
Hi, I need help in doing a JumpMenu.
If I use it within a ordinary html page it works geat, but within Greenstone
I have the following problem.
In html I've inserted a javasript function in the <head>, the script is
this:

<script type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>

And after a call it from the body in the web page in this way:

<td width="306" valign="top"><form name="form1" id="form1">
<select name="otras_opciones"
onchange="MM_jumpMenu('parent',this,1)">
<option>Otras opciones</option>
<option value="http://www.link.cl">Opcion1</option>
<option value="http://www.link.cl">Opcion2</option>
<option value="http://www.link.cl">Opcion3</option>
</select>
</form>
</td>
Everything works fine, but in Greenstone the script is ignored, I inserted
in the macro in the style.dm macro package, but don't
work.
How can I do this? where can I put the script code to use it? what have I
done wrong?

Please help me, thank you.
--
Ra□l Barrera P.
------------ pr□xima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: https://list.scms.waikato.ac.nz/mailman/private/greenstone-users/attachments/20071214/aa0bb715/attachment.html