Store what the program is trimming in local variables, log those variables
and their types to console, and work around them.

Cheers,

On Mon, 18 Sep 2017 at 17:16, K S <singh.kri...@gmail.com> wrote:

> I am getting Object does not support property or method  trim()
>  javascript error . Is there a workaround to this error in cas.js . the
> code is below .
>
> function disableEmptyInputFormSubmission() {
>
>     $('#fm1 input[name="username"],[name="password"]').on("input", function 
> (event) {
>         var enableSubmission = $('#fm1 input[name="username"]').val().trim() 
> &&
>                                $('#fm1 input[name="password"]').val().trim();
>
>         if (enableSubmission) {
>             $("#fm1 input[name=submit]").removeAttr('disabled');
>             event.stopPropagation();
>         } else {
>             $("#fm1 input[name=submit]").attr('disabled', 'true');
>         }
>     });
>
> --
> - Website: https://apereo.github.io/cas
> - Gitter Chatroom: https://gitter.im/apereo/cas
> - List Guidelines: https://goo.gl/1VRrw7
> - Contributions: https://goo.gl/mh7qDG
> ---
> You received this message because you are subscribed to the Google Groups
> "CAS Community" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to cas-user+unsubscr...@apereo.org.
> To view this discussion on the web visit
> https://groups.google.com/a/apereo.org/d/msgid/cas-user/e96c32d0-54b4-48de-8903-0e8ebcfed924%40apereo.org
> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/e96c32d0-54b4-48de-8903-0e8ebcfed924%40apereo.org?utm_medium=email&utm_source=footer>
> .
>
-- 
Uxío Prego



Madiva Soluciones
CL / SERRANO GALVACHE 56
BLOQUE ABEDUL PLANTA 4
28033 MADRID
+34 917 56 84 94
www.madiva.com
www.bbva.com

The activity of email inboxes can be systematically tracked by colleagues,
business partners and third parties. Turn off automatic loading of images
to hamper it.

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cas-user+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/CANidDKZbnvqoMShHuUchjeJjKNxAjwyBRYmrBy%2BD9vKJVh%2ByvA%40mail.gmail.com.

Reply via email to