Carry on others ! ( non JavaScript likers ?)

chenna at embl-heidelberg.de chenna at embl-heidelberg.de
Fri Apr 3 04:49:15 EST 1998


Let us do it!


Add the following function  to wgetz.c

static void PageSelectLibrary();

static void PageSelectLibrary()
{

  if (ParGetBool("isJava") ) {
    PageSelectLibrary_Java();
  }
  else {
    PageSelectLibrary_NoJava();
  }
}


Rename

   PageSelectLibraryOld()  to
     PageSelectLibrary_NoJava()

and

 PageSelectLibrary() to
   PageSelectLibrary_Java()



Add the following to   icarus/util/parameter.i

     $parameter:["isJava" type:bool num:0
      comment:"Supports for JavaScript "]


Add the following  to   icarus/util/arglist.i

   $arg:[name:"-java"  parameter:"isJava"]



add the following in the srswww.i   under section

$selectLibraryActive=  ,   somewhere

    |<NOSCRIPT>
    |<IMG SRC=/srs5/images/achtung.gif ALIGN=middle>
    |<H2>SRS requires a javascript enabled browser</H2>
    |<I> Enable javascript option in the preferences menu of your browser </I>
    |<P>
    | <A HREF=($ParStr:cgidir)/wgetz?-start> Restart without javaScript </A>
    |</NOSCRIPT>


do a   srssection  and
srsmake wgetz

Now it is ready, you can use javaScript functionality with

wgetz+-start+-java


Now the default is no Java !


Cheers !


Ramu

_______________________________________________________________
Chenna Ramu; EMBL; Postfach 10.2209; 69012 Heidelberg; Germany.
Email: chenna at embl-heidelberg.de
   Url: http://www.embl-heidelberg.de/~chenna/
   Tel: (49) 6221 387530 (Off) ; Fax: (49) 6221 387517
______

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/   Now offering spam-free web-based newsreading




More information about the Bio-srs mailing list