Show HTML content in Plugin

15 views
Skip to first unread message

Amr Osama

unread,
Sep 19, 2017, 11:29:38 AM9/19/17
to Jenkins Developers
The file above shows the output for index.jelly folder with this code.

<?xml version="1.0" encoding="utf-8" ?>  
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:html="jelly:html"  xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">  

<!-- Store the test variable as an input type, just to access it in the below Javascript -->  

  
<!-- This is the div we will be using to make it a HTML Object -->  
 <div id= "set"> </div>  
 <script>  
  
function addLoadEvent(){  
/* Get the value stored in the ping */  

/*Getting the div element*/  
var htmlObject = gel('set');  
  
/*setting the div element,  which inturn is a string, until you cast it as a HTML Object*/  
htmlObject.innerHTML = '<h1> yala </h1>';  
  
  
}  
</script>  
</j:jelly>  


1- I want to know how to let .jelly compile html nad script tags as html not as text as shown.

2- is it applicable to link google char script to my index.jelly file to use it to create charts , same for Jquery links.

Thank you.




view.png
Reply all
Reply to author
Forward
0 new messages