HighDots Forums  

iFrame Load Ok o Error

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


Discuss iFrame Load Ok o Error in the Javascript (Italian) forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
nonce999
 
Posts: n/a

Default Re: iFrame Load Ok o Error - 03-13-2008 , 01:53 PM






l'ho messo sul server e Non mi funziona più.


function NoError(){
var a = document.getElementById('StartFrm');
if(a!==null && a.document!==null){
alert("OK");
}else{
alert("Error");
}
}

<iframe src="sno.htm" id="StartFrm" name="StartFrame" onload="NoError
();"></iframe>

--
http://interno.netsons.org

Reply With Quote
  #12  
Old   
nonce999
 
Posts: n/a

Default Re: iFrame Load Ok o Error - 03-13-2008 , 01:57 PM






nonce999 <nonce999 (AT) haii (DOT) com> wrote in
news:Xns9A60CA4DC4FDDnonce999haiicom (AT) 213 (DOT) 205.37.205:

Quote:
l'ho messo sul server e Non mi funziona più.


function NoError(){
var a = document.getElementById('StartFrm');
if(a!==null && a.document!==null){
alert("OK");
}else{
alert("Error");
}
}

iframe src="sno.htm" id="StartFrm" name="StartFrame"
onload="NoError ();"></iframe

comunque pensandoci non lo posso usare al mio scopo.
Il mio scopo è caricare una pagina impedendo che si avviene un
errore si blocchi tutti e facendo in modo che in questo caso si
carichi di nuovo.
avevo pensato di usare iframe dove provare a caricare la pagine
finché si ha successo e allora passavo il src all'href .
ma per fare il test della stessa pagina dentro l'iframe creerei un
ciclo infinito di iframe.
Non vedo come uscirne.
E' possibile far caricare una pagina evitando tutti gli errori che
possono incorrere?

--
http://interno.netsons.org


Reply With Quote
  #13  
Old   
nonce999
 
Posts: n/a

Default Re: iFrame Load Ok o Error - 03-13-2008 , 03:25 PM



nonce999 <nonce999 (AT) haii (DOT) com> wrote in
news:Xns9A60CA4DC4FDDnonce999haiicom (AT) 213 (DOT) 205.37.205:

Quote:
l'ho messo sul server e Non mi funziona più.


function NoError(){
var a = document.getElementById('StartFrm');
if(a!==null && a.document!==null){
alert("OK");
}else{
alert("Error");
}
}

iframe src="sno.htm" id="StartFrm" name="StartFrame"
onload="NoError ();"></iframe

forse funziona solo con pagine tipo file:/// e non nel web server
dove comunque viene tornata una pagina di errore?
Comunque sei molto bravo


--
http://interno.netsons.org


Reply With Quote
  #14  
Old   
Cristiano Larghi
 
Posts: n/a

Default Re: iFrame Load Ok o Error - 03-17-2008 , 03:23 AM



Il 13 Mar 2008 20:25:24 GMT, nonce999 ha scritto:

Quote:
function NoError(){
var a = document.getElementById('StartFrm');
document? non devi leggere un dato dentro il frame?

Quote:
if(a!==null && a.document!==null){
document di nuovo, su un tag?

Quote:
forse funziona solo con pagine tipo file:/// e non nel web server
dove comunque viene tornata una pagina di errore?
non lo so, sei te che hai fatto i test, ma mi sembra strano ...

--
"Ti sei salvato
o sei entrato in banca pure tu?"
A.V.


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.