Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6031979
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T05:15:57+00:00 2026-05-23T05:15:57+00:00

The webpage works fine in Mozilla Firefox, but the same page when tried to

  • 0

The webpage works fine in Mozilla Firefox, but the same page when tried to access through IE8 throws the following error:

Webpage error details

User Agent: Mozilla/4.0 (compatible;
MSIE 8.0; Windows NT 5.1; Trident/4.0;
msn OptimizedIE8;ENIN) Timestamp: Mon,
20 Jun 2011 05:20:13 UTC

Message: Invalid argument. Line: 122
Char: 3 Code: 0

How to solve this??

function doBatchPrintPaySlipPentaho(form)
{

    var list = '';
    if(form.employeeIdList == null)
    {
        alert("No record for Batch Printing");
        return false;
    }
    if(form.employeeIdList.checked==false)
    {
        alert("Select one Employee");
        return false;
    }
    if(form.employeeIdList.checked == true)
    {
        list = "|" + form.employeeIdList.value;

    }
    else
    {
        var count=0;
        for(var i=0;i<form.employeeIdList.length;i++)
        {
            if(form.employeeIdList[i].checked == true)
            {
                count++;
                list += "|"+form.employeeIdList[i].value;
            }

        }
        if(count == 0)
        {
            alert("Select atleast one record");
            return false;
        }
    }


    ////////////////////////////////////////
    var branchIdsTemp="";
    var employeeIdsTemp="";



    if(form.employeeIdList == null)
    {
        alert("No record for Batch Printing");
        return false;
    }
    if(form.employeeIdList.checked==false)
    {
        alert("Select one Employee");
        return false;
    }
    if(form.employeeIdList.checked == true)
    {
        list = "|" + form.employeeIdList.value;

    }
    else
    {
        var count=0;
        for(var i=0;i<form.employeeIdList.length;i++)
        {
            var xyz="";
            if(form.employeeIdList[i].checked == true)
            {
                count++;
                list += "|"+form.employeeIdList[i].value;
                xyz=form.employeeIdList[i].value.split("*");
                employeeIdsTemp=employeeIdsTemp+"&employee="+xyz[0];

            }

        }

        if(count == 0)
        {
            alert("Select atleast one record");
            return false;
        }
    }

    if(document.PaySlipGeneration.branch.value!='x')
    {
        branchIdsTemp="&branchId="+document.PaySlipGeneration.branch.value;
    }
    else
    {
        var allIds=document.PaySlipGeneration.allBranchIds.value.split("*");
        for(var z=0;z<allIds.length-1;z++)
        {
            branchIdsTemp=branchIdsTemp+"&branchId="+allIds[z];
        }
        //alert("branchIdsTemp : "+branchIdsTemp);
    }
    //return false;
    var tempFromDate="";
    var tempToDate="";
    var temp4=document.PaySlipGeneration.fromDate.value.split(".");
        tempFromDate=temp4[2].whiteSpaceTrimmer()+"-"+temp4[1].whiteSpaceTrimmer()+"-"+temp4[0].whiteSpaceTrimmer();
    var temp5=document.PaySlipGeneration.toDate.value.split(".");
        tempToDate=temp5[2].whiteSpaceTrimmer()+"-"+temp5[1].whiteSpaceTrimmer()+"-"+temp5[0].whiteSpaceTrimmer();

//window.open('batchSalarySlip?list='+list+'&from='+PaySlipGeneration.fromDate.value+'&to='+PaySlipGeneration.toDate.value+'&isFirstTime=true','','width=760,height=600,menubar=yes,scrollbars=yes');

    MM_openBrWindow('http://reports.ofsy.net/pentaho/content/reporting/reportviewer/report.html?showParameters=false&output-target=pageable/pdf&solution=ofsyReports/bauto/payroll&path=&name=paySlipReport_bauto.prpt&locale=en_US#from='+tempFromDate.whiteSpaceTrimmer()+'&to='+tempToDate.whiteSpaceTrimmer()+branchIdsTemp+employeeIdsTemp+'&showParameters=false','&output-target=pageable/pdf','','width=1000,height=700,top=70,left=10');


//MM_openBrWindow('http://reports.ofsy.net/pentaho/content/reporting/reportviewer/report.html?showParameters=false&output-target=pageable/pdf&solution=ofsyReports/sta/payroll&path=&name=BankStatementReport_sta.prpt&locale=en_US#accNo='+accNo.whiteSpaceTrimmer()+'&from='+tempFromDate.whiteSpaceTrimmer()+'&to='+tempToDate.whiteSpaceTrimmer()+"&for_month="+for_month.whiteSpaceTrimmer()+branchIdsTemp+departmentIdsTemp+employeeIdsTemp+'&showParameters=false','&output-target=pageable/pdf','','width=1000,height=700,top=70,left=10');

}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T05:15:58+00:00Added an answer on May 23, 2026 at 5:15 am

    Your window open is for sure illegal

    MM_openBrWindow('some long url',
    '&output-target=pageable/pdf','','width=1000,height=700,top=70,left=10');
    

    You need to find a way to remove either ‘&output-target=pageable/pdf’ or the comma before it.

    Also give the window a name, e.g.

    MM_openBrWindow('some long url....&output-target=pageable/pdf',
    'newWindow','width=1000,height=700,top=70,left=10');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The widget works fine in Firefox but it completely stops the page from being
I have the following function, which works fine in Firefox, but will do nothing
My Web pages causes following error on the browser's Back Button, It works fine
I added one new link in a webpage. it works fine, but when I
I am essentially exporting a webpage to Excel format. The export works fine, but
When i use the below code in webpage (.aspx file), it works fine; but
web page : http://sideradesign.com/eco-art/gallery/ This code works fine in all brwosers except IE8 (haven't
We have a webpage that works fine on the local computer as it uses
I have made this example and it works fine on a plain aspx webpage.
I have developed a webpage containing charts using HighCharts . It works fine on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.