[pmwiki-users] ccommentboxplus update
marc
gmane at auxbuss.com
Thu Nov 2 14:22:07 CST 2006
Hans said...
> Thursday, November 2, 2006, 3:44:47 PM, marc wrote:
>
> > When you change
> > SDV($NoCommentMessage, '$[Please enter a comment to post]');
> > to
> > SDV($NoCommentMessage, 'Please enter a comment to post');
> > then the $[] disappear - no big surprise after it's been removed.
>
> It seems that the XL function does not do the conversion in your case,
> or does not work at all when the script runs.
It works everywhere else. Including on the Post and Reset button on the
same screen!
> >> onsubmit='return checkform(this);'
> >>
> >> But we can't generically allow javascript being added to a form input
> >> markup directive. Which leaves the formcheck being done only with
> >> (:commentbox:) markup. And the cboxcheck markup can be scrapped.
> >
> > Well, I find it useful. I don't use your form - I override it thus:
> >
> > include_once("$FarmD/cookbook/commentboxplus.tmpl");
> > include_once("$FarmD/cookbook/commentboxplus.php");
> >
> > where the .tmpl defines $CommentBoxFmt.
>
> Oh so you put "onsubmit='return checkform(this);'" into your custom
> format
Yes, it's in there.
> and not into a form constructed with (:input ...:) directives.
No.
> You don't use (:cboxcheck:) then?
Yes, I do. It outputs the JS function checkform()
In my page footer I have
(:if auth edit:)
(:cboxcheck:)
(:commentboxchrono:)
(:if:)
So, I do use it.
--
Best,
Marc
More information about the pmwiki-users
mailing list