User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 373,933 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,179 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 923 | Replies: 6
Reply
Join Date: Jan 2008
Posts: 6
Reputation: ashercharles is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
ashercharles ashercharles is offline Offline
Newbie Poster

Question problems with firefox2.0.0.11

  #1  
Feb 13th, 2008
hai guys
i have generated a captcha image
and i want the image to change every time the user reaches the page..........
the code seem to work well with IE but in firefox the image does not get changed
.......i tried "onload" command but the image goes on for an infinite refresh............

pls lemme know if there is any solution.............
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2004
Location: London or Slovakia
Posts: 1,906
Reputation: peter_budo has a spectacular aura about peter_budo has a spectacular aura about peter_budo has a spectacular aura about 
Rep Power: 9
Solved Threads: 216
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Posting Virtuoso

Re: problems with firefox2.0.0.11

  #2  
Feb 13th, 2008
You best to post your code so we can have look at it
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

If we helped you to solve your problem, answered your question please mark your post as SOLVED.
Reply With Quote  
Join Date: Apr 2005
Location: New York state
Posts: 442
Reputation: ShawnCplus will become famous soon enough ShawnCplus will become famous soon enough 
Rep Power: 5
Solved Threads: 65
Sponsor
ShawnCplus's Avatar
ShawnCplus ShawnCplus is offline Offline
Code Monkey

Re: problems with firefox2.0.0.11

  #3  
Feb 13th, 2008
If you are using a server-side language then manipulate the header to send
Cache-Control: no-cache
Pragma: no-cache
This tells the browser to get a fresh copy
GCS d- s+:+ a-->? C++(++++) UL+++ P+>+++ L+++ !E--- W+++
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r z+*
Reply With Quote  
Join Date: Jan 2008
Location: Bangalore, India
Posts: 327
Reputation: DangerDev is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 31
DangerDev's Avatar
DangerDev DangerDev is offline Offline
Posting Whiz

Re: problems with firefox2.0.0.11

  #4  
Feb 14th, 2008
hi
try window.onload='function_name'
A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila.
~Mitch Ratcliffe
Reply With Quote  
Join Date: Jan 2008
Posts: 6
Reputation: ashercharles is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
ashercharles ashercharles is offline Offline
Newbie Poster

Help Re: problems with firefox2.0.0.11

  #5  
Feb 14th, 2008
sorry guys i forgot to paste the code.............
but here it is



function captcha_refresh() {
e=document.getElementById('captcha');
dv=new Date();
document.myform.captcha.value = "";
e.src="/captchamg.php?dummy=" + dv.getTime();
return false;

}


this come unesr the script validate.js.....

ive called it using in the a php code using

<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript" src="validate.js">
Reply With Quote  
Join Date: Jan 2008
Location: Bangalore, India
Posts: 327
Reputation: DangerDev is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 31
DangerDev's Avatar
DangerDev DangerDev is offline Offline
Posting Whiz

Re: problems with firefox2.0.0.11

  #6  
Feb 14th, 2008
if u do that using mouse move event.

on document mouse move event start a timer, if timer is running for 10 or 20 second i.e. page is idle for that much second then call another function which will change the image.
i hope this will help.
A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila.
~Mitch Ratcliffe
Reply With Quote  
Join Date: Jan 2008
Posts: 6
Reputation: ashercharles is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
ashercharles ashercharles is offline Offline
Newbie Poster

Re: problems with firefox2.0.0.11

  #7  
Feb 25th, 2008
hai all i want is to stop the image alone from being cached...i dont want the text to be disturbed...........
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb JavaScript / DHTML / AJAX Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 6:16 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC