🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.javascript
Article #51315

Re: Jak wykryć odświeżenie captcha

#51315
From: konsul41
Date: Tue, 30 Jul 2013 11:58
36 lines
2141 bytes
W dniu 29-07-2013 11:34, konsul41@wp.pl pisze:
> jest sobie skrypt
>
> ...
> <script language="JavaScript">
> ...
>         function GetNewChallenge() {
>             document.getElementById('captchaImg').src = 
> 'Captcha/Captcha.ashx?ms=' + Math.random();
>         }
> ...
>         </script>
> ...
> <a id="aRefreshCaptcha" href="javascript:GetNewChallenge();">
>                                     <img id="imgRefreshCaptcha" 
> src="images\captcha_refresh.gif" border="0">
>                                 </a>
> ...
> jak wykryć zakończenie ładowania obrazka po kliknięciu w link 
> aRefreshCaptcha?
>
> Nie jest wywoływane onLoad.

function getImage(url) {
   var image1 = document.createElement(''img'');
image1.onload = function()
{
   document.getElementById(''captchaImg'').src=image1.src;
   document.getElementById(''efekt'').value=image1.src;
   efekt.fireEvent("onrowenter");
};
image1.src = url;
}
function GetNewChallenge2() {
   getImage(''Captcha/Captcha.ashx?ms='' + Math.random());
}
Technical Details
Message-ID: <51f7aa6c$0$1213$65785112@news.neostrada.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!news.cyf-kr.edu.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!news.glorb.com!news-out.readnews.com!news-xxxfer.readnews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!unt-spo-b-01.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
References: <51f63741$0$1251$65785112@news.neostrada.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!news.cyf-kr.edu.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!news.glorb.com!news-out.readnews.com!news-xxxfer.readnews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!unt-spo-b-01.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
Date: Tue, 30 Jul 2013 13:58:36 +0200
From: "konsul41@wp.pl" <konsul41@wp.pl>
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130620 Thunderbird/17.0.7
MIME-Version: 1.0
Newsgroups: pl.comp.lang.javascript
Subject: Re: Jak wykryć odświeżenie captcha
References: <51f63741$0$1251$65785112@news.neostrada.pl>
In-Reply-To: <51f63741$0$1251$65785112@news.neostrada.pl>
Lines: 36
Message-ID: <51f7aa6c$0$1213$65785112@news.neostrada.pl>
Organization: Telekomunikacja Polska
NNTP-Posting-Host: 95.48.160.163
X-Trace: 1375185516 unt-rea-b-01.news.neostrada.pl 1213 95.48.160.163:1637
X-Complaints-To: abuse@news.neostrada.pl
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit