Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 437
  • Last Modified:

Checking whether one URL is valid with JavaScript

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
Dimitar
Asked:
Dimitar
1 Solution
 
shyamkumarreddyCommented:
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
 
DimitarAuthor Commented:
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
 
lexxwernCommented:
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
 
ahosangCommented:
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
 
moduloCommented:
Finalized as proposed

modulo

Community Support Moderator
Experts Exchange
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now