Subj : Adding links
To   : JahLuv
From : Angus McLeod
Date : Sun Mar 09 2008 10:29 am

 Re: Adding links
 By: JahLuv to All on Sun Mar 09 2008 06:37:00

> in the leftnav.inc & used the example from the webserver doc in the
> leftnav.ssjs
>
> if(http_request.virtual_path=="tiddly/crap.html")
>                     template.leftnav.push({html: '<span class="tlink">
>                         Crap</span>'});
>
> But I keep getting a syntax error...

Any more info as to the specific nature pf the syntax error available?

> So I adjusted it to this:
>
>
>  if(http_request.virtual_path=="/tiddly/crap.html")
>   template.leftnav.push({html: '</span>'});

You just eliminated the opening tag to (and contents of) the SPAN?  What
were yiu trying to achieve?

---
Playing loud: "Do That To Me One More Time" by "Captain & Tenille".
� Synchronet � Where we BAJA Rob into writing our modules.  The ANJO BBS