Captivate 9, Responsive project, JavaScript Alert window
Hello Friends,
I am using Captivate 9 to create a responsive project. My plan was to use Alert boxes to convey information to the user. I created a simple java script file and included it in the assets/js folder:
var ASBtest = function (name)
{
this.name = name;
alert(this.name + 'Created');
};
ASBtest.prototype.sayHello = function()
{
alert("Hello, I'm " + this.name);
};
I changed the index.html file to include the JavaScript folder.
In my Captivate project I have the following execute on a button click:
var mytest = new ASBtest('Billy');
mytest.sayHello();
I should see two alert windows: one when the instance is created, and then again when the method is invoked. I only see the last one in the invoked method. Why do I not get the first?
Sincerely,
Peter