To: Deuce
Re: template.ssjs By: Deuce to Chronos on Fri Mar 04 2005 07:18 pm
Then you would want the first example. ie: in nescafe.ssjs,
you would set the value of template.rom to whateve wanted...
then in nescafe.inc, use @@rom@@ You'd probobly also wan template.romname or something to use @@romname@@ it: <a href="someurl?rom=%%rom%%">Play @@romname@@</a>
Ok, I have tried it and it works for that one only. I am trying to get multi games to do the same thing. I have a script that is in a .inc file that is loaded before everything in nescafe.ssjs. All it does is find the variable passed after the ? in the url, and creates a variable. even though it displa the value using the document.write in either both inc files I am using, I cannot make the template.rom file in nescafe.ssjs. Is there a way to be able configure the template.rom in the inc file? Or is there a way to pass it bac to the ssjs file after it creates the variable in the inc file?
To: Deuce
Re: template.ssjs By: Deuce to Chronos on Tue Mar 08 2005 12:42:00
Oh! So you want something like:
template.rom=http_request.query.rom[0]; before you display the
template.
With that, when you call nescafe.ssjs?rom=blahblah.zip %%rom%% would be blahblah.zip
:-) *DON'T* get a job writing documentation, OK?
--- * Synchronet * Synchronet Track-and-field: Discus event at The
ANJO BBS
--- Synchronet 3.12b-Win32 NewsLink 1.81
* Vertrauen - Anaheim Hills, California - telnet://vert.synchro.net
--- Synchronet 3.12a-Win32 NewsLink 1.76
Sysop: | MCMLXXIX |
---|---|
Location: | Prospect, CT |
Users: | 325 |
Nodes: | 10 (0 / 10) |
Uptime: | 12:18:37 |
Calls: | 510 |
Messages: | 220575 |