- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Please keep Sasha's co-worker away from keyboards. Accidents are bound to happen otherwise.
Admin
please keep sasha's co-worker away from the gene pool. Accidents are bound to happen otherwise.
Admin
Never argue with an idiot, they drag you down to their level and then beat you with experience.
Admin
please keep sasha's co-worker away. Accidents are bound to happen.
Admin
Waitaminute, I had my +5 Cluebat around here somewhere...
Admin
The problem is that a lot of people think like this , including my boss ^^
Admin
That's nothing.
I can write and print a letter using nothing more than Windows? I've got a batch file for it, it contains START WINWORD
Admin
Well, you could use VBScript. No Javascript at all.
Admin
I like to see his code that opens up the browser window again.
Admin
VB + stupidity.
I don't see an wft?
Admin
Sometimes the line between a "fundamental underpinning" and "being open to new methodologies" is very thin.
I remember I had to lecture my thesis professor on why just making a program or a function unconditionally multithreaded (despite of data dependencies, sync delays etc.) and spamming it across a dozen threads on a dual (or even worse, a single ) CPU system was not worth the time benchmarking.
Also had a hard time explaining why sometimes spamming a parallelized function that would run for a couple seconds anyway across a dozen networked MPI clients doesn't always pay. Oh well...
Admin
This will only work with IE, not with actual browsers.
Admin
Sasha is not credit to team
Admin
Needs more OCR and wooden tables
Admin
I would seriously question the continued retention of Sascha's co-worker. How can anyone write out the script block (<SCRIPT LANGUAGE='JavaScript'>) without realising that they're emitting Javascript? Talk about cargo cult, the guy clearly has no idea what his code is doing.
Admin
I like my Daily WTFs like I like my women:
Short, sweet, and just a little bit dumb.
Admin
I've got a way that REALLY doesn't use javascript:
Although that only works on some OS's
Admin
That's no problem, you can write some code to recognize the browser, and if it's not the correct one (MSIE), redirect to an error page.
Admin
This was actually not as bad as I had feared. I clicked the cut-text entirely expecting to find some server-side code that triggers a code exploit in the browser, causing it to crash. If the browser dies, then the window ends up closing, right?
Admin
I like Comments like I like my coffee, cold and bitter.
Admin
That wouldn't be a WTF, that would be a novel solution.
Admin
I doubt that was actually the case. The point was to carry the operation out from the server side, which was what happened. Yes, that doesn't literally comply with Sascha's command to "do it without JavaScript", but it complies with the spirit in which it was intended: the server side initiating what's normally client-side behavior.
Admin
headdesk
And by head I mean Sascha's coworker's head.
Admin
I like my coffee like I like my men - strong and black
Admin
Fork. Eyeball.
Admin
Admin
He could have ...used an activex plugin ...that installed a toolbar ...that looked for a custom code dongle ...that would close the window ...that acted a lot like javascript ...but isn't! because we don't need javascript to do this
hat would have shown Sascha...asking stoopid questions.
Admin
I like my coffee sweet and creamy...
Admin
I thought HTML was the underpinning of the web and Javascript was a bloated tumor hanging off the side.
Admin
That would just give you a JS error and no text, nice idea though!
Admin
Admin
Damn, I was totally going to steal that idea and use it. Thanks for the warning. Boy would I have looked dumb if I had turned that in to my boss and it hadn't worked.
Admin
Actually,
It can work: Have a COMET/AJAX connection open to server and have server send the message at will.
Admin
I like my women like I like my coffee...
Ground up in the freezer
Admin
This comment got wrote without writing the comment.
Admin
It puts the lotion on its skin
CAPTCHA - "abbas"...as if one wasn't enough already
Admin
Who's saying what in this article? Was it Sascha that was saying that it can be done or his/her coworker? It's not very clear to me.
Admin
Admin
Pardon? Do you understand how the intar-web works? You have servers serve up content to clients? The co-worker's solution isn't initiating ANYTHING any more than any other web page served up from a server is. The server emits code, which, IF executed, can cause a window to close. The server does not, however, close the window. Just try loading a page with that code while using NoScript...you'll quickly see that the server isn't controlling the browser magically.
Admin
Admin
Now, that is sad. thats past sad. Its just.... WTF.
Admin
Admin
I like Comments like I like my coffee, First.
(Just to piss off the angry people out there)
(NotCaptcha: Commoveo. Slang for "Come over", as in "Hey, Tina. Commoveo here!".)
Admin
Ah hell...WTF?
Admin
Admin
Oh my God, who touched Sasha? Who touched my gun?!
Admin
Ah, I was looking for this comment and was going to add it if it didn't exist :)
By the original logic, any javascript that closes a window is 'the server closing the window' because that's where the JS originated... patently absurd
Admin
Stop stealing my lines!
Admin
Do you know what the "J" in AJAX stands for? I'm guessing the answer is no.
Admin
I prefer tall, smart and sweet. With long legs, full lips, sparkly eyes, an adventurous spirit and long long hair.
I know my example is contrived by the dual applicability domains involved, but the females-are-awesome part may yet shine through.