[dokuwiki] Re: Need JS help with summary enforcement

  • From: "Joe Lapp" <joe.lapp@xxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Thu, 11 May 2006 15:20:43 -0500 (CDT)

Thanks Andi.  But your mods (mostly) fixed Opera and broke all the other 
browsers.

I do use Firefox to monitor for JS errors: nichts.

Interestingly, Opera only works if I do the addInitEvent() in my main.php() 
after js.php loads.  If I put it in my template's script.js, the minute I type 
into the summary field, it breaks, and from then on only summaryCheck() is 
called (and not my enforceSummary()).  However, my checkbox handlers continue 
to function.

However, when I changed this code in edit.js's initChangeCheck()...

    summary.onchange = summaryCheck;
    summary.onkeyup  = summaryCheck;

... so that it uses addEvent(), now Opera works perfectly even with 
addInitEvent() in my template's script.  Safari and Firefox still do not work.

So far, Firefox is the only browser not to show any life on the matter, 
possibly because it's not recognizing input.disabled.  I even had IE6 working 
prior to using the addEvent() and addInitEvent() methods.

Any other suggestions?  (Oh, I did de-lintify my JS, didn't change anything 
though.)  Thanks!

~joe
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: