Using Javascript to Concatenate – A Real State Changer

In this post, I provide an example of how you can change the state of an object based on the changing values of two different variables.

The solution I offer you is to concatenate the variables into a single string that matches the name of your states.

I referenced this in my post on using state changes as navigation and have used this in many projects and so I thought it was time to write up something a little more formal.

I chose to do all the write up within Captivate along with the example – In this case, choosing a male or female avatar.

If you are interested in learning more, the link is below.

https://s3.us-east-2.amazonaws.com/captivateshare/concat/index.html

The post Using Javascript to Concatenate – A Real State Changer appeared first on eLearning.

Read the full story by

Tags:

RELATED READS
How Can You Use Interactive Videos Effectively In eLearning Audio anomalies in HTML5 output
We are updating our Privacy Policy, so please make sure you take a minute to review it. As of May 25, 2018 your continued use of our services will be subject to this new Privacy Policy.
Review Privacy Policy OK