Print concatenated text in arabic using javascript
Aug 06, 2020
Hello guys,
I am trying to run a javascrip that worked for English strings, but when replacing the sentences in Arabic, I got nothing, blank page! Any advice?
var player=GetPlayer();
var strengths=player.GetVar("strengths_entry");
var weaknesses=player.GetVar("weaknesses_entry");
var opportunities=player.GetVar("opportunities_entry");
var threats=player.GetVar("threats_entry");
var actionplan="<h2>تحليلي لنقاط الضعف والفرص والأخطار الشخصية</h2>";
actionplan += "<h3>نقاط القوة</h3>";
actionplan += "<p style='line-height:1.5em'>"+strengths+"</p>";
actionplan += "<h3>نقاط الضعف</h3>";
actionplan += "<p style='line-height:1.5em'>"+weaknesses+"</p>";
actionplan += "<h3>Opportunities</h3>";
actionplan += "<p style='line-height:1.5em'>"+opportunities+"</p>";
actionplan += "<h3>الأخطار</h3>";
actionplan += "<p style='line-height:1.5em'>"+threats+"</p>";
player.SetVar("concatenate_brainstorm",actionplan);
1 Reply
Hi S.C, is it possible there is another error. i ran a very simple test using the script you have provided and just adding some placeholder text for the variable you've defined and the content displayed in the browser fine.
This discussion is closed. You can start a new discussion or contact Articulate Support.