- 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
The real wtf is that they still use this:
<td height="30"><img src="images/spacer.gif" height="30"></td>
to generate the layout. (or that I didn't read every post to see if someone had posted this already)Captcha: 'Bedtime' so good night.
Admin
The real wtf is that they still use this:
<td height="30"><img src="images/spacer.gif" height="30"></td>
to generate the layout. (or that I didn't read every post to see if someone had posted this already)Captcha: 'Clueless' which describes this forum software for not replacing < with <
Admin
...and for posting < as the string '<' and not the less than sign that is used to start html tags. Perhaps there's a
Admin
That most certainly looks like ASP.NET code, incorrectly done client-side instead of server-side.
Captcha: 1337. 1337 indeed. "1337 do it Client-side"
Admin
It only does that if it thinks you're using a webbrowser it doesn't approve of. Convince it you're using Firefox or IE, and it should work fine. (Watch what happens when I quote you...)
Admin
I think they don't want to be accused of marketing to minors again, and they figure the youngsters are using FF and all of the older crowd is probably using IE, so...
Admin
h i l a r i o u s
IE users deserve cancer anyway... (ooh, harsh)!
Admin
To start smoking is an act of stupidity. To continue means either addiction or that the stupidity is permanent.
Oh, some smokers will be offended by this posting. Trust me, this is nothing like trying to get the smoke out of my lungs and clothes every time I went to a bar or restaurant. If air pollution standards were enforced, smoking would be prohibited immediately in all public places.
Admin
Maybe the IT-Web department is smoking something other than tha standard factory product...smiles...
OK...makes some bean dip!
Dave Brooks
BrookStone5 Communications
Admin
From a JSP programmer too. It figures.
Admin
So you guys know ... IETab occasionally renders differently than a regular IE window. Odd, I know ... but sometimes it will.
captcha: paste
Admin
i think this guy hit the nail on the head... they hired a techie to come up with the least compatible code out there so that no one would end up at the quit smoking page.. its brilliant
Admin
There's a very good reason you can't do that; to be able to do that would be to enable spoofing...
Imagine this scenario:
Instead of the complex solution, why not simply send the domain-A page when you go to http://domain-B, and have all the links (or simply the "BASE HREF") point to http://domain-A/page? No extra roundtrip, and the user happily ends up on domain-A.
<font size="-3" >* (If you don't know what goatse is, consider yourself lucky, and PLEASE do not search for it... I accept no responsibility for any eventualities if you do.)</font>
Admin
I'm with MSIE and too see just a blank page.
Is that really news-worthy? I encountered a bunch of similar sites. Actually nowadays sites that fail to work if you have healthy security settings (mean activeX disabled, flash disabled, sctipting disabled) is the big majority.
Fortunately the world is big enough and I can live with not visiting any of them. :)
Admin
What are they trying to prove by using Visual Studio .Net "<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">" to generate a page just to redirect to a JSP page. From Microsoft(ASP.Net) to Sun(JSP) :)
Admin
Actually my first thought was also about crawlers...but cloaking is not only keeping your pagerank low - it forces it to stay at 0.
Admin
our lives are everywhere?
Admin
..and click() function does very important thing - it clicks - probably that's the only way to produce this sound...(provided you've got IE, appropriate Windows' sound's settings, etc.)
Admin
funny thing is, the tartget of the redirection actually works very well on firefox.
try it:
http://smokersignup.com/signup/index.jsp?pc=MAR2006
Admin
well, since i worked with the click event handler already i wish to share to the author of the marlboro page that it is indeed possible to make it work under all browsers
function linkClick () { var executeAction = true; if (this.onclick) { executeAction = this.onclick({type: 'click'}); } if (executeAction) { open (this.href, this.target ? this.target : '_self'); } }
function initLinkClick () {
}
put onLoad="initLinkClick()" wherever you like
Admin
You know, we had it like that, but we had to change it exactly to calling the "click()" method (for IE only). The reason? If you set document.location in IE, the browser does not send HTTP referer to the server. Which is another WTF of its own :(
Mike5
Admin
css:
a, a:visited { color:#f00; }
Admin
I always preferred the <META http-equiv=...> myself
Admin
Though I suppose if it is on the same server, you should just use something server-side to fix it.
Admin
Oh, I forgot to explain: This wasn't for automatic redirect, this was for onClick event.
Captcha: error
Mike5
Admin
Except that a form should NOT submit when the Enter button has been pressed (in other words, auto-selecting the submit button and activating it). This can cause real annoyances if you accidentally and unknowingly deselect a textarea you're currently typing in and you fancy having a linebreak in your input.
For that behaviour you have to look towards (you guessed it) Microsoft, who also came up with the superfluous "Go" button; except that everybody (even AOLers) already knew that pressing Enter after typing a URL in the location bar directed the browser to that location.
So... what has happened here that the incorrect behaviour has been corrected. However, the WTF is that it has been reimplemented as a cack-handed way of preventing double submission.
Due to the MOST POPULAR BROWSER having this crap behaviour, everybody now has to support it (note Google's helpful text on their home page; they even tell you to do it)
Admin
You're right! Now that Microsoft have invented Tabbed Browsing, the world is perfect.
Admin
Yes, because using navigator.userAgent is so reliable...
On the other hand, it is the next thing people learn after proprietary coding, so why should they get a shortcut to correct code without traveling the same route everybody else did?
Admin
That's one click/keypress to focus the location bar, plus another keypress to "Go" (maybe some browsers have a single keypress for that, but I don't know of it, and in any case it's not obvious), versus one click on the "Go" button (and no, this isn't the same as Reload/Refresh)? Doesn't seem superfluous to me.
Admin
OH MAN - I totally wanted to take down the cigarette website as a vigillante coder - i thought they had an sqlstring parameter exposed.
Admin
wow MrMoron - this was just an example that it does work for other browser and the navigator.userAgent is only needed to check if the browser is IE or not - anything else is not important and navigator.userAgent SURE does return Internet Explorer correctly
now, begone you smartass
Admin
Very insightful.
Admin
They're probably want your IP address inside NAT, not you public IP address.
Admin
Grow the fuck up. I love smoking. You whack off.... that controls you right?
Admin
Dahhhh I don't get the second part of your question here. The first part I would assume an apache directive like Redirect 303 foo. I don't know what the heck you mean by server transfer through.
Admin
I think it's a pretty safe bet the IDE is exactly to blame:
"Hmm how the hell am I going to get over there. I don't have that url at design time. I know I'll just drag this hyperlink onto my web form, and then I can load the url in an onload handler or something and then I can trigger the link click myself. Oh, I have to make sure i run events clientside."
Admin
The JavaScript code block is now visible on this page. Apparently the dev team forgot to comment out the scipt tags. If you have any more input or corrections please feel free to let us know.
Thanks,
Adhost Support
Admin
Could they have done it to prevent spiders from following the link? I would doubt that a spider could be clever enough (unless it has an embedded instance of an actual browser or implements JS) to be able to follow this link (BTW, I have no knowledge about the state of today's spiders)... Still, it's a big WTF not to test something with Firefox prior to deployment.
Admin
omg, I just said WTF out loud with this one! What the heck were they smoking?!? oO
Captcha: zork!
Admin
In my experience, these happen as follows:
Coder doesn't know how to do it.
Coder tries a few things, maybe googles a bit, maybe asks a cow-orker.
Coder finally hits on something that works for them, in their browser.
Coder stops there, no further testing. Hey, the problem is solved, right? And there are plenty more bugs to be fixed, and plenty more features on the list just waiting to be turned into
bugscode.Admin
"turned into bugs code" had strikethrough of "bugs" when I was editing it. Of course, we all know the real WTF is ....
Admin
About 3000 people die every day
Admin
About 3000 people die every day
Admin
Just for record. Today they use another trick - there is A HREF with redirection, (If your browser does not redirect you momentarily, please click) but in div with style="display:none;" ... big improvement ...
Admin
About Redirect to other web address // html code --
http://html-lesson.blogspot.com/2008/06/redirect-to-web-addres.html
Admin
me and my girlfriend have smoked marlboros for years and will not smoke nothing else but now theres a problem with your fsc on the packs the cigs dont taste the same it makes her (girlfriend) there awfull i dont know what yall are putting in there but please go back to regaler old times we are having to run all over town trying to find the ones without fsc on the pack SOOOOOOOOOOOOOOO PLEASE GO BACK TO THE GOOD ONES WITHOUT FSC PLEASE SSSSSSSSSSSSSSSTOP PLEASE WE LOVE MARLBORO CIG NOT TRYING TO BE RUDE THANKS.........
Admin
me and my girlfriend have smoked marlboros for years and will not smoke nothing else but now theres a problem with your fsc on the packs the cigs dont taste the same it makes her very sick (girlfriend) there awfull i dont know what yall are putting in there but please go back to regaler old times we are having to run all over town trying to find the ones without fsc on the pack SOOOOOOOOOOOOOOO PLEASE GO BACK TO THE GOOD ONES WITHOUT FSC PLEASE SSSSSSSSSSSSSSSTOP PLEASE WE LOVE MARLBORO CIG NOT TRYING TO BE RUDE THANKS.........