• Math Penguin (unregistered)

    As a web designer, things like this make me cringe.

    Seriously, what possible logic goes into something like this?

  • Yep (unregistered)

    2nd?!

    All I gotta say is: Wow.

  • (cs)
    <meta name="description" content="You can't see me.">
  • (cs)

    It may be a generated page that automatically redirects to the right place based on server variables....

    Although since the link still has "MAR2006" in it, that's questionable.

  • Sam B (unregistered)
    <meta http-equiv="Refresh" content="1; url=http://the/concept/of/this/tag/eludes/smokers" />
  • Toy (unregistered)

    Pure all-around incompetence.

    I am pretty sure the guy who coded this already knew that he was improvising while he was writing this.

    Thus: I'm going to become rich and famous after I invent a device that allows you to stab non-google-familiarized coders in the face over the internet (TM: bash.org)

  • Senitor Khan (unregistered) in reply to Sam B

    Content? Microsoft Visual Studio .NET 7.1

    For... a refresh? GOD NO!

  • secundum (unregistered) in reply to Math Penguin

    <quote>now has a teases the user via setTimeout, making the user's anticipation and excitement grow for a full second until they're redirected</quote>

    No they are not. It waits a second before displaying the "Your browser does not support javascript" message.

  • d000hg (unregistered)

    I want more follow-ups from classic WTFs. Where IS Paula for instance?

  • Andy L. (unregistered)

    "it's almost accessible to users with JavaScript."

    You probably meant "without JavaScript" there?

    Ed: Fixed!

  • (cs) in reply to Math Penguin
    <meta> tags were removed; now how will search engines circa 1996 know how to index the content?

    Maybe this will be the first site that Cuil will be able to properly index, it sounds almost as messed up as it.

  • (cs)

    TRWTF is Alex visiting Marlboro.com

  • Where theres smoke (unregistered)

    Look, some lowly programmer is doing his very best to protect children from smoking ads, without the evil corporate bosses getting wise to his work. Now you've gone and blown his cover. Nice work, jackass.

    Anyway, we warned the MSIE users of the dangers of their browser (and Javascript) now it can actually kill them by enticing them to smoke. Is it any wonder Firefox market share is growing?

  • (cs)

    Gotta love a website that unintentionally blocks out some of their customers because of their browser. It's almost as if they wanted to promote IE more than their own products. Are they in any way affiliated with Microsoft?

  • (cs) in reply to Where theres smoke
    Where theres smoke:
    Look, some lowly programmer is doing his very best to protect children from smoking ads, without the evil corporate bosses getting wise to his work. Now you've gone and blown his cover. Nice work, jackass.

    Anyway, we warned the MSIE users of the dangers of their browser (and Javascript) now it can actually kill them by enticing them to smoke. Is it any wonder Firefox market share is growing?

    Post nominated for blue color!

    Smash King:
    It's almost as if they wanted to promote IE more than their own products. Are they in any way affiliated with Microsoft?

    Not really. If they were, they would do the redirect using Silverlight and a proprietary COM component.

  • (cs)

    So... what, exactly, does Marlboro put in the cigarettes that they give to their web developers?

  • Steve (unregistered)

    TRWTF's are:

    1.) Hosting with ASP.Net, and coding with .jsp (Real Developers will also spot TRWTF is for using .Net or IIS in the first place)

    2.) Using JavaScript to redirect

    3.) "updating" the website to XHTML only to keep deprecated crap like: language="javascript" in.

    4.) Using JavaScript to un-hide the hidden content if the user doesn't have JavaScript enabled... then add insult to injury by not making any physical call to the check() function.

    5.) Having a domain "Marlboro.com", then not actually using it for anything but a re-direct.

    6.) Not showing the super cool cowboy enjoying a soothing relaxing smoke.

    7.) Not following the Daily WTF, and thus realizing your code is posted, and you look like a tool!

  • krupa (unregistered)

    Even when I was smoking Marlboro cigarettes I wouldn't have spent so much energy trying to view their website. It's like creating a user account on a toilet-paper manufacturer's site.

    "But if I submit enough Squares, I can redeem them for Quilted Northern branded merchandise!"

  • MC (unregistered)

    They declare the namespace to be xhtml but the code is not xhtml complaint. The script tags don't have the required "type" attribute, for one. They only have the language attribute.

  • Charles400 (unregistered)

    WARNING: The Surgeon General has determined that using Microsoft Internet Explorer maybe hazardous to your health.

  • (cs)

    What I don't understand is the whole point of the Marlboro website. Or any other tobacco company site. Who the hell has absolutely nowhere else to go and visits this sites?

  • Massimo (unregistered) in reply to snoofle
    snoofle:
    So... what, exactly, does Marlboro put in the cigarettes that they give to their web developers?

    Blue color. Now.

  • m0ffx (unregistered) in reply to DOA
    DOA:
    What I don't understand is the whole point of the Marlboro website. Or any other tobacco company site. Who the hell has absolutely nowhere else to go and visits this sites?
    Well, whoever submitted this WTF, for one.
  • Brent H. (unregistered) in reply to Sam B
    Sam B:
    <meta http-equiv="Refresh" content="1; url=http://the/concept/of/this/tag/eludes/smokers" />

    Or how about response.redirect("http://go/someplace/else")?

    I think that's what is implied by the edit at the end of the article. IMHO, the real WTF is that they aren't redirecting with server code.

  • Epynom (unregistered)

    ummm...

    Response.Redirect( someURL); ?

    If you're running .Net, Use it!

  • a real programmer (unregistered) in reply to Steve
    Steve:
    TRWTF's are:

    3.) "updating" the website to XHTML only to keep deprecated crap like: language="javascript" in.

    Oh get real, when exactly did it become a crime to not force your customers to use the latest resource hogging browser of your choice?

  • Jon (unregistered) in reply to Smash King
    Smash King:
    Gotta love a website that unintentionally blocks out some of their customers because of their browser. It's almost as if they wanted to promote IE more than their own products. Are they in any way affiliated with Microsoft?

    Evil begets evil ...

  • Rick (unregistered)

    So, what does the loc function do? It appears to set an unused variable, and call it good.....

  • 301 Fan (unregistered)

    Why use a simple 301 when clunky js will work just as well, except when it doesn't?

  • brunascle (unregistered) in reply to Rick
    Rick:
    So, what does the loc function do? It appears to set an unused variable, and call it good.....

    it set's window.location, which will redirect the browser. the default scope is the window object, so you can access its functions and properties without typing window.

  • Rick (unregistered) in reply to brunascle
    brunascle:
    Rick:
    So, what does the loc function do? It appears to set an unused variable, and call it good.....

    it set's window.location, which will redirect the browser. the default scope is the window object, so you can access its functions and properties without typing window.

    Ahh... lack of JS knowledge fail....

  • Izzy (unregistered)

    The one second delay is so you'll have time to light up.

  • my name is missing (unregistered)

    This is an official Your Brain On Tobacco site.

  • (cs) in reply to Epynom
    Brent H.:
    Or how about response.redirect("http://go/someplace/else")?
    Epynom:
    Response.Redirect( someURL); ?
    We have the solution for both Java and .NET platforms here!

    TRWTF is that .Net Capitalizes The Methods When They Should Be lowercase. Classes Are Capitalized, methods are not. ;)

    Anyway, either the <meta> refresh tag or response.redirect methods are way more effective than any kind of JS redirect. Why use JS at all???

  • (cs) in reply to my name is missing

    Technically, the "Refresh" header is non-standard, as is its <meta http-equiv> equivalent. </pedant>

  • Don't help them, they're evil (unregistered)

    Well all the hip kids today are using Firefox... ...and we're not allowed to advertise to kids...

  • Also a big geek (unregistered) in reply to snoofle
    snoofle:
    So... what, exactly, does Marlboro put in the cigarettes that they give to their web developers?
    Pure, lab-grade stupid, that's what.
  • RowanTheOrangUtan (unregistered)

    Why didn't they put the call to check() inside a finally block? They ALWAYS execute.

  • pmv (unregistered)

    This is truly a gem. Clearly Phillip Morris's cousin's brother's son took a class in Bizzaro Web Development. Either that or it was a spy from the Camel Cigarettes people.

    CAPTCHA: damnum (damn-um?)

  • CynicalTyler (unregistered)

    Maybe it's because I'm not a smoker and I don't get it, but isn't SmokerSignup.com like... the worst name for a website ever?

    "Admit that smoking defines your character and affixes you with an unremovable label! Join our website!"

    "Does the pitiful dangled-carrot of potential coupons make you want to self identify as a rotting, cancerous mass? Join our website!"

    It would be less insulting if they called it SuperHappyFunTimeCigaretteClub.com

  • Mitch (unregistered) in reply to d000hg
    d000hg:
    I want more follow-ups from classic WTFs. Where IS Paula for instance?

    Paula? I prefer Irish Girl.

  • Edward Royce (unregistered) in reply to RowanTheOrangUtan
    RowanTheOrangUtan:
    Why didn't they put the call to check() inside a finally block? They ALWAYS execute.

    Oh don't you start that up again.

  • (cs)

    "compromosing"?

  • Francisco (unregistered) in reply to krupa
    krupa:
    Even when I was smoking Marlboro cigarettes I wouldn't have spent so much energy trying to view their website. It's like creating a user account on a toilet-paper manufacturer's site.

    "But if I submit enough Squares, I can redeem them for Quilted Northern branded merchandise!"

    Over here, i.e. in the UK, there is a toilet paper manufacturer that puts tokens on the wrapping of the product but you can only redeem the tokens on its website.

    Ps. I haven't been to it but noticed it the other.

    Pps. Marvin (Mode:=On)

    Just when you thought that life could not get weirder, it does.

    Marvin (Mode:=Off)

  • Da' Man (unregistered)

    Well, just enough time to smoke one before this page loads...

  • Aaron (unregistered)

    If you're bored, go let 'em know:

    http://www.philipmorrisusa.com/en/cms/contact_us/contact_us.aspx?src=footer_nav

  • Scott (unregistered) in reply to secundum

    Which is displayed using... Wait for it....

    Javascript.

  • Dirge (unregistered)

    I once saw a website generated by MS Word where the pages appeared normal at first, but in which the links on the page (which were "button"-type images of some kind) weren't working for some users.

    When I looked a little closer, I discovered that each image had its own client-side image map attached to it to determine where the user had clicked (even though they were individual buttons). The image map called JavaScript functions which performed a redirect just like the code from the Marlboro site.

    If I remember correctly, the URL to redirect to was passed from the image map. So the link in the image map would have been something like "javascript:DoRedirect("http://someserver/somepage.asp");".

    At least it wasn't a server-side image map, I guess.

  • Lazy_wonko_Not_Logging_in (unregistered) in reply to Epynom
    Epynom:
    ummm...

    Response.Redirect( someURL); ?

    If you're running .Net, Use it!

    Response.Redirect sends a 302 response to the browser (Temp Redirect) Google and other search engines will pick up on this and not index the page that you redirect to. This needs to be a 301 Redirect, which Im not sure you can do in .net without fiddling)

    Although I seriously doubt that they follow the JS redirect either...

    At least at the moment they will locate and follow the link on the page, unless of course google picks up on the fact that the link is in a display:none block and ignores it?

  • Lazy_wonko_Not_Logging_in (unregistered) in reply to pmv
    pmv:
    This is truly a gem. Clearly Phillip Morris's cousin's brother's son took a class in Bizzaro Web Development. Either that or it was a spy from the Camel Cigarettes people.

    CAPTCHA: damnum (damn-um?)

    <annoying> Wouldn't his cousins brother also be his cousin? </annoying>

    Sorry.

Leave a comment on “Follow-up: Redirection with Smoke And ... Smoking”

Log In or post as a guest

Replying to comment #:

« Return to Article