[Date Prev][Date Next][Thread Prev] [Thread Next][Date Index] [Thread Index]

Re: Java Script problem


  • From: Gunnar Hjalmarsson  
  • Date: Tue, 29 Jul 2003 23:04:05 +0200

ozdu0001@xxxxxxx wrote:
I am trying to add JavaScript as I did have in my privious
ringlink. Same code but i keep getting this error message...

<snip>

Error!
Unknown template variable in templates/top.html: [1]

Hmm.. Needless to say, I didn't think of JavaScript arrays when deciding on the format for the template variables. The program believes that everything within square brackets are Ringlink template variables, and your problem illustrates that it may not be that simple.


Maybe I should give this problem some deeper consideration. If somebody has some advise, please let me know.

For the time being, the following fix should be sufficient:

This is line 688 in rlmain.pm:

  $output =~ s{\[(.+?)\]}{

I suggest that you change it so that it reads:

  $output =~ s{\[([A-Za-z].+?)\]}{

With that, the first character within square brackets must be an ASCII letter, or else the program won't recognize the string between square brackets as a template variable.

Please let us know if that made it.

/ Gunnar


Follow-Ups from:
Gunnar Hjalmarsson

References to:
ozdu0001

[Date Prev][Date Next][Thread Prev] [Thread Next][Date Index] [Thread Index]