Solved

Checking whether one URL is valid with JavaScript

Posted on 2002-03-27
5
428 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
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…
Suggested Courses

626 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