Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

124
Views
Datatable target conditioning has red underline. it says double colon expected

the program shows red undeline on target conditioning after i rename the class. it says "targets":[7] error message ':' expected. it was working before.

function load_data(from_date = '', to_date = '')
    {
        var dataTable = $('#visitor_table').DataTable({
            "processing" : true,
            "serverSide" : true,
            "order" : [],
            "ajax" : {
                url:"visitor_action.php",
                type:"POST",
                data:{action:'fetch', from_date:from_date, to_date:to_date}
            },
            "columnDefs":[
                {
                    <?php
                    if($visitor->is_master_user())
                    {
                    ?>
                    "targets":[7],
                    <?php
                    }
                    else
                    {
                    ?>
                    "targets":[6],
                    <?php
                    }
                    ?>
                    "orderable":false,
                },
            ],
        });
    }
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!