Hello,
I am using Chronoforms V4 RC3.0 and Joomla 2.5.
I just ordered the Chronoforms 3.1 Book but the two versions are different and I am having a hard time figuring this out.
I found this code
window.addEvent('load', function() {
// execute the check after each keystroke
$('text_0').addEvent('keyup', function() {
// set the maximum number of characters
max_chars = 300;
// get the current value of the input field
current_value = $('text_0').value;
// get current character count
current_length = current_value.length;
// calculate remaining chars
remaining_chars = max_chars - current_length;
// show the remaining characters
$('counter').innerHTML = remaining_chars;
});
});
which I placed in the On Load, Load JS area.
What do I need to place in the form code that and also block more characters?
Thanks, Chuck
I am using Chronoforms V4 RC3.0 and Joomla 2.5.
I just ordered the Chronoforms 3.1 Book but the two versions are different and I am having a hard time figuring this out.
I found this code
window.addEvent('load', function() {
// execute the check after each keystroke
$('text_0').addEvent('keyup', function() {
// set the maximum number of characters
max_chars = 300;
// get the current value of the input field
current_value = $('text_0').value;
// get current character count
current_length = current_value.length;
// calculate remaining chars
remaining_chars = max_chars - current_length;
// show the remaining characters
$('counter').innerHTML = remaining_chars;
});
});
which I placed in the On Load, Load JS area.
What do I need to place in the form code that and also block more characters?
Thanks, Chuck
Hi,
Yes, the book is for the V3 versions, this is noted on the frontpage below the book link.
Try to change "load" to "domready", try to search the forums and faqs pages, they cover lots of stuff.
Regards,
Max
Yes, the book is for the V3 versions, this is noted on the frontpage below the book link.
Try to change "load" to "domready", try to search the forums and faqs pages, they cover lots of stuff.
Regards,
Max
Hi There,
I realize the book is for V3. I have a lot of website using that version. I ordered the book to try and learn some advance form programming. It has been referenced in forum posts that some of the recipes will work in V4.
I have search the forums for anything related to text counter and the faq's with no luck. So then I decided to create this post. I am struggling to learn and am not a PHP programmer
There is a urgent timeliness to this project. Do you have anyone that you can recommend for hire?
Thanks for the quick reply,
Chuck
I realize the book is for V3. I have a lot of website using that version. I ordered the book to try and learn some advance form programming. It has been referenced in forum posts that some of the recipes will work in V4.
I have search the forums for anything related to text counter and the faq's with no luck. So then I decided to create this post. I am struggling to learn and am not a PHP programmer
There is a urgent timeliness to this project. Do you have anyone that you can recommend for hire?
Thanks for the quick reply,
Chuck
Hi Chuck,
The code in the book should work, please feel free to send me a link to the form with the code here or though the "Contact Us" page and I will try to debug it.
You may also check the code here:
http://stackoverflow.com/questions/4575150/textarea-character-limit-by-javascript-php
Regards,
Max
The code in the book should work, please feel free to send me a link to the form with the code here or though the "Contact Us" page and I will try to debug it.
You may also check the code here:
http://stackoverflow.com/questions/4575150/textarea-character-limit-by-javascript-php
Regards,
Max
This topic is locked and no more replies can be posted.