Sysop: | KK4QBN |
---|---|
Location: | Chatsworth, GA |
Users: | 34 |
Nodes: | 10 (0 / 10) |
Uptime: | 250:22:04 |
Calls: | 1,014 |
Calls today: | 0 |
Files: | 94,829 |
U/L today: |
0 files (0K bytes) |
D/L today: |
24 files (39,886K bytes) |
Messages: | 26,587 |
Posted today: | 0 |
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...
So I adjusted it to this:
if(http_request.virtual_path=="/tiddly/crap.html")
template.leftnav.push({html: '</span>'});
template.leftnav.push({html: '<span class="tlink">Crap</span>'});
But I keep getting a syntax error...
> > if(http_request.virtual_path=="/tiddly/crap.html")
template.leftnav.push({html: '<span class="tlink">Crap</span>'});
I get this error:
!JavaScript c:\sbbs\mods\../web/lib/leftnav_html.ssjs line 102: SyntaxError: unterminated string literal
line 102 is the :
template.leftnav.push({html: '<span class="tlink">