You have to make sure that the div for the pagelist no longer has
style="display: none;" in it's properties.

I seem to remember this being an issue that I ran into on the
tutorial.  The div is being populated, but the browser is still hiding
it from you.

Alternatively you could add:

showElement('pagelist');

to the end of your javascript 'refreshPageList' function. :)

On 26/10/05, elake <[EMAIL PROTECTED]> wrote:
>
> I have completed the complete tutorial now with only one problem. The
> last section on getting the MochiKit and json stuff to do the drop down
> of the page list does not work. I get the following in the console.
>
> 127.0.0.1 - - [2005/10/26 12:11:18] "GET /favicon.ico HTTP/1.1" 500
> 3037
> 2005/10/26 12:11:41 HTTP INFO 127.0.0.1 - GET / HTTP/1.1
> setting default site
> 2005-10-26 12:11:42,223 turbogears.view DEBUG Recompiling template for
> wiki20.templates.page
> 2005-10-26 12:11:42,252 turbogears.view DEBUG Applying template
> wiki20.templates.page
> 127.0.0.1 - - [2005/10/26 12:11:42] "GET / HTTP/1.1" 200 1385
> 2005/10/26 12:11:42 HTTP INFO 127.0.0.1 - GET /tg_js/MochiKit.js
> HTTP/1.1
> 127.0.0.1 - - [2005/10/26 12:11:42] "GET /tg_js/MochiKit.js HTTP/1.1"
> 304 -
> 2005/10/26 12:11:43 HTTP INFO 127.0.0.1 - GET /favicon.ico HTTP/1.1
> 127.0.0.1 - - [2005/10/26 12:11:43] "GET /favicon.ico HTTP/1.1" 302 203
> 2005/10/26 12:11:43 HTTP INFO 127.0.0.1 - GET
> /notfound?pagename=favicon.ico HTTP/1.1
> 2005-10-26 12:11:43,633 turbogears.view DEBUG Recompiling template for
> wiki20.templates.edit
> 2005-10-26 12:11:43,663 turbogears.view DEBUG Applying template
> wiki20.templates.edit
> 127.0.0.1 - - [2005/10/26 12:11:43] "GET /notfound?pagename=favicon.ico
> HTTP/1.1" 200 1413
> 2005/10/26 12:11:45 HTTP INFO 127.0.0.1 - GET /pagelist?tg_format=json
> HTTP/1.1
> 2005-10-26 12:11:45,365 turbogears.controllers DEBUG Returning JSON
> 127.0.0.1 - - [2005/10/26 12:11:45] "GET /pagelist?tg_format=json
> HTTP/1.1" 200 81
>
> Any ideas what I have done wrong?
>
>

Reply via email to