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

333
Views
Why does the callback is not working on my angularjs?
$('input.filehandle2').data('callback', function(){
                    swal({
                        title: "Upload Receipt",
                        text: '<img style="height:200px;" src="'+imageUpload+'" />',
                        html:true,
                        showCancelButton: true,
                        cancelButtonText: "Close",
                        confirmButtonColor: "#DD6B55",
                        confirmButtonText: "Submit",
                        closeOnConfirm: false
                    },function(){
                        let post = {}
                        post['_token'] = _token;
                        post['id'] = id;
                        post['receipt'] = $('input.uploadreceipt2').val();
                        if(post['receipt'] == ''){
                            $('a.upload-btn').text("Please Upload Receipt").fadeOut('fast', function(){ $(this).fadeIn('fast'); });
                            return false;
                        }
                        $.post('/member/pending/submitreceipt', post, function(obj){
                            if(obj.status){
                                swal({
                                    title:obj.title,
                                    text:obj.msg,
                                    type:'success',
                                    html:true
                                },loadTransactions);
                            }else{
                                swal({
                                    title:obj.title,
                                    text:obj.msg,
                                    type:'error'
                                });
                            }
                        },'json');
                    });
                }).trigger('click');

$('input.filehandle2').data('callback', function() << this code is not working on my angularjs(mobile app) but work well in web JS.

For angularjs, how should I replace this?

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!