XpressUtils - Helping Sun Identity Management Professionals
   
 
Utilities
Tech Talk
Tip of the day
You can add attachments to emails sent out by IDM. Refer to the article specifically guiding on how to accomplish this.

Current Poll
Which product (arranged below in alphabetical order), do you think has the best features in the 'Identity & Access Management' space today?

CA IDM
IBM Tivoli
Novell IDM
Oracle (Sun) IDM
Others (please specify)

Comments:

View previous poll results

Articles / Forum - Facing an issue with enabling or disabling button dynamically

Thank you for taking the initiative to make this article better!
Please feel free to add value to this page, support your modifications with files if you wish, and click Save when you're done. Share, wiki and grow!

Note: Please be aware and responsible about the content you post in this article. Inappropriate content wlll be moderated.
View all Articles

facing an issue with enabling/disabling button dynamically Posted by v.s.anjan kumar
on Jul 11, 09:06 AM
Rate this article
1 of 52 of 53 of 54 of 55 of 5
<< Back to view article
Your name: required
Your email: required   Notify me about updates to this article.
Your designation:
 
Article Title: Change it
We have made it easy for you to reply on a forum-question.
Simply write your response below, and we will compile it in the form of a thread!
 
Upload new file: Note: Only files each upto 1 MB may be uploaded

 

facing an issue with enabling/disabling button dynamically Posted by v.s.anjan kumar
on Jul 11, 09:06 AM
 

I am adding the capability of dynamically validating password policies(showing appropriate images) and displaying

a password strength meter as the user is typing a password in the new password field by incorporating HTML/Javascript

code in the form.

my problem is that i want to keep the "change password" button disabled as long as the pwd strength is 'Too Short'

or 'Weak' or 'Medium' and enable it only when the strength is 'Strongest'. this should happen dynamically as the user

is typing the pwd as the validation also happens dynamically using a Javascript field in the form

 

i can enable or disable the button based on the strength but need to refresh the page by unchecking the resource for

which changing the password.  the code for the button 'Change Password' is as below

<Field name=':variables.formButton' button='true'>
  <Display class='Button'>
    <Property name='onClick' value='setPassValue();'/>
    <Property name='label' value='UI_USERFORM_COMMON_PWDSYNC58'/>
    <Property name='value' value='Change Password'/>
  </Display>
  <Disable>
    <lt>
      <ref>pwdscore</ref>
      <i>3</i>
    </lt>
  </Disable>
</Field>

setPassValue() method is used to assign the password value in the javascript to validate pwd to a field in the userform

please advise

 

 


Your Ad Here

facing an issue with enabling/disabling button dynamically Posted by nimish
on Jul 19, 07:02 AM
   

For selecting the resource u might be using multiselect Field. To refresh the page on deselecting or selecting the resource you have to add action='true' on Field tag. Thanks

Your Ad Here

Facing an issue with enabling or disabling button dynamically Posted by Adi
on Jul 20, 11:38 PM
   
This is an interesting question. Thanks for bringing this up!

You might want to look into using javascript function-pointers to provide the client-side check. The entered password could be checked real-time (as the user types it) and a password-strength-meter could be a DHTML block that presents the feedback dynamically.

Check out this article that has been recently published on this topic: Javascript function pointers in IDM.
 

The views expressed in this article are solely those of its contributor(s) and are not necessarily endorsed by xpressutils.com. << Back to view article


Feedback

Feedback / Comments:

We value comments from XpressUtils users! We strive to make this site better for you each day, so all constructive comments are appreciated.
Please feel free to send us your feedback!
 
From: Achin Aug 30, 07:48 AM
Comment Hi, team i want to know how to add uid to LDAP groups. if any body knows please help
From: mike Aug 25, 09:08 AM
Comment Can you give an example to use this rule? What does it mean "The trick to achieve this is use the "P ...
From: ajay nalawade Jul 29, 08:43 AM
Comment i want information about how to call java from expree boolean isConnectionSuccessful=connectDB.co ...
From: Carrie Cain Jul 24, 05:22 AM
Comment Want more clients and customers? We will help them find you by putting you on the 1st page of Google ...
From: nimish Jul 20, 12:53 AM
Comment In Handy Tools, Test Regular Expressions is not working. anybody used it?
From: nimish Jul 13, 02:18 AM
Comment hi team, I have some problem related to configure openSSO. Can I ask you for this or should I go to ...
From: Anirudha Jul 13, 01:41 AM
Comment Wish you all the best...
From: hussain Jun 05, 06:59 AM
Comment Could u please provide an ebook for Sun Certified Integrator for Identity Manager 7.1
From: docsnyder May 07, 05:52 AM
Comment Hi! I have downloaded the rule tester JSP file and followed the instructions, but the following err ...
From: jagadisham Mar 21, 12:48 PM
Comment day by day it is improving...all the best!!!
View all comments >>

Submit a comment:

Name: required
E-mail: required
Comments: required
Submit Comments
Tip: If you have a question related to programming in Xpress or some functionality in IDM, please post it as a new article in the Articles section.

It's quick, easy and does not require you to sign-up too!
 
    Home | Terms of use | Contact us | Help    
  Copyright © 2008-2009 XpressUtils.com. All rights reserved.