add script generated HTML code to Ui Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2017 07:58 AM
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
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2017 12:10 AM
Hi Chris,
I need to go this way, because the HTML output varies.. Unfortunately, I never have a fixed amount of rows ..
Cheers Bernd