Display Html in a .jelly file

19 views
Skip to first unread message

Amr Osama

unread,
Sep 19, 2017, 11:29:38 AM9/19/17
to Jenkins Developers
1-I tried to put this code in index.jelly but it display the page as it is do not consider html or java script i searched a lot and found many examples and none if them even worked all have the same problem, please i need any advice.


2- is it possible to link google charts in my script in .jelly files and also jquery.


code is below


<?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>

Thank You :)  
Reply all
Reply to author
Forward
0 new messages