Solved

Checking whether one URL is valid with JavaScript

Posted on 2002-03-27
5
425 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this article, we'll look how to sort an Array in JavaScript, including the more advanced techniques of sorting a collection of records either ascending or descending on two or more fields. Basic Sorting of Arrays First, let's look at the …
The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
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…

739 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