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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T02:16:20+00:00 2026-06-07T02:16:20+00:00

I am using the jquery webcam plugin with the flash save method. I want

  • 0

I am using the jquery webcam plugin with the flash save method. I want set a message after the user clicks save so they know it’s saving. My code is this:

$('#savepicmessage').html("Saving picture, please wait");
webcam.capture();
webcam.save('/savephoto.php');

The problem is that the “Saving picture” message only gets displayed after the picture is saved. Is there a way to prevent execution of the code following the .html(“Saving picture, please wait”) call, so that it is not executed until the message has been displayed?

I can achieve it with a setTimeout and have the capture and save in the function called from there, however this is not reliable enough.

I looked at .when and deferred.then but that didn’t seem to work.

  • 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-07T02:16:22+00:00Added an answer on June 7, 2026 at 2:16 am

    In general I use promises and stuff like $.when() to coordinate asynchronous things like AJAX calls or animation. But the fact that this is acting almost like it’s asynchronous is amazing to me.

    However, I have a suggestion. Can you loop on $(‘#savepicmessage’).html() after the first call to set it and test what comes back? Perhaps once the returned value matches what you tried to set it to, then you could fall through to the webcam functions and your message will be visible to the user prior to invoking the webcam.

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

Sidebar

Related Questions

I'm using this jQuery webcam plugin in a website I'm working on. If you
I am using the jQuery Webcam Plugin with this code: $(#camera).webcam({ width: 250, height:
I'm using this jQuery plugin: http://www.xarg.org/project/jquery-webcam-plugin/ When I run this code on localhost ,
Using jquery, How can I create multiple draggables using loops through javascript? I want
Using jQuery, what's the best way to automatically initialize a plugin on all current
Using jQuery, I want to check if the text of a link I'm clicking
Using JQuery how to check if any checkboxes are checked and then set the
Using Jquery Ajax i have an entry script index.php This script lets the user
Using jQuery I want to check if checkboxes or radio button inside a div
Using jQuery UI , I have a tabs plugin and within tab 1 gets

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.