Demonstrates the
onDone client-side callback, which fires after mark.js completes marking. The callback receives the total number of matches as a parameter.
Compare with the
Update Search example:
update search uses a server-side
p:ajax event="mark" listener that receives full match data (matched terms and positions) via a server round-trip, while this
done callback is purely client-side using the
onDone attribute with no Ajax request and receives only the total match count.