Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2006

Tip: Looking for answers? Try searching our database.

how to enable/disable a link based on internet availability

Thread view: 
Sn - 04 Jul 2006 06:20 GMT
Hi all,

I ve a requirement with the application i am building. I am building a
small application tool in java. I would like to have a link to my home
page from the UI of the tool.  The link should be enabled if and only
if the internet connection is active on that computer or disabled
otherwise.. any advice on this..

appreciate your help on this.

Cheers
David Segall - 04 Jul 2006 09:21 GMT
>Hi all,
>
[quoted text clipped - 3 lines]
>if the internet connection is active on that computer or disabled
>otherwise.. any advice on this..
The only useful way to test this is by attempting to connect. If you
do that in a separate thread the user will not notice the lengthy
delay that occurs with a failed connection.
Ed Kirwan - 04 Jul 2006 11:35 GMT
>> Hi all,
>>
[quoted text clipped - 6 lines]
> do that in a separate thread the user will not notice the lengthy
> delay that occurs with a failed connection.

And when you do this, Sn, your firewall may splutter to life and start
roaring about an application's phoning-home: this will be enough for
some of your users to take fright and kick your application off their
hard-drives.

You should maybe just present your link whether net-connected or not;
these days, there are very few people that understand that underlined
text beginning with "www." is a web-connection but don't know that they
must connnect to the web before they can see it.

In other words: don't worry about enabling the link based on connectivity.

Signature

www.EdmundKirwan.com - Home of The Fractal Class Composition.

Download Fractality, free Java code analyzer:
www.EdmundKirwan.com/servlet/fractal/frac-page130.html

Moiristo - 04 Jul 2006 12:03 GMT
> these days, there are very few people that understand that underlined
> text beginning with "www." is a web-connection but don't know that they
> must connnect to the web before they can see it.

that don't understand, I guess? :)
Ed Kirwan - 04 Jul 2006 13:23 GMT
>> these days, there are very few people that understand that underlined
>> text beginning with "www." is a web-connection but don't know that
>> they must connnect to the web before they can see it.
>
> that don't understand, I guess? :)

It was a horribly-worded sentence, all right ...

<Reaches up to bookshelf for a grammar primer>

Signature

www.EdmundKirwan.com - Home of The Fractal Class Composition.

Download Fractality, free Java code analyzer:
www.EdmundKirwan.com/servlet/fractal/frac-page130.html

Patricia Shanahan - 04 Jul 2006 14:53 GMT
>>> these days, there are very few people that understand that underlined
>>> text beginning with "www." is a web-connection but don't know that
[quoted text clipped - 5 lines]
>
> <Reaches up to bookshelf for a grammar primer>

However, the concept is correct. Remember that Internet connectivity can
change from minute to minute, especially when using wireless devices.

Suppose I notice that my wireless link is good again, want to access the
home page, but the application has not yet noticed the return to
connectivity.

If the link is always there, I just click it and the application should
then attempt to connect. If the link isn't there, what do I do to tell
it to try to connect?

Patricia


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.