mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-26 00:54:43 +00:00
updated
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@706 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
ca2dea49ab
commit
d52439c295
1 changed files with 6 additions and 23 deletions
29
TODO
29
TODO
|
|
@ -1,23 +1,6 @@
|
|||
- Javascript in CGI scripts
|
||||
<form onsubmit=return(isRequired(document.checklinkForm)) name=checklinkForm ...>
|
||||
</form>
|
||||
|
||||
//Check for the required fields
|
||||
function isRequired (thisForm) {
|
||||
var empty = false;
|
||||
// URI
|
||||
if (isEmpty(thisForm.uri) || (thisForm.uri.value == "http://")) {
|
||||
alert("The URL field is required. Please fill it in.");
|
||||
thisForm.uri.select();
|
||||
thisForm.uri.focus();
|
||||
empty = true;
|
||||
}
|
||||
// verify URL format
|
||||
if ((empty == false) && (verifyURI(thisForm.uri) == false)) {
|
||||
alert("Invalid URL submitted. Please submit a valid URL.");
|
||||
thisForm.uri.select();
|
||||
thisForm.uri.focus();
|
||||
empty = true;
|
||||
}
|
||||
return (!(empty));
|
||||
}
|
||||
possible Python 2.3 improvements:
|
||||
- get rid of timeoutsocket.py, the default socket has timeouts
|
||||
- use optparse instead of getopt with more flexible commandline help
|
||||
- replace the debug() function with the logging module
|
||||
we'll see how we can insert multiple debug levels into this thing
|
||||
- use Bool object type
|
||||
|
|
|
|||
Loading…
Reference in a new issue