Hi,

I've been following the 20 minute Wiki tutorial and everything has gone
OK (except for a couple of problems I found with the format of the
std.url() functions in some of the code blocks) so far.

I have just completed the AJAX/JSON part of the tutorial, but I cannot
get the JavaScript code for the "View the complete list of pages
<http://localhost:8080/#>" section to work.

In my Firefox Javascript console, I am seeing the following message:

Error: unterminated regular expression literal
Source File: http://localhost:8080/
Line: 22, Column: 36
Source Code:
       return LI(null, A({"href" : / + pagename}, pagename))

Here is the section of code I think it's struggling with in my
master.kid file:

function row_display(pagename) {
   return LI(null, A({"href" : "${std.url('/')}" + pagename}, pagename))
}

I have also had a look at the version of master.kid from the wiki20.tgz
file at the end of the tutuorial, and that has the function written like
this:

function row_display(pagename) {
   return LI(null, A({"href": "/" + pagename}, pagename));
}

But even if I try that, I'm still getting the same error. I have also
tried viewing the Wiki through another browser (Epiphany), but still
don't get the complete page list to work.

Does anyone have any ideas on where I might have gone wrong (I have very
little experience of Javascript)?

Thanks in advance for any help anyone can give.

Tim

Reply via email to