add script generated HTML code to Ui Page

BerndKlus
Kilo Expert

Hi all,

is it possible to generate HTML code via Client script and use it as HTML?

e.g.

-------------------------------------------------------------------------

HTML:

<?xml version="1.0" encoding="utf-8" ?>  

<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">  

!!Generated code here!!

</j:jelly>

-------------------------------------------------------------------------

Clientscript:

var str;

if (x==y){

        str='some HTML code';

}

else{

        str='a different HTML code';

}

-------------------------------------------------------------------------

The result should be

-------------------------------------------------------------------------

<?xml version="1.0" encoding="utf-8" ?>  

<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">

!!Generated code here!!

some HTML code

</j:jelly>

-------------------------------------------------------------------------

Thank you in advance

Cheers Bernd

5 REPLIES 5

Hi Chris,



I need to go this way, because the HTML output varies.. Unfortunately, I never have a fixed amount of rows ..



Cheers Bernd