on 06-26-2015 5:22 PM
I have done a little reading and I understand that using Script Item I can add my own JavaScript code to enhance my web template. In order to use document.getElementById command I need to use <span id="myID"> to encapsulate the item that I want to interact with.
However, I don't seem to get this working.
Please can you help me write a JavaScript function that changes the height of a chart item when I click on it?
I have tried encapsulating my chart item in the span tag and then using document.getElementbyID("myChart").height = "200", but that didn't work.
I have then tried encapsulating the height property of chart item with a span tag and used document.getElementbyID("myHeight").value = "200", but that didn't work either.
How do I plug in to properties of my chart item using JavaScript?
Many thanks,
Agata
Hi,
You can search in this SCN forum regarding how to write Java script code as per your requirement.
You will lot of information by using which you can successfully get the result you want.
Regards,
Amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.