Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Designing Analytics Reports
Birt Report's Buttons with Mozilla
Migrateduser
Hi All,
I am using Birt 3.7.2,
I am facing one issue in my Birt report. I have created a birt report having button on it. on clicking of button I am calling one java script function. this script is written inside text palette.
This button is working with birt viewer and IE, but while I execute it with birt viewer and Mozilla 18.0 this button is not working, on clicking of that button it is not calling that function. following code I am using.
<script>
function nextData( a ){
var cl = new String(location.href);
var targetURL = new String();
var tst = cl.indexOf("&like");
if( tst == -1 ){
cl = cl + "&like=" + a;
}else{
var ch = cl.indexOf("&like=");
cl = cl.substring(0, ch) + "&like=" + a;
}
window.location = cl;
}
function goData( a ){
var cl = new String(location.href);
a=(document.getElementById('pagenum').value)+a;
var targetURL = new String();
var tst = cl.indexOf("&like");
if( tst == -1 ){
cl = cl + "&like=" + a;
}else{
var ch = cl.indexOf("&like=");
cl = cl.substring(0, ch) + "&like=" + a;
}
window.location = cl;
}
</script>
<input type="button" value="Previous" style="background-color:#A2A8B2;height:20px;width: 65px;font-weight:bold"
onclick="nextData('<VALUE-OF>prev;</VALUE-OF><VALUE-OF>sOutput;</VALUE-OF>')" >
<input type="button" value="Next" style="background-color:#A2A8B2;height:20px;width: 40px;font-weight:bold"
onclick="nextData('<VALUE-OF>next;</VALUE-OF><VALUE-OF>sOutput;</VALUE-OF>')">
<input type="button" value="All" style="background-color:#A2A8B2;height:20px;width: 30px;font-weight:bold"
onclick="nextData('<VALUE-OF>-1;</VALUE-OF><VALUE-OF>sOutput;</VALUE-OF>')" >
Go To page: <input type="text" name="" size="2" id='pagenum' style="height:15px">
<input type="button" value="Go" style="background-color:#18B117;height:20px;width:30px;font-weight:bold" onclick="goData('<VALUE-OF>goVal;</VALUE-OF><VALUE-OF>sOutput;</VALUE-OF>')">
Please help me out...
Thanks
Find more posts tagged with
Comments
There are no comments yet