/    Sign up×
Community /Pin to ProfileBookmark

Button with background-image not refreshing

Hi !

I have to submit a form by clicking on an image. For some obscure reason, I can’t use an image with an onClick that submits the form. So I used a button with a CSS background-image :

<input type=”submit” name=”manageImagePhoto” value=””
style=”background: url(/siip/address/displayAddressImage.do?thumbnail=true&addressid=2159&imagetypeid=2) no-repeat center center;
width : 100px;
height: 125px;
width: 125px;
border: 0px;
font-weight : lighter;
font-size : 11px;
font-family: arial;
azimuth: center;
word-spacing: 1px;
cursor: pointer”
/>

It works fine but one thing : as you can tell from the url, the image is generated server-side (read from a database). It is actually a thumbnail of a bigger image. To click on the thumbnail calls a form where you can change the image. But if I change the image and go back to the main page where the thumbnail is displayed, the thumbnailed is not refreshed. It is refreshed only after I reload the page 2 times more… I’m prety sure the server side (it’s J2EE) works fine and refreshes instantly – no cache.

I’m using Firefox.

Any idea how I could force the refresh ?

Any suggestion welcome !

to post a comment
HTML

0Be the first to comment 😎

×

Success!

Help @pedrito spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.3,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...