[greenstone-users] Problem with Javascript

From John Rose
DateThu Dec 20 22:14:50 2007
Subject [greenstone-users] Problem with Javascript
In-Reply-To (20071217215154-6E3F53F06F1-mail-alumni-caltech-edu)
Dear Ra□l,

The Greenstone team is working to provide better
support to users of the language interfaces,
particularly in developing countries. We hope to
promote the development of a Spanish speaking
user group which would share advice and
applications, advise on improving the Spanish
interface and if possible organise training
making use of Spanish speaking Greenstone
specialists. Would you be interested? Could you
explain a bit what you are doing with Greenstone and where you are located?

Thanks and best regards,
John Rose, Honorary Research Associate, University of Waikato

At 22:51 17/12/2007, you wrote:

>Ra□l Barrera wrote:
> > 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
> > <http://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.
> >


John B. Rose
1 Bis, Rue des Ch□tre-Sacs
92310 S□vres
France
Email: <johnrose@alumni.caltech.edu>