![]() | |
#121
| |||
| |||
|
|
Anthony Levensalor wrote: Thomas 'PointedEars' Lahn posted : This is an excellent tip, thanks! It's a recipe for disaster. Whenever you use scripts that use try..catch as-is, compilation will fail with a SyntaxError. Compilation of the other scripts, that you use along with them and that don't use try..catch, is not guaranteed. Maybe not guaranteed but it has generally been observed that a syntax error in the contents of one script element (or in a resource imported by a single script element) does not interfere with the successful interpretation/compilation of syntax error free code in other script elements (or imported by other script elements) within the same document. Any cited examples where it did would be important, but in their absence this seems excessively paranoid. |
#122
| |||
| |||
|
|
(Request for Discussion) I've put together a guide that I hope will help novice coders avoid the same hair pulling that I went through. |
#123
| |||
| |||
|
|
"Jeremy J Starcher" <r3jjs (AT) yahoo (DOT) spam.me.not.com> wrote in message news an.2008.01.01.10.28.51.321488 (AT) yahoo (DOT) spam.me.not.com...(Request for Discussion) I've put together a guide that I hope will help novice coders avoid the same hair pulling that I went through. [snip] You guys could probably have a field day with this script! http://www.curvycorners.net/rounded_corners_lite.inc.js |

#124
| |||
| |||
|
|
McKirahan wrote: "Jeremy J Starcher" <r3jjs (AT) yahoo (DOT) spam.me.not.com> wrote in message news an.2008.01.01.10.28.51.321488 (AT) yahoo (DOT) spam.me.not.com...(Request for Discussion) I've put together a guide that I hope will help novice coders avoid the same hair pulling that I went through. [snip] You guys could probably have a field day with this script! http://www.curvycorners.net/rounded_corners_lite.inc.js A reference to a supposedly bad script posted here and instantly it becomes 404-compatible. I like that ![]() |
#125
| |||
| |||
|
|
"Thomas 'PointedEars' Lahn" <PointedEars (AT) web (DOT) de> wrote in message news:47893DC0.9090501 (AT) PointedEars (DOT) de... McKirahan wrote: You guys could probably have a field day with this script! http://www.curvycorners.net/rounded_corners_lite.inc.js A reference to a supposedly bad script posted here and instantly it becomes 404-compatible. I like that ![]() Sorry, my bad; try this: URL:http://www.curvycorners.net/examples...rs_lite.inc.js |
#126
| |||||||||
| |||||||||
|
|
In comp.lang.javascript message <7dydnX2_8cW6_hXaRVn_vwA (AT) giganews (DOT) com>, Sat, 12 Jan 2008 01:51:14, Randy Webb <HikksNotAtHome (AT) aol (DOT) com> posted: Dr J R Stockton said the following on 1/10/2008 7:13 AM: But not according to the meaning of its identifier, No, the identifier is *very* indicative of what it gives you. It gives you the date the document was last modified. It seems possible that we might agree that the last-Modified header corresponds to the current datestamp of the file. |
|
Wayne has recently pointed out that, in some systems, one can change the content of the file without changing that datestamp. |
|
I have pointed out that one can re-upload with identical content, causing only the datestamp to change. |
|
Therefore, the datestamp is only a weak guide to the real date of the contents of the page. |
|
and such identifiers should be correctly meaningful. And that identifier is. Maybe document.serverFileDatestamp for example; fileDate if something shorter is preferred. Of course, the Last-Modified header needs a corresponding change. It won't happen; but programmers need to realise that the names were badly chosen. See "—And He Built a Crooked House—". |
|
That corresponds to the meaning of "misnomer". document.lastModified is nowhere near a misnomer. It is precisely what it says it is. Not for those who know what "modified" means in ordinary English. |
|
You are the one that seems to think it always indicates "potential significance" which isn't what the property holds. I have been saying that the naive scripter may believe that; and that it is quite likely that the reader of a page whose source contains something like document.write("Last Modified at : ", document.lastModified, "<br>") will believe that what he sees was last changed then. |
|
Out of curiosity though, could you explain what rules you think an OS should follow to know whether a document has truly been modified - according to your expectations - versus minor corrections? It cannot do so. Therefore, it should not emit dates in association with identifiers which imply that that is the case. |
|
The information needs to be inserted at the place where the document is actually edited. |
#127
| |||
| |||
|
|
Yes it does. Perhaps you could post a definition of what you think "modified" means in "ordinary English". |
|
And when you save a file, it is "altered" in that it was replaced. |
#128
| |||||
| |||||
|
|
In comp.lang.javascript message <LIudnbmF8MmQeRfaRVn_vwA (AT) giganews (DOT) com>, Sun, 13 Jan 2008 23:25:50, Randy Webb <HikksNotAtHome (AT) aol (DOT) com> posted: Yes it does. Perhaps you could post a definition of what you think "modified" means in "ordinary English". modify verb (modifies, modified, modifying) 1 to change the form or quality of something, usually only slightly. 2 grammar to act as a modifier of (a word). 3 to moderate. modifiable adj. modification noun 1 the act of modifying or state of being modified. 2 a change of form or condition; something that has been modified • a few modifications to the original plan. ETYMOLOGY: 14c: from French modifier, from Latin modificare. |
|
And when you save a file, it is "altered" in that it was replaced. If the saved version has the same content, byte for byte, it is not modified. |
|
If a new version of an HTML file displays identically in a browser, it is not modified. |
|
If the content of a file is altered, but the datestamp is unchanged, the file is modified. |
|
Therefore, Last-Modified and lastModified are misnomers. |
#129
| |||
| |||
|
|
The OS has no way of knowing that. It is replace. The date it was saved has changed (which is part of the file), so, the file has been "modified' (By your own definition). |
![]() |
| Thread Tools | |
| Display Modes | |
| |