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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:40:14+00:00 2026-06-18T01:40:14+00:00

I am setting up a function known as insertQuestion where it appends table rows.

  • 0

I am setting up a function known as insertQuestion where it appends table rows. I also have a startVideoUpload() function where it starts the uploading and a stopVideoUpload() function where it stops the file upload.
Now I mentioned in those functions that if the uploading is happening, disable the Upload buttons, if the uploading has stopped then remove the disable from the Uplod buttons. Now what I want to do is that if the user appends a row while a file is uploading, then I want the
Upload buttons that have been appended to be disabled, else if the upload has stopped when the row is appended, then remove the disable from the Upload button.

My question is that is it possible to do this be checking in the insertQuestion() function that if a file is uploading (if statement if startVideoUpload() is true) then disable Upload button else if no file is uploading (if statement if stopVideoUpload() is true) then remove disable from Upload buttons. If this
can be done then how can the if statements be correctly coded to check if those functions are met?

Below is function where it would append rows (I have left it empty)

function insertQuestion(form) {   
}

Below is relevant code where when it starts the file’s uploading process

   function startVideoUpload(videouploadform){    
       sourceVideoForm = videouploadform;
       $(".sbtnvideo").attr("disabled", "disabled");
    }); 

      return true;
    }

Below is relevant code for function when uploading has finished:

function stopVideoUpload(success, videoID, videofilename){
      $(".sbtnvideo").removeAttr("disabled");         
      return true;   
}
  • 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-06-18T01:40:15+00:00Added an answer on June 18, 2026 at 1:40 am

    You’ll need some sort of flag, indicating whether a video is currently being uploaded. Then, just check that from within your insertQuestion function.

    var isUploading = false;
    
    function startVideoUpload (videouploadform) {    
        sourceVideoForm = videouploadform;
        $(".sbtnvideo").prop("disabled", isUploading = true);
        return false;
    });
    
    function stopVideoUpload (success, videoID, videofilename) {
        $(".sbtnvideo").prop("disabled", isUploading = false);
        return true;   
    }
    
    function insertQuestion (form) {
        if ( isUploading ) {
            // disable the button
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a multiple files uploadify setting with: 'onComplete' : function(event, ID, fileObj, response,
I'm struggling in setting a function's return value to the json response of its
I am setting the submit function on a form with jQuery then later in
Note -- Solved This is the function which is setting the center in my
I have a function that restores all of the default settings of my application.
I was wondering if there's something I could do, aside from setting each function
I would like to know why jQuery's .val() function is not setting the value
Setting a property descriptor like this: Object.defineProperty(window, 'someFunction', { value: function() { alert('safe'); },
In libcurl , what the parameters mean in the function called by setting CURLOPT_PROGRESSFUNCTION
simple question here, I am writing a function, but I was having trouble setting

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.