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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:27:22+00:00 2026-05-23T03:27:22+00:00

just imagine your profile on facebook. when changing your avatar, you select a new

  • 0

just imagine your profile on facebook. when changing your avatar, you select a new picture, crop it and then safe it. after that, the new avatar is displayed in your profile.

on my website i want do provide the same service – which allready works.

but: i am not able to display the new and(!) cropped avatar right after creating it (with php). i can only display the new, but uncropped one. after refreshing my site, every thing works fine.

$("div#button2").click(function() {

//Thumbnail is created externally with php //the name of the new cropped avatar is the same like the uncropped one //i just change the picture, but the url is the same! $.post("upload_thumbnail.php", { bild: bild, format: format, x: x, y: y, w: w, h: h }); //delete the old avatar $.post("upload_loeschen.php", { bild: bildalt }); //save the url of the new cropped avatar in the database $.post("upload_update.php", { bild: bild, laden_nr: "1" }); //close my imageeditor $("div#bildeditor").hide(); jcrop_api.destroy(); $("#cropbox").attr("src", ""); $("#preview").attr("src", ""); //If there is a new avatar, display it!!! -> and here only the uncropped is displayed if(bild != "") { $("img#logo").attr("src", bild); bild = ""; } });

I just don’t know how the site is able to display the uncropped avatar, because it isnt there any more. it was replaced by the cropped one.

Thank you very much!

Benjamin

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

    the problem is that your avatar pic got cached, so try to add an random parameter with the image name

    on load var i=1;
    On avatar change i++;
    and set the img src ="imgpath?random="+i

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

Sidebar

Related Questions

Is it possible ? Or I just imagine ?
everyone. I'm just starting with django, so sorry for a possibly stupid question. Imagine,
I've never learnt JavaScript, but I imagine this is quite a simple problem. Just
Just out of curiosity, is it possible to parse a string that is totally
I just realized that the C# property construct can also be used with a
Imagine I have two (three, four, whatever) tasks that have to run in parallel.
Context: Imagine that you have a standard CherryPy hello word app: def index(self): return
I can't imagine that there doesn't exist an efficient, lightweight, secure authentication and authorization
Imagine you're writing a web app that will have 1 million users (they all
I was just reading this: http://www.tvidesign.co.uk/blog/improve-your-jquery-25-excellent-tips.aspx And had some questions about some of the

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.