function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Neha Srivastava 4Neha Srivastava 4 

i got error in classis vf before migrating it to lightning that jquery.min.js JavaScript included in this page uses window. method

NagendraNagendra (Salesforce Developers) 
Hi Neha,

Sorry for this issue you are encountering.

May I request you be more specific on your issue so that we can understand the requirement better and can help you accordingly.

Also, assuming that you are getting the above error while migrating VF pages from classic to lightning then I would suggest you please refer to the below link from the stack exchange community with a similar discussion. Hope this helps.

Kindly mark this as solved if the reply was helpful.

Thanks,
Nagendra
Neha Srivastava 4Neha Srivastava 4
Thannks Nagendra for your reply.
I have vf page, on that i am using <apex:includeScript value="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"/>

report that we generate before movig to lightning from classic says that " jquery.min.js JavaScript included in this page uses window. methods."
NagendraNagendra (Salesforce Developers) 
Hi Neha,

the above link from the community explains very clearly on the above issue.

May I request you please post the complete code snippet of what you have so that we can look into it and can help you accordingly.

Thanks,
Nagendra
Neha Srivastava 4Neha Srivastava 4
<apex:page controller="psaRemoveSalesOrderController" showHeader="true" sidebar="true" action="{!btnLoad}" l>
    <apex:includeScript value="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"/>
    <script>

        function removeSO(){
            var flg = false;
            $(".chk").each(function(){
                if($(this).prop("checked")){
                    flg = true;
                }
            });
            if(flg){
                callaction();
            }else{
                alert("Please select at least one Sales Order");
            }
        }
        
    </script>


bold is giving the error.
Neha Srivastava 4Neha Srivastava 4
How can i check whether checkbox is checked or not without jquery?