Right-o:
Very annoying problem. I have had a problem where I use Ditto to call a series of documents, and I’m using a template to drive the output. The template then calls a chunk which uses Jot for comments.
Here’s the Ditto call:
[!Ditto? &tpl=`LatestNews` &display=`6` &parents=`75,40,41` &showPublishedOnly=`1` &hideFolders=`1` &depth=`2` &extenders=`summary` &truncLen=`800` &tplTrunc=`ReadMoreTpl`!]
Here’s the template LatestNews:
<div class="nl_summaryPost">
<h2>[+longtitle+]</h2>
[+summary+]
<p style="clear:both"> </p>
<p>[+link+]</p>
{{BlogComments}}
<div class="whereitis">published on: [+whereitis+]</div>
</div>
and here is the chunk BlogComments:
<div id="ShowHideComments"><a class="togglecomments" href="javascript:;" onclick="new Effect.toggle('PostComment_[+id+]','blind');">Leave and read comments ([[Jot? &docid=`[+id+]` &action=`count-comments`]]) </a></div>
<div id="PostComment_[+id+]" style="display:none">[[Jot? &docid=`[+id+]` &captcha=`1` &canmoderate=`Site Admins`]]</div>
Now, as you can see, the Ditto call is called uncached, and the Chunk that calls Jot is cached. The pages that are referred to in the Jot call are all set to be uncached. Of course, I have to do this or else I get code output instead of the proper Jot call, since it’s basically a snippet calling a snippet. I wish this would get fixed- but I know that this is a PHx issue.
Anyways, what’s happening is every time I try and add a comment with Jot using captcha (which I have to do, because this site gets a ton of spam comment posts if I don’t!), I get that lovely error message "The security code you entered was incorrect." This happens in both IE7 and firefox.
But what is REALLY weird- this doesn’t happen in Opera! It always posts the comment!
I know I’m using scriptaculous, but it doesn’t seem to be an issue in Opera, either.
I just did an upgrade to 9601p2 to just see- that didn’t fix anything, and this same problem was there with Jot 1.1.2
I’d love some insight as to what is going on here... help!