views:

160

answers:

1
+1  Q: 

Jelly + JavaScript

Hi. I'm working with Hudson plugins. Jelly views are the most complicated thing for me.

So the question is how to use JavaScript code in Jelly scripts?

P.S. "Hello World" script is working good but simple "for" loop brings a lot of problems...

+2  A: 

Not sure if this is what you are expecting but, to reference a javascript file (for example):

<script ... src="${rootURL}/plugin/findbugs/tabview-min.js" />

Regarding the "for" part, I don't get it exactly. Do you mean jelly's forEach?

Pascal Thivent
i mean something like this http://www.w3schools.com/JS/tryit.asp?filename=tryjs_fornext
Olexandr