Tutorial maxlength to any textarea - Jevents and Joomla
We are looking for developers, forum moderators and translators for this project.
If you would like to help out then please add a message in this forum.
If you would like to help out then please add a message in this forum.
Tutorial maxlength to any textarea - Jevents and Joomla
by rodrigoangelos » Sat Sep 10, 2011 5:20 pm
Hey guys,
Im making this tutorial because i wasted too much time searching this and maybe help someone!
I used a jquery that use css to add a maxlength to textarea. So:
1- First, install the free plugin 'jQuery++ Integrator' to integrate joomla and jquery
To load jquery faster put jquery.js at the root of the site:
1.1- Config embed jquery to: Yes - Local copy
1.2- Config jQuery custom CDN to: /index.php/jquery-1.6.2.js (just an example)
2- Download jquery.maxlength.js (search at google) and put at the root of the site.
3- Between <head> </head> of the index.php of your template use this:
<script type="text/javascript" src="jquery.maxlength.js"></script>
<script>
jQuery(document).ready(function($) {
$().ready(function(){
$("#jevcontent").maxLength(178);
});
});
</script>
3.1- Edit #jevcontent to the css that you want.
3.2- Edit 178 to the maxlength that you want.
3.3- If you want more just add another code like:
$("#example").maxLength(100);
$("#jevcontent").maxLength(178);
4- Good luck! Bye.
Im making this tutorial because i wasted too much time searching this and maybe help someone!
I used a jquery that use css to add a maxlength to textarea. So:
1- First, install the free plugin 'jQuery++ Integrator' to integrate joomla and jquery
To load jquery faster put jquery.js at the root of the site:
1.1- Config embed jquery to: Yes - Local copy
1.2- Config jQuery custom CDN to: /index.php/jquery-1.6.2.js (just an example)
2- Download jquery.maxlength.js (search at google) and put at the root of the site.
3- Between <head> </head> of the index.php of your template use this:
<script type="text/javascript" src="jquery.maxlength.js"></script>
<script>
jQuery(document).ready(function($) {
$().ready(function(){
$("#jevcontent").maxLength(178);
});
});
</script>
3.1- Edit #jevcontent to the css that you want.
3.2- Edit 178 to the maxlength that you want.
3.3- If you want more just add another code like:
$("#example").maxLength(100);
$("#jevcontent").maxLength(178);
4- Good luck! Bye.
- rodrigoangelos
- Posts: 30
- Joined: Fri Aug 26, 2011 7:21 pm
Re: Tutorial maxlength to any textarea - Jevents and Joomla
by Geraint » Mon Sep 12, 2011 9:12 am
Thanks - that is very helpful.
This may also be of interest if using the tinyMCE editor http://www.jevents.net/en/jevents-15-to ... escription
This may also be of interest if using the tinyMCE editor http://www.jevents.net/en/jevents-15-to ... escription
------------
JEvents club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits.
Join the JEvents club today!
JEvents club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits.
Join the JEvents club today!
-

Geraint - Posts: 30529
- Joined: Fri Feb 15, 2008 6:14 pm
2 posts
• Page 1 of 1
Return to Contribute to JEvents
Who is online
Users browsing this forum: No registered users

