check if online


hi,

 

i'm not close network, networkprotocolls , co.

 

question:

will safe way check if user 'online' (connected internet wlan or lan or ...)

 

 

var myconnection = new socket(); if(myconnection.open ("www.google.de:80")) {myconnection.close();}else{alert('not connected.')} 

hi,

 

  • your code definitly works
  • being able connect "google.de" not save definition of being "online".  firewalls, proxies etc can ruin day. 
  • rather check connection online service want connect (if google, forget said) .. 

 

regards

 

b.



More discussions in InDesign Scripting


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support