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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T16:28:22+00:00 2026-05-30T16:28:22+00:00

I have some problems using wamp, when i edit (in an external program) an

  • 0

I have some problems using wamp, when i edit (in an external program) an image i load with javascript it doesn’t update on the webserver.

I am using this code to load the images as the background of h2 tags

$('div.drawer h2').each(function(index)
{
    $(this).css("background-image", "url(./images/" + $(this).text() + ".png)")
});

This loads an image with the text of the h2 +.png from the images folder

However it doesn’t reload the image in the cache so if i edit the source image it doesn’t change on the webpage.

If i load the image in the CSS (with the background-image variable) it loads and updates fine.

How can this behavior be fixed? and is it expected?

  • 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-30T16:28:23+00:00Added an answer on May 30, 2026 at 4:28 pm

    the image is probably cached in your web browser, try to hit ctrl+F5 to reload it.

    Or you can try ctrl+delete and delete whole cache of the browser to see if this is your problem.

    If you dynamically load the image in javascript, you can add ?randomnumber after the image name.

    Like http://yourserver/imageName.jpg?1234 then the URL will be unique for each request thus will not hit your browser’s cache.

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

Sidebar

Related Questions

I'm using this library to hook keys and I have some problems with comparing
I have some problems using asyncore with AF_UNIX sockets. This code import asyncore, socket,
I have some problems with using queries in Hebrew. I tried this: http://sphinxsearch.com/forum/view.html?id=1431 But
i've got some problems using jQTouch. I have this Link <a href=#site_map class=swap>Map</a> and
I have some problems sending mails through SMTP using Spring's MailSender interface and the
I am using the new ASP control Chart, but I have some problems with
We have some performance problems with one of our applications. I thought about using
I have some problems with OpenCV s cvCanny(...) and the Image data types it
I have some problems using two dimensional array. static const int PATTERNS[20][4]; static void
Hi, i have been having some problems using JSON data in flash builder lately

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.