Hey
I included that internet-connection-checker in a project and tried to test it by entering a web-adress which does not exist, like: www.jnbiuewffiwufpewfewuf.com.
Logically my "offline"-page should now appear, since I did set the following code:
%IsConnected%=Internet.CheckConnection("http://www.jnbiuewffiwufpewfewuf.com")
IF (%IsConnected%)
File.Open(open,"http://www.yahoo.com")
ELSE
File.Open(open,"%SrcDir%\offline.htm")
END IF
But this does not seem to matter. All I see is Yahoo.com even though the checker is being lead to nowhere... [img]/ubbthreads/images/icons/frown.gif[/img]
What's the error?
I included that internet-connection-checker in a project and tried to test it by entering a web-adress which does not exist, like: www.jnbiuewffiwufpewfewuf.com.
Logically my "offline"-page should now appear, since I did set the following code:
%IsConnected%=Internet.CheckConnection("http://www.jnbiuewffiwufpewfewuf.com")
IF (%IsConnected%)
File.Open(open,"http://www.yahoo.com")
ELSE
File.Open(open,"%SrcDir%\offline.htm")
END IF
But this does not seem to matter. All I see is Yahoo.com even though the checker is being lead to nowhere... [img]/ubbthreads/images/icons/frown.gif[/img]
What's the error?
Comment