How do I programmatically (javascript) check if link is valid in html?
|
|
0
|
|
|
|
Reply
|
bschandramohan (5)
|
3/7/2007 7:18:33 AM |
|
On Mar 7, 5:18 pm, "Chandra" <bschandramo...@gmail.com> wrote:
> How do I programmatically (javascript) check if link is valid in html?
Search for "Does a url exist?" at:
<URL: http://www.jibbering.com/2002/4/httprequest.html >
--
Rob
|
|
0
|
|
|
|
Reply
|
RobG
|
3/7/2007 8:58:41 AM
|
|
In comp.lang.javascript message <1173257921.111123.61630@p10g2000cwp.goo
glegroups.com>, Wed, 7 Mar 2007 00:58:41, RobG <rgqld@iinet.net.au>
posted:
>On Mar 7, 5:18 pm, "Chandra" <bschandramo...@gmail.com> wrote:
>> How do I programmatically (javascript) check if link is valid in html?
>
>Search for "Does a url exist?" at:
>
><URL: http://www.jibbering.com/2002/4/httprequest.html >
So, on page load, an author can do various things amounting to a
probable abuse of resources.
OTOH, the code to check all the URLs on a page could be put in an
include file on an author's own machine, with a dummy version on the
author's public site; and that code could be actuated by a code-written
button so that it was not used too often. Such code could be published
for distribution by using /* ... */ to disable its workings. Has anyone
done that?
And HEAD can be used to find the Last-Modified date which is the well-
defined unambiguous form from which lastModified is derived often by the
removal of unambiguity. I've created temporary page
<URL:http://www.merlyn.demon.co.uk/lastzmod.htm>
which uses it in addition and will replace last-mod.htm if all seems
well.
--
(c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk DOS 3.3, 6.20 ; WinXP.
Web <URL:http://www.merlyn.demon.co.uk/> - FAQqish topics, acronyms & links.
PAS EXE TXT ZIP via <URL:http://www.merlyn.demon.co.uk/programs/00index.htm>
My DOS <URL:http://www.merlyn.demon.co.uk/batfiles.htm> - also batprogs.htm.
|
|
0
|
|
|
|
Reply
|
Dr
|
3/7/2007 2:43:09 PM
|
|
Dr J R Stockton said the following on 3/7/2007 9:43 AM:
> In comp.lang.javascript message <1173257921.111123.61630@p10g2000cwp.goo
> glegroups.com>, Wed, 7 Mar 2007 00:58:41, RobG <rgqld@iinet.net.au>
> posted:
>> On Mar 7, 5:18 pm, "Chandra" <bschandramo...@gmail.com> wrote:
>>> How do I programmatically (javascript) check if link is valid in html?
>> Search for "Does a url exist?" at:
>>
>> <URL: http://www.jibbering.com/2002/4/httprequest.html >
>
> So, on page load, an author can do various things amounting to a
> probable abuse of resources.
That is true without using an httprequest. A clock, on a webpage, is a
"probable abuse of resources", and, it has nothing to do with whether it
is on page load or not.
> OTOH, the code to check all the URLs on a page could be put in an
> include file on an author's own machine, with a dummy version on the
> author's public site; and that code could be actuated by a code-written
> button so that it was not used too often. Such code could be published
> for distribution by using /* ... */ to disable its workings. Has anyone
> done that?
No because it doesn't make any sense. If you only want to show a user a
link if that server/URL is available then your testing doesn't satisfy
that need.
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
|
|
0
|
|
|
|
Reply
|
Randy
|
3/8/2007 7:13:19 PM
|
|
|
3 Replies
128 Views
(page loaded in 0.057 seconds)
Similiar Articles: disable Save and Print programmatically - comp.text.pdfIf you read my note you can see I want to disable print and save programmatically, not ... they could right click on the link and do ... cs.tut.fi/~jkorpela/usenet/brox.html ... How to add radio buttons, etc. programatically? - comp.text.pdf ...(JavaScript can also be attached to ... you may assume that the check boxes, radio buttons ... Programmatically ... option in "select" box in html - comp ... programmatically ... Menu Question - How Do I Enable/Disable Menu Options ...How do I programatically enable ... 0/docs/api/javax/swing/JMenuItem.html ... disable Save and Print programmatically - comp.text.pdf Menu Question - How Do I Enable ... java api to convert html to pdf - comp.text.pdfHTML link or Hyperlink in a Java Panel ... using abcpdf ... pdf from valid html - comp.text.pdf how to check for valid ... to PDF API that fully supports HTML/CSS2/Javascript. PDF Form submit with both HTML and FDF responses. - comp.text.pdf ...Although the script adds the record, I never see the HTML ... Display PDF from Ajax Response - comp.lang.javascript ... ABCPDF Blank pdf from valid html - comp.text.pdf PDF ... Poker hand evaluator - comp.lang.javascriptAll the values are actually valid 32-bit ... > > And instead of checking for straights first, I do it while pushing > cards ... version is here : file:///home/baagoe/html ... window.print() not printing whole page - comp.lang.javascript ...Check all involved pages if they have something like <link href=3D"..." ... suspect, an HTML problem and nothing to do with javascript. ... text.pdf ... programmatically ... How to insert bmp's in pdf - comp.text.pdfDo you have a link for me? Actually we just tried to insert a ... As a double check, to make sure your code is ... in pdf - comp.text.pdf ABCPDF Blank pdf from valid html ... How best to detect duplicate values in a column? - comp.databases ...... just to make sure the situation is valid for regular users to see later. ... starting from the meta question will see a link to ... with same short title, and generate a HTML ... Tries to save the file, instead of executing it - comp.lang.php ...When it happens again, check to see what the headers say. ... the header that says 'interpret this as displayable HTML ... He has often has very valid contributions. To label ... How do I programmatically (javascript) check if link is valid in html?Chandra wrote: > How do I programmatically (javascript) check if link is valid in html? What do you mean by valid? http://efgsdgf.rertywe.iyugiugiukg/k...sdfgjhb.erfged How do I programmatically (javascript) check if link is valid in ...How do I programmatically (javascript) check if link is valid in html? 7/27/2012 6:58:10 PM
|