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 7053675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:32:02+00:00 2026-05-28T03:32:02+00:00

$(document).ready(function () { var myUpload = $(‘#upload_link’).upload({ name: ‘image’, action: ‘<?=$image_handling_file?>’, enctype: ‘multipart/form-data’, params:

  • 0
$(document).ready(function () {
            var myUpload = $('#upload_link').upload({
               name: 'image',
               action: '<?=$image_handling_file?>',
               enctype: 'multipart/form-data',
               params: {upload:'Upload'},
               autoSubmit: true,
               onSubmit: function() {
                    $('#upload_status').html('').hide();
                    loadingmessage('Veuillez patienter...', 'show');
               },
               onComplete: function(response) {
                    loadingmessage('', 'hide');
                    response = unescape(response);
                    var response = response.split("|");
                    var responseType = response[0];
                    var responseMsg = response[1];
                    if(responseType=="success"){
                        var current_width = response[2];
                        var current_height = response[3];
                        //display message that the file has been uploaded
                        $('#upload_status').show().html('<p><h2>Veuillez redimensionner votre image ci-dessous, puis cliquez Sauvegarder</h2></p>');
                        //put the image in the appropriate div
                        $('#uploaded_image').html('<img src="images/news/'+responseMsg+'" id="thumbnail" alt="Create headline image" /><center><div style="width:<?php echo $thumb_width;?>px; height:<?php echo $thumb_height;?>px; margin: 10px; padding: 10px; background: #F4F4F4; border-radius: 10px; moz-border-radius: 10px; border:1px #e5e5e5 solid;"><div style="overflow:hidden; width:<?php echo $thumb_width;?>px; height:<?php echo $thumb_height;?>px;"><img src="images/news/'+responseMsg+'" id="thumbnail_preview" alt="Thumbnail Preview" /></div></div></center>')
                        //find the image inserted above, and allow it to be cropped
                        $('#uploaded_image').find('#thumbnail').imgAreaSelect({ aspectRatio: '1:<?php echo $thumb_height/$thumb_width;?>', onSelectChange: preview }); 
                        //display the hidden form
                        $('#thumbnail_form').show();
                        $('#upload_par').hide();
                    }else if(responseType=="error"){
                        $('#upload_status').show().html('<h1>Erreur</h1><p>'+responseMsg+'</p>');
                        $('#uploaded_image').html('');
                        $('#thumbnail_form').hide();
                    }else{
                        $('#upload_status').show().html('<h1>Erreur</h1><p>Veuillez réessayer</p>'+response);
                        $('#uploaded_image').html('');
                        $('#thumbnail_form').hide();
                    }
               }
            });
});


<div id="upload_par"><a id="upload_link" href="#"><button type="button" class="btn" style="display:block;">Choisir une image</button></a></div>

What is the problem with my JQUERY?

The Developer’s tool on Chrome gives me these error details:

Uncaught TypeError: Object [object Object] has no method ‘upload’
(anonymous function) f.Callbacks.njquery.js:2

f.Callbacks.o.fireWithjquery.js:2

e.extend.readyjquery.js:2

c.addEventListener.B

  • 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-28T03:32:02+00:00Added an answer on May 28, 2026 at 3:32 am

    There’s no function like .upload() in jQuery, you might want to use .submit() instead.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

$(document).ready(function(){ $('.submit').click(function(){ var value = $('#Name').attr('value'); alert(value); }); }); <input type=text value=10 id=Name/>Hello world
my code is $(document).ready(function () { var control_btn21 = $('.mine'), interval21; $.ajax_upload(control_btn21, { action:
$(document).ready(function() { $('#username').focus(function() { $(this).val(''); }) $('#username').blur(function() { var l = $(this).val.length; if (l
I have the following code: $(document).ready(function() { var id = 'cbx'; var idPrefix =
I have the following: $(document).ready(function() { var myIframe = document.getElementById('myIframe'); var element = myIframe.contentDocument.createElement('script');
Let's say I have this $(document).ready(function() { var array = $.makeArray($('p')); $(array).appendTo(document.body); }); });
So i got this snippet of code: $(document).ready(function () { var replacementDoneIn = $(body).html();
Is this how you define a function in jQuery? $(document).ready( function () { var
I'm using the following code.. $(document).ready(function(){ $(#test a).click(function(){ var labelTo = $(this).text(); window.location =
I have this code in jQuery.. $(document).ready(function(){ var fieldCounter = 0; ... I have

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.