I created a new snippet, named it debugTool, pasted your code in.
Then I created a new document, assigned it the "minimal" template, put [[debugTool]] in the content.
When I display this page it is blank. When I view source I see the template code in the page, but nothing inserted by the snippet.
Any idea what could be wrong? Could it be that Scriptaculous is not being found?
Soda,
This snippet seems to be nonfunctional on a standard MODx 0.9.2.1 install. First, it reports a parse error on line 35 (not the problem). I tracked it down to when your count and display the $modx->documentObject. When I removed the offending lines the snippet ran but only displayed the "green text". In FF and Safari on the Mac when logged into the manager (and thus QuickEdit autoadding the prototype and scriptaculous links to the frontend) the script.aculo.us would not run. I tried rewriting that for a good half hour before stopping. Upon removing all of the display:none occurances in the snippet finally worked.
Thanks you, for your reply,
Humm I tested it on Explorer, Opera, and FF under windows and it work well.
The goal is to not have a long page, so if you remove the display none, it is not reached.
I made lot of update these days, the current version is 0.5
I can try to make a non-scriptaculous version, or have you an other idea ?
Quote from: Soda at Aug 30, 2006, 02:38 AM
...I can try to make a non-scriptaculous version, or have you an other idea ?
Personnally I always try to walk before trying to run... less is more you know.
A thing of beauty is a joy forever ( John Keats)
Mark can you check the <base href > tag ? in the source of the displayed page please ?