Re: [htdig] Problem with Javascript


Subject: Re: [htdig] Problem with Javascript
From: Gilles Detillieux (grdetil@scrc.umanitoba.ca)
Date: Tue Apr 25 2000 - 07:12:40 PDT


According to Keith Vance:
> The java script works on all the rest of the site,
> just not the htdig result pages. I get this error: "A runtime error has
> ocurred. Do you wish to Debug? Line:60 Error: Expected ')'
>
> Here is my nomatch.html file.
[snip]
> <td valign="middle" height="20"><a href="/contact.html"
> onMouseOver="on('h00'),
> showHideLayers('document.layers[\'zeroMenu\']','document.all[\'zeroMenu\
> ']','show');showHideLayers('document.layers[\'oneMenu\']','document.all[
> \'oneMenu\']','hide');showHideLayers('document.layers[\'twoMenu\']','doc
> ument.all[\'twoMenu\']','hide');showHideLayers('document.layers[\'threeM
> enu\']','document.all[\'threeMenu\']','hide');showHideLayers('document.l
> ayers[\'fourMenu\']','document.all[\'fourMenu\']','hide');showHideLayers
> ('document.layers[\'fiveMenu\']','document.all[\'fiveMenu\']','hide')"
> onMouseOut="off('h00')"><img name="h00" src="/images/phone.gif"
> width="65" height="20" border="0"></a></td>

I think you'll need to double up all the backslashes in these template
files. When htsearch does template variable expansion, it will take any
$var, $(var) or ${var} construction as a template variable reference, and
any \$ or \<any-character> as that character literally. As a result of
this, bare backslashes get swallowed up, so you have to double them up
so that one of them goes through literally.

-- 
Gilles R. Detillieux              E-mail: <grdetil@scrc.umanitoba.ca>
Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/~grdetil
Dept. Physiology, U. of Manitoba  Phone:  (204)789-3766
Winnipeg, MB  R3E 3J7  (Canada)   Fax:    (204)789-3930

------------------------------------ To unsubscribe from the htdig mailing list, send a message to htdig-unsubscribe@htdig.org You will receive a message to confirm this.



This archive was generated by hypermail 2b28 : Tue Apr 25 2000 - 04:58:57 PDT