Prev: FAQ Topic - Why does 1+1 equal 11? or How do I convert a string to a number? (2010-02-01)
Next: Can anyone recommend a JavaScript Tree with drag and drop functionality?
From: Scott Sauyet on 12 Feb 2010 06:47 On Feb 11, 4:52 pm, Thomas 'PointedEars' Lahn <PointedE...(a)web.de> wrote: > BTW, there is de.alt.netdigest where funny replies like that can be > submitted to for posterity. Is there such a newsgroup in the Big 8, or is > there such an English-speaking newsgroup, too? If yes, what is its name? There probably is one, but I don't know any details. Sorry. Glad you liked it, -- Scott
From: Jake Jarvis on 12 Feb 2010 07:13 On 11.02.2010 22:52, wrote Thomas 'PointedEars' Lahn: > Scott Sauyet wrote: > >> David Mark wrote: >>> Jorge wrote: >>>> (*)I don't know how to program a VCR. >>> >>> A what? >> >> In the days of yore, as you have perhaps heard, video data was not >> streamed across networks, but encapsulated on shimmering discs, >> called, if legend is correct, deeveedees. But there are stories that >> in the days of the Old Gods, before the coming of the DeeVeeDee, video >> was available on a sequential access machine featuring spinning >> spindles and a lodestone. It is said that these veeceeare machines >> could record video transmitted magically through the air, but only the >> wisest of sorcerers knew how to instruct these machines. These >> sorcerers were known as "geeks", an honorific that survives this day. >> [...] >> ____________________ >> [1] Don't you love the word fAcEtIOUs, with all the vowels in >> order? :-) > > YMMD :) > > BTW, there is de.alt.netdigest where funny replies like that can be > submitted to for posterity. Is there such a newsgroup in the Big 8, or is > there such an English-speaking newsgroup, too? If yes, what is its name? > TIA. de.alt.netdigest's FAQ mentions alt.humor.best-of-usenet -- Jake Jarvis
From: Thomas 'PointedEars' Lahn on 12 Feb 2010 16:48 Jake Jarvis wrote: > On 11.02.2010 22:52, wrote Thomas 'PointedEars' Lahn: >> BTW, there is de.alt.netdigest where funny replies like that can be >> submitted to for posterity. Is there such a newsgroup in the Big 8, or >> is there such an English-speaking newsgroup, too? If yes, what is its >> name? TIA. > > de.alt.netdigest's FAQ mentions alt.humor.best-of-usenet Ah, I usually have that FAQ posting hidden behind a filter so it doesn't get in the way. Fortunately, my news server has the alt.* group. So it's not in the Big 8, but at least English-speaking. Thank you very much. PointedEars -- var bugRiddenCrashPronePieceOfJunk = ( navigator.userAgent.indexOf('MSIE 5') != -1 && navigator.userAgent.indexOf('Mac') != -1 ) // Plone, register_function.js:16
From: Hans-Georg Michna on 13 Feb 2010 07:42 On Wed, 10 Feb 2010 17:42:46 -0500, David Mark wrote: >http://www.dhtmlgoodies.com/index.html?whichScript=drag-drop-folder-tree > >It's free, but hasn't been updated since 2006. That could mean one of >two things. It's such a perfect cross-browser rendition that it needs >no updates (highly unlikely) or it is abandoned. I didn't look into it, >but it is always safest to assume that these things are bunkware. ;) Don't get me started. I just reworked a tree implementation based on very old, abandoned MTM code that no longer worked, except on Internet Exploder. Somebody had made the ghastly mistake to download some hobbyist code that was abandoned very nearly at the same time and never updated again since about 2001. Some typical statements in the code (from memory): MTMSubMenu.expanded = (MTMSubMenu.expanded == true) ? false : true; xyz = (abc != "") ? abc : ((def != "") ? def : ""); Hints for beginners: Check which of the parentheses are superfluous (would you have guessed?), but there's a lot more that is superfluous or rather wordy. If you see such stuff, you can guess what the bigger, more complex logic looks like. I went through the code with an iron broom (German saying) without even trying to understand all of it. Removed the Sarissa library. Removed all the browser sniffing and ifs that check browser type stuff, only in one case replacing it with a feature test (in a stylesheet generator routine). Removed all timing checks (at least half a dozen setTimeout calls) that were sprinkled all across the code and replaced the communications code with a modern Ajax routine. Brought down the code from a total of over 93 KB to less than 19 KB. Then I tested with some browsers, and each browser choked on a different defect that was still in the code. I was particularly unimpressed with the timing and browser sniffing code sprinkled all over the place. Why could the guy not determine when the data was loaded and then process it without always again checking and waiting in different places in the code? Took me about two days altogether, until it was running smoothly and also faster. I reckon I had a considerable risk of failure, i.e. too many bugs to get out, too much time needed to analyze the code, etc. But it works now in at least four major browsers, which is a significant improvement. Rewriting it from scratch would have been much better, but may have taken more than two days, and my client is not willing to pay for that right now. Anyway, one of the lessons derived from this example is to look for code that is good to start with and that is continuously being maintained. If you cannot make reasonably sure of that, it may be better to write your own. Hans-Georg
From: Laser Lips on 18 Feb 2010 11:11
> As long as my English is better than your Dutch, > you should not complain in this international NG, methinks. > Evertjan. Sorry Evertjan, was just being Pedantic. Well, I managed to create my own script which has drag and drop as well as rules you can set for nodes which can and can't be dragged on certain parents. Also has the ability to reorder leaf nodes. Yes, I did learn that to make a good tree script. It's logical to use nested unordered lists. Graham |