RE: [htdig] Problem with Javascript


Subject: RE: [htdig] Problem with Javascript
From: Keith Vance (keithv@bzln.com)
Date: Tue Apr 25 2000 - 08:50:07 PDT


Gilles,
THANK YOU THANK YOU THANK YOU. That fixed it. I would have never figured
that out, neither would have the people that wrote the script. You are
now my new best friend. Maybe our site will go live on Friday after all.

Thanks,

-----Original Message-----
From: Gilles Detillieux [mailto:grdetil@scrc.umanitoba.ca]
Sent: Tuesday, April 25, 2000 7:13 AM
To: keithv@bzln.com
Cc: htdig@htdig.org
Subject: Re: [htdig] Problem with Javascript

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.

------------------------------------ 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 - 06:38:35 PDT