HighDots Forums  

testare se link risponde

Javascript (Italian) Il linguaggio JavaScript (it.comp.lang.javascript)


Discuss testare se link risponde in the Javascript (Italian) forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Gabriele
 
Posts: n/a

Default testare se link risponde - 07-18-2003 , 01:52 PM






Cerco di spiegarmi anche se non sarà facile ;-)

Se richiedo una pagina su un server www.pippo.it
questo mi risponde con la pagina (o alla peggio mi risponde con qualche
codice di errore es. 500. ).

Questo succede quando www.pippo.it è raggiungibile.

Se invece il server non è raggiungibile IE mi risponde "impossibile
visualizzare la pagina" e Mozilla mi informa con "Connection refused from
the server" (o qualche cosa di simile).

Vorrei scrivere una funzione con js che verifichi se un link è
raggiungibile, ma per ora riesco solo a verificare se risponde OK o se
risponde con un errore interno del server o se ho ricercato una pagina che
non esiste.

Quello che mi manca di intercettare è il caso in cui il server non è
raggiungibile (come se facessi un ping e non ricevessi in dietro nessuna
risposta).

Ciao.
--Gabriele



Reply With Quote
  #2  
Old   
Gabriele
 
Posts: n/a

Default Re: testare se link risponde - 07-18-2003 , 02:00 PM







Devo cercare bene su google prima di fare domande sul NG
Devo cercare bene su google prima di fare domande sul NG
Devo cercare bene su google prima di fare domande sul NG
Devo cercare bene su google prima di fare domande sul NG
Devo cercare bene su google prima di fare domande sul NG
Devo cercare bene su google prima di fare domande sul NG

Scusate, era nelle FAQ.

Comunque metto il link; magari a qualcuno puo' interessare.

http://groups.google.it/groups?hl=it...fad937c&seekm=
MPG.175ae86dc7a12af798974e%40powernews.libero.it&f rame=off



Reply With Quote
  #3  
Old   
ZER0
 
Posts: n/a

Default Re: testare se link risponde - 07-19-2003 , 06:44 AM



In article <tBWRa.186236$lK4.5265375 (AT) twister1 (DOT) libero.it>,
gabriele.montemari (AT) libero (DOT) it says...
Quote:
Devo cercare bene su google prima di fare domande sul NG
Devo cercare bene su google prima di fare domande sul NG
Devo cercare bene su google prima di fare domande sul NG
Devo cercare bene su google prima di fare domande sul NG
Devo cercare bene su google prima di fare domande sul NG
Devo cercare bene su google prima di fare domande sul NG
Ghghgh.. Bart docet. :P

--
C'ya,
ZER0
:. job profile - coder.gfxer.webDesigner

"when you eliminate the impossible, whatever remains, however
improbable, must be the truth" (S.H.)


Reply With Quote
  #4  
Old   
Gabriele
 
Posts: n/a

Default Re: testare se link risponde - 07-19-2003 , 09:08 AM




Quote:
Ghghgh.. Bart docet. :P
Chi mi passa il link alla gif di bart/google?

Ciao.
--Gabriele




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.