Solved

Checking whether one URL is valid with JavaScript

Posted on 2002-03-27
5
413 Views
Last Modified: 2006-11-17
Is it possible with javascript to check whether one URL is valid (for example : is http://localhost:XXXX/... )
and if there is no server listening to open new URL ?
Thanks
0
Comment
Question by:Dimitar
5 Comments
 
LVL 3

Expert Comment

by:shyamkumarreddy
ID: 6901771
Yes is it a javascript in client or in server. If its server then itis possible or if it is client. let me think abt this option.

Shyam
0
 

Author Comment

by:Dimitar
ID: 6901908
The javascript is in client. The idea is that there is applet which has server for listening about actions and executing them. From another html, not this with <applet> or <object ...> tags has to be detected whether this applet's server is working, if working to send to it actions if not to load one URL.

Thanks
0
 
LVL 12

Accepted Solution

by:
lexxwern earned 50 total points
ID: 6904459
ClientSide, you can parse the string and check if its a valid url; but you cannot check if the site exists or not;

lexxwern
0
 
LVL 12

Expert Comment

by:ahosang
ID: 8084984
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

points to lexxwern
Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
ahosang
EE Cleanup Volunteer
0
 

Expert Comment

by:modulo
ID: 8140069
Finalized as proposed

modulo

Community Support Moderator
Experts Exchange
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now