The plugins site is currently in development.
We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and a major error on our part forced us to shut down the current site before we could put the new one in place. We are developing a new site, and you can follow along with its development on GitHub. For more information about this transition, including steps you can take as a plugin author to prepare, please read our post about what's going on.
change value attribute for input elements and configurable dot/at strings
| Project: | No Spam |
| Version: | 1.3 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Hi Mike,
I have enhanced your plug-in two ways to meet my requirements.
a) change value attribute for input elements for use in e.g.:
<script type="text/javascript">
/* <![CDATA[ */
$(document).ready(function() {
$("input.email").nospam({
filterLevel: "low"
});
});
/* ]]> */
</script>
<input name="email" type="hidden" value="foo//example/com" class="email" />b) dot/at strings can be configured. e.g.:
<script type="text/javascript">
/* <![CDATA[ */
$(document).ready(function() {
$("span.email").nospam({
filterLevel: "low",
dotString: "\\s+\\[dot]\\s+",
atString: "\\s+\\[at]\\s+"
});
});
/* ]]> */
</script>
<span class="email">foo [at] example [dot] com</span>Maybe you or others like these enhancements.
Regards,
Carsten
| Attachment | Size |
|---|---|
| jquery.nospam.js_.diff_.txt | 1.91 KB |
- Login to post comments
