on 01-22-2018 7:06 PM
We are using SP05 personas here, But when scripting in personas, we have to write script in one line. Like below:
If we broke above lines in multiple lines – Like below. All the lines will error out.
It is too tedious to write code in one line in personas script editor. Is there any solution out there for this matter?
Hi Nixal.
What I have done in the past is build the string over multiple lines using the "+=" to append each line to the string. It worked well for me.
Kind Regards,
Cristin
var chartHTML = "<html><head>";
chartHTML += "<script type=\"text/javascript\" src=\"https://www.gstatic.com/charts/loader.js\"></script>";
chartHTML += "<script type=\"text/javascript\">";
(and so on...)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can also do something like this.
var tableHTML = "<html> <some code>"+
"<some other code>"+
"</html>";
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.