Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Script Problem
vishalkp
Hello All,
I am facing a problem while using this script.
when i run this report, i get alert for imageid and str, but i am not able to get "elem" and the function exits without showing the alert for "elem"
I am using BIRT 2.3.2 All in One.
alert(imageID);
var str;
str=imageID;
alert(str);
var elem1 = document.getElementById('container').innerHTML;
var elem = document.getElementById(imageID).value;
alert(elem);
elem.style.display = 'none';
alert("Func Exit");
I think I am not able to get this document.getElementById working, or is there some other reason.
when i tried this in Actuate 10 demo edition, its working fine.
Please reply your suggestion.
Thanks in Advance...
With regards,
Vishal KP.
Find more posts tagged with
Comments
johnw
Try it without the .value, and test for null.
Is this script being executed in a text element, or a chart?
vishalkp
Hello All,
I got the problem solved.
I removed the following statement:
var elem1 = document.getElementById('container').innerHTML;
& it is working fine.
And also as per John's comment i also removed .value from the below statement:
var elem = document.getElementById(imageID).value;
Thanks all & John,
With Regards,
Vishal KP.