Andy Parker
Posts: 0
Joined: Wed Mar 27, 2013 10:21 am

Passing large string to HTML fails

Hi,

I'm trying to pass a large amount of precoded HTML via strings to the HTML object..

The HTML code is mainly static apart from a central part and the whole thing is probably at least 700 characters in length.

I tried to break it down as follows:

var html1 = "first line of code";
var html2 = "second line of code";
var html3 = "......
.
.
.
var html11 = "last line of code";
var vhtml1="dynamic html code";

then loading the html into the html block as follows:

appery("htmlblock").html(html1+html2+html3+vhtml1+.......html11);

but this fails, I'm guessing due to parsing limits.

Is there a cleaner way of doing this to achieve code that works?

regards

Andy

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Passing large string to HTML fails

Hi Andy,

What is the error and where do you get it?
Please check the braces, probably you missed closing brace somewhere.

Andy Parker
Posts: 0
Joined: Wed Mar 27, 2013 10:21 am

Passing large string to HTML fails

Spot on, last brace was missing. Doh! Many thanks.

Return to “Issues”