1
Kuehnhackel
xForms
  • 2013/12/13 8:29

  • Kuehnhackel

  • Just popping in

  • Posts: 7

  • Since: 2013/12/13


Hi all,

I love this Module. I need it very often in my newest project. Now I have the question is it possible to count the charactors in a text box, when you tell the maximum lenght and count down?

I want to have it like you write a SMS at your Handy. That would be very helpfully for me.

Sorry for my bad English!

BR from Hamburg Germany

2
Mamba
Re: xForms
  • 2013/12/14 5:34

  • Mamba

  • Moderator

  • Posts: 11256

  • Since: 2004/4/23


You can try to use one of the jQuery plugins:

http://www.jquery4u.com/plugins/10-jq ... wordtext-counter-plugins/
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

3
Kuehnhackel
Re: xForms
  • 2013/12/14 11:26

  • Kuehnhackel

  • Just popping in

  • Posts: 7

  • Since: 2013/12/13


Dear Mamba,
sorry but this is nothing for me

I could put this in to a normal html-document but nothing else.

I try to duplicate a text area in the xforms/admin and play with all this things but nothing take function! So I need a little help please, if somebody are interested in helping those things.

The best solutions for me, maybe other also, to create a new text area and put in one of the examples like here:
http://www.jqeasy.com/jquery-character-counter/demo/

Thank you ...


4
Kuehnhackel
Re: xForms
  • 2013/12/16 20:05

  • Kuehnhackel

  • Just popping in

  • Posts: 7

  • Since: 2013/12/13


Is anybody there to answer my question?

I´m very disappointed about the reaction here!

Only 2 more answers since my last message.

I think xoops will be die, when there is nobody who answer questions from users.

Also the same in Germany, I´m thinking about another CMS instead of Xoops with a good and fast community where user helps user.

@Mamba: I read your discussion with alfred vom simple-xoops, and when I thinking about it will better to do it like alfred. A small nice fork of xoops.

I also try another fork, ?????, but there is the same, only Sato-San is active.

So I will look around and searching for a another CMS.


5
Bleekk
Re: xForms
  • 2013/12/16 22:28

  • Bleekk

  • Theme Designer

  • Posts: 940

  • Since: 2002/12/14


Hi,

Es kann nicht immer gleich jeder zur Stelle sein der dir hilft. Wir tun das alles hier in unserer Freizeit und natürlich mit begrenzten Fähigkeiten.

Please do following to add a counter / limiter to a xform txtarea

1. Download and unzip following http://www.jqeasy.com/jquery-character-counter/
2. Copy following file to your theme folder: jquery.jqEasyCharCounter.js
3. Open on your website the xform module and check the id of your textarea. In my form is it "ele_19"
<textarea name="ele_19" id="ele_19" title="Jquery Limit" rows="5" cols="35"></textarea>

4. Open your theme.html
after
<{$xoops_module_header}>
add following
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
    <
script src="<{xoImgUrl}>jquery.jqEasyCharCounter.js" type="text/javascript"></script>
    <
script>
        $(
document).ready(function(){
            $(
'#ele_19').jqEasyCounter({
                
'maxChars'75,
                
'maxCharsWarning'70
            
});
        });
    </
script>

you do not need to include jquery if you have already loadid it in the theme. change the jquery function to set your limit

Resized Image

have fun

6
Kuehnhackel
Re: xForms
  • 2013/12/16 23:19

  • Kuehnhackel

  • Just popping in

  • Posts: 7

  • Since: 2013/12/13


Super vielen Dank ... das ist ja super

Thank you very much for fast solution ... I´m very happy now.

I must check now if it possible to do it for more than one text_area, because I have different forms.
But this is a veryy good start.

Thank you again.

BR vom Hamburg/Germany

Ralf

7
Bleekk
Re: xForms
  • 2013/12/17 9:04

  • Bleekk

  • Theme Designer

  • Posts: 940

  • Since: 2002/12/14


you are welcome.

yes it is possible because all form fields have different ids

8
Mamba
Re: xForms
  • 2013/12/17 12:40

  • Mamba

  • Moderator

  • Posts: 11256

  • Since: 2004/4/23


Quote:
I´m very disappointed about the reaction here!
Only 2 more answers since my last message.
I think xoops will be die, when there is nobody who answer questions from users.

I am sorry to hear that you're disappointed. I did try to help you, and point you in the right direction.

What you seem to miss is that we are here volunteers, i.e. we can help in our free time when we have it, but we also have families, work, and because Christmas is around the corner, also vacation.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

Login

Who's Online

63 user(s) are online (35 user(s) are browsing Support Forums)


Members: 0


Guests: 63


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Aug 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits