Comment On Redirection with Smoke And ... Smoking?

Jeremy was kind enough to share a "live WTF" with us all. Although I receive a fair number of submissions that point to a publicly accessible website, I rarely link to the site in question. As bad as it is that Mom-And-Pop-Store.com has a "SqlString" parameter on their viewProduct page, I doubt they'd appreciate it when someone went and replaced "SELECT ... WHERE ProductId=43" with "DROP DATABASE". Not that any of you would do that or anything. [expand full text]
« PrevPage 1 | Page 2 | Page 3 | Page 4Next »

Re: Redirection with Smoke And ... Smoking?

2006-08-17 15:02 • by Randyd
maybe all they want is smokersignup guys who actually use ie... in some sort of wierd cross-pollination scheme.

Re: Redirection with Smoke And ... Smoking?

2006-08-17 15:03 • by Volmarias
Funny, the page worked in Opera. I guess it's nice that they do a lot of work pretending to be IE so that other, poorly coded pages work nicely.

Still, this is a pretty big wtf. If they're using an anchro tag for this already, why not go the extra mile and just add "If you are not redirected automatically, click here" ? I mean, really.

Re: Redirection with Smoke And ... Smoking?

2006-08-17 15:03 • by snoofle

It's enterprisey! No more links going to where you (the user) think they might be going :)

Re: Redirection with Smoke And ... Smoking?

2006-08-17 15:03 • by cooldudman

Incredible!!


Follow the example of the tobacco company. 


Only allow your website to be viewed in the BEST BROWSER EVER!

Re: Redirection with Smoke And ... Smoking?

2006-08-17 15:04 • by Jojosh_the_Pi
Remember those lawsuits targeting Philip Morris, and they had to pay up? (Not to mention the money they have to spend on commercials telling people it's unhealthy to smoke). Apparently, the money came out of the IT budget.

Re: Redirection with Smoke And ... Smoking?

2006-08-17 15:05 • by mlathe

technically it should be a 301(MOVED_PERMANENTLY ) redirect


300 (SC_MULTIPLE_CHOICES) implies there is a choice of multiple redirects


http://jakarta.apache.org/commons/httpclient/redirects.html

Re: Redirection with Smoke And ... Smoking?

2006-08-17 15:08 • by DigitalLogic
86630 in reply to 86623
I'm using Opera too, and I stared at it for a 3-4 minutes trying to figure out what was wrong.

Besides adding "If you are not redirected automatically, click here", I think they should have gone the extra mile and used the BLINK tag.

Re: Redirection with Smoke And ... Smoking?

2006-08-17 15:08 • by richleick
What I find funny is that the site runs Java Server Pages and yet they code for IE.  And who says the two can't play nice together (Sun and Microsoft that is).

Re: Redirection with Smoke And ... Smoking?

2006-08-17 15:09 • by mlathe
86633 in reply to 86626
I would guess that making it difficult to access this court order content, would be in violation of the settlements against the tobacco industry. Albeit that they maybe didn't do it on purpose, but one must remember that it is in the industry's best interest to limit the number of people who see these sites

Re: Redirection with Smoke And ... Smoking?

2006-08-17 15:10 • by little whipper snapper
Say what you will about Visual Studio 2003 (7.1), the IDE was not responsible for this monstrosity.

Now just *how* the author of the code arose at such a situation is left as an excercise for the reader.

Re: Redirection with Smoke And ... Smoking?

2006-08-17 15:12 • by Mi nombre
Perhaps they are trying to collect as much data about user computers as possible, and since FireFox doesn't offer nearly as many tidbits, they are counting on their visitors who are smart enough to use FireFox to then open the page in an IE Tab ( https://addons.mozilla.org/firefox/1419/ ).


CAPTCHA - photogenic

Re: Redirection with Smoke And ... Smoking?

2006-08-17 15:13 • by marvin_rabbit
86638 in reply to 86625
cooldudman:

Incredible!!


Follow the example of the tobacco company. 


Only allow your website to be viewed in the BEST BROWSER EVER!


... by volume.

Re: Redirection with Smoke And ... Smoking?

2006-08-17 15:13 • by WeatherGod
<bad joke>

Well, you need to open a Window to vent any cigarette smoke from your house.

And smoking is bad for Foxes, Penguines, and Apple trees...

</bad joke>



Re: Redirection with Smoke And ... Smoking?

2006-08-17 15:17 • by eR0CKing.blogspot.com
86641 in reply to 86634
Well, it worked fine with the 'IE Tab' add-on for firefox.

https://addons.mozilla.org/firefox/1419/

-eR0CK

Re: Redirection with Smoke And ... Smoking?

2006-08-17 15:17 • by snoofle
86642 in reply to 86633

mlathe:
I would guess that making it difficult to access this court order content, would be in violation of the settlements against the tobacco industry. Albeit that they maybe didn't do it on purpose, but one must remember that it is in the industry's best interest to limit the number of people who see these sites


Maybe, but I don't think the marketing folks at the Tobacco co's are stupid. Surely they've long figured out that nobody reads warning labels (or at least, nobody takes them seriously, or even cares). It seems to follow that anyone who even bothers to click through to the site isn't going to change their habit because of the text on some web page.


Face it, if someone at work offered you some home cooked brew, and SERIOUSLY told you that it could cause you to die, how quickly would you drink it? Smokers know all the risks, but don't care (I was one of them - it took my second kid to wake me up - yes, I was just that stupid).

Re: Redirection with Smoke And ... Smoking?

2006-08-17 15:19 • by Opera Fan
Alex Papadimoulis:
Now, if you were using something other than Internet Explorer, you likely experienced a familiar sight: a blank page as a result of the site being coded for IE only.


Thought I'd say this:

It worked in Opera. [oddly]

Re: Redirection with Smoke And ... Smoking?

2006-08-17 15:21 • by Can't see me
Well, they certainly didn't copy their code from this site:

http://www.adhost.com/support/site_building/redirect/javascriptredirect.shtml


They use location.href=""


Re: Redirection with Smoke And ... Smoking?

2006-08-17 15:25 • by Raven
So what?

A leading IT recruitment company uses javascript for their links in the menu. To display a simple 'log in' link (in norwegian 'Logg inn') it looks like this.

<table node="" class="navi" onmouseover="this.className ='naviOver';" 
onmouseout
="this.className ='navi';"
onclick
="loadPage('/MPNet3/startContent.asp?','')"
border="0" cellpadding="0" cellspacing="0" width="148">
<tbody><tr><td align="left" valign="top" width="16">
<img src="Images/pixel.gif" alt="" border="0" height="1" width="16"></td>
<td style="padding: 2px 0px;" height="12" valign="middle" width="157">
Logg inn</td></tr></tbody></table>

The porpose might that the links should still have the same color after they have been clicked (btw; is this what they call AJAX??). The drawback is that mozilla/firefox won't show the pointing hand cursor to show that this is a link.

You can watch it here.

Re: Redirection with Smoke And ... Smoking?

2006-08-17 15:27 • by Anonymous
This actually makes a lot of sense: Since most crawlers will not execute Javascript, they're effectively preventing automated crawler redirects. This may help keeping the google ranking low.

Re: Redirection with Smoke And ... Smoking?

2006-08-17 15:32 • by GoatCheez
OMG!?!??!?!?!?! Naming the actual company!??!?!?!! Did someone's spherical devices drop this morning?!?!?!?! ;-P

Ahhhhh.... very good... very good.... good good good...... Thank you Alex :-)

Maybe this is actually a really inventive way to check for browser support of the site?

Survey Says?
NO

lol
At least they didn't use an activex control to move the mouse to the location bar and then type the replacement in lol.... Maybe they're saving that for version 2.0 lol...

Re: Redirection with Smoke And ... Smoking?

2006-08-17 15:35 • by Elwillow
86649 in reply to 86644
Anonymous:
Well, they certainly didn't copy their code from this site:

http://www.adhost.com/support/site_building/redirect/javascriptredirect.shtml


They use location.href=""




I can't see it!

they didn't escape the <script> tag...
maybe it's the same company?

You can set up a page redirect using javascript. Copy and paste the following code. Place the code in the header. 
</p>
<p>
<script>
<br>
location.href = "http://www.destination.com/location.html"
<br>
</script>
</p>
<p>
Then change the href location to whatever page you would like to be redirected to.

Re: Redirection with Smoke And ... Smoking?

2006-08-17 15:35 • by John Bigboote
86650 in reply to 86646
Anonymous:
This actually makes a lot of sense: Since most crawlers will not execute Javascript, they're effectively preventing automated crawler redirects. This may help keeping the google ranking low.


There are ways to do this that are significantly less mentally defective. Like the well-known, well-documented, and universally-supported window.location.href.

Re: Redirection with Smoke And ... Smoking?

2006-08-17 15:36 • by James
86651 in reply to 86650

It's on purpose.


They figure people who are smart enough to use Firefox are not stupid enough
to smoke at the first place, so there's no reason to let them just come and
waste bandwidth.

Re: Redirection with Smoke And ... Smoking?

2006-08-17 15:36 • by Sean
Oh, I get it.  This is a stop-smoking campaign targeted at Firefox users.

Re: Redirection with Smoke And ... Smoking?

2006-08-17 15:36 • by Anon

dande:
Since smokers do not show signs of intelligence in the first place, maybe the people at Marlboro figured they did not have to try it with any other browser than IE?

Just a thought...
      


Considering that I'm smoking a Marlboro as I write this, I think I find that comment offensive :)


Captcha: clueless (Guess it kind of fits)

Re: Redirection with Smoke And ... Smoking?

2006-08-17 15:37 • by Justin C
86654 in reply to 86645
Raven:
So what?

The porpose might that the links should still have the same color after they have been clicked (btw; is this what they call AJAX??).

You can watch it here.


That's a much better way to keep links the same color than...let's say...writing two lines of CSS. :-/

Re: Redirection with Smoke And ... Smoking?

2006-08-17 15:44 • by Maliburro Man
86655 in reply to 86654
Although JS wouldn't be the best tool for the job here... at least make your life
a bit easier... its a _ONE_ liner dude!

<
script>
location.href = "http://smokersignup.com/signup/index.jsp?pc=MAR2006";
</script>

<sig>Maliburro Man</sig>

Re: Redirection with Smoke And ... Smoking?

2006-08-17 15:46 • by noname
86656 in reply to 86645
Raven:
So what?

A leading IT recruitment company
uses javascript for their links in the menu. To display a simple 'log
in' link (in norwegian 'Logg inn') it looks like this.

<table node="" class="navi" onmouseover="this.className ='naviOver';" 
onmouseout
="this.className ='navi';"
onclick
="loadPage('/MPNet3/startContent.asp?','')"
border="0" cellpadding="0" cellspacing="0" width="148">
<tbody><tr><td align="left" valign="top" width="16">
<img src="Images/pixel.gif" alt="" border="0" height="1" width="16"></td>
<td style="padding: 2px 0px;" height="12" valign="middle" width="157">
Logg inn</td></tr></tbody></table>

The
porpose might that the links should still have the same color after
they have been clicked (btw; is this what they call AJAX??). The
drawback is that mozilla/firefox won't show the pointing hand cursor to
show that this is a link.

You can watch it here.


The chief drawback is that mozilla/firefox won't show the pointing hand cursor to
show that this is a link.



The two drawbacks are that mozilla/firefox won't show the pointing hand cursor to
show that this is a link, and an inability activate the link besides the mouse.




The three drawbacks are that mozilla/firefox won't show the pointing hand cursor to
show that this is a link, an inability to activate the link besides the mouse, and blatant disregard for the powers of CSS.

Re: Redirection with Smoke And ... Smoking?

2006-08-17 15:47 • by mlathe
86657 in reply to 86642
snoofle:

mlathe:
I would guess that making it difficult to access this court order content, would be in violation of the settlements against the tobacco industry. Albeit that they maybe didn't do it on purpose, but one must remember that it is in the industry's best interest to limit the number of people who see these sites


Maybe, but I don't think the marketing folks at the Tobacco co's are stupid. Surely they've long figured out that nobody reads warning labels (or at least, nobody takes them seriously, or even cares). It seems to follow that anyone who even bothers to click through to the site isn't going to change their habit because of the text on some web page.


Face it, if someone at work offered you some home cooked brew, and SERIOUSLY told you that it could cause you to die, how quickly would you drink it? Smokers know all the risks, but don't care (I was one of them - it took my second kid to wake me up - yes, I was just that stupid).



I think you are missing the point. Even though the marketing group doesn't like telling people "don't use our product" and even though the users may not listen to the message that smoking has risks, it doesn't mean that the industry can ignore the court orders. Thats like saying that a guy with a DUI can continue to drive b/c not driving would be inconvienent and nobody cares.

Re: Redirection with Smoke And ... Smoking?

2006-08-17 15:48 • by seymore15074
86658 in reply to 86642
snoofle:

Maybe, but I don't think the marketing folks at the Tobacco co's are stupid. Surely they've long figured out that nobody reads warning labels (or at least, nobody takes them seriously, or even cares). It seems to follow that anyone who even bothers to click through to the site isn't going to change their habit because of the text on some web page.


Face it, if someone at work offered you some home cooked brew, and SERIOUSLY told you that it could cause you to die, how quickly would you drink it? Smokers know all the risks, but don't care (I was one of them - it took my second kid to wake me up - yes, I was just that stupid).



A person smokes out of stupidity?  ...And all this time I thought cigarettes were addictive!  Ha!

Re: Redirection with Smoke And ... Smoking?

2006-08-17 16:04 • by reed
There isn't a good reason (it seems) to even *have* a redirect here. There's no condition on where the redirect goes.  

In fact, there's never a good reason to have any kind of redirect ever unless you have removed a page from the web for a good reason.  The first web server program (NCSA httpd?) did us all a *great* disservice by letting URLs map directly to file names. It should have abstracted them at least a little bit.

Re: Redirection with Smoke And ... Smoking?

2006-08-17 16:04 • by ParkinT
86662 in reply to 86634

Anonymous:
Say what you will about Visual Studio 2003 (7.1), the IDE was not responsible for this monstrosity. Now just *how* the author of the code arose at such a situation is left as an excercise for the reader.


Paula did it; with a code generator (probably html to php)

Re: Redirection with Smoke And ... Smoking?

2006-08-17 16:05 • by Cardinal Biggles
86663 in reply to 86656
Anonymous:
Raven:
So what?

A leading IT recruitment company
uses javascript for their links in the menu. To display a simple 'log
in' link (in norwegian 'Logg inn') it looks like this.

<table node="" class="navi" onmouseover="this.className ='naviOver';" 
onmouseout
="this.className ='navi';"
onclick
="loadPage('/MPNet3/startContent.asp?','')"
border="0" cellpadding="0" cellspacing="0" width="148">
<tbody><tr><td align="left" valign="top" width="16">
<img src="Images/pixel.gif" alt="" border="0" height="1" width="16"></td>
<td style="padding: 2px 0px;" height="12" valign="middle" width="157">
Logg inn</td></tr></tbody></table>

The
porpose might that the links should still have the same color after
they have been clicked (btw; is this what they call AJAX??). The
drawback is that mozilla/firefox won't show the pointing hand cursor to
show that this is a link.

You can watch it here.


The chief drawback is that mozilla/firefox won't show the pointing hand cursor to
show that this is a link.



The two drawbacks are that mozilla/firefox won't show the pointing hand cursor to
show that this is a link, and an inability activate the link besides the mouse.




The three drawbacks are that mozilla/firefox won't show the pointing hand cursor to
show that this is a link, an inability to activate the link besides the mouse, and blatant disregard for the powers of CSS.



...and almost fanatic devotion to table tags.

Re: Redirection with Smoke And ... Smoking?

2006-08-17 16:09 • by Lemmy
Whats the big deal? You can still reach the second page in Firefox by doing the following:
  1. press Tab
  2. press Enter
That is just 2 key strokes! Every Firefox user should be used to this procedure.

The real wtf is they didn't say on the page "If you are a Firefox user, please press Tab, then Enter"

Re: Redirection with Smoke And ... Smoking?

2006-08-17 16:10 • by actionscripted
86665 in reply to 86658
A paralelle WTF is that someone suggested smokers smoke because they're stupid...

... the fact that they're addictive and delicious (yes, delicious) obviously have nothing to do with it.

Re: Redirection with Smoke And ... Smoking?

2006-08-17 16:13 • by Kikoz
Actually, if you need a permanent redirection from site B to site A (and I believe that's what PM needs here), just point domain A to the IP address of the site B. Why do you need any kind of server- or client- redirection? DNS server should work here. WTF????

Re: Redirection with Smoke And ... Smoking?

2006-08-17 16:16 • by WeatherGod
Looking further into this site, I notice that they want users to submit
the last four digits of their Social Security Number.  While they
say that it is secure and that they will delete that information,
somehow, I don't quite trust their programmers to get it right...

Re: Redirection with Smoke And ... Smoking?

2006-08-17 16:16 • by oncogenesis
<body onload="javascript:redirect();">

This line is wrong. The value of the onload attribute is supposed to be a script, not a URL. I'm surprised this crap works in any browser.

Re: Redirection with Smoke And ... Smoking?

2006-08-17 16:20 • by Joe Camel
A secondary wtf is using the javascript: protocol inside an event handler. I hate that.

Re: Redirection with Smoke And ... Smoking?

2006-08-17 16:20 • by WeatherGod
86671 in reply to 86668
In addition, they didn't quite get their SSL certification to exactly
match site name, which is enough to send up a warning message in
browsers.  I have seen this mistake before, but only in sites that
were not professionally done.  This is the first I have ever seen
this on a commerial site.

Re: Redirection with Smoke And ... Smoking?

2006-08-17 16:21 • by Per Persson
86672 in reply to 86652
Sean:
Oh, I get it.  This is a stop-smoking campaign targeted at Firefox users.

I thought so, too. They don't want Firefox users to start smoking. That's great! Let the IE users kill themself.

Re: Redirection with Smoke And ... Smoking?

2006-08-17 16:35 • by Luke
86673 in reply to 86652
Sean:
Oh, I get it.  This is a stop-smoking campaign targeted at Firefox users.

No, it's a boycott-firefox campaign targeted at smokers :)

Re: Redirection with Smoke And ... Smoking?

2006-08-17 16:37 • by Kenji
86674 in reply to 86672
Yeah, I figured this was just a cleaver campaign to kill off IE users by giving them cancer. 

Re: Redirection with Smoke And ... Smoking?

2006-08-17 16:41 • by pbounaix
weird, i'm using Firefox version 1.5.0.1 and the sites (both the coupon and phillipmorris) work just fine...

Re: Redirection with Smoke And ... Smoking?

2006-08-17 16:41 • by ptr2void
86679 in reply to 86623

"why not go the extra mile"



No, no, no...the extra mile is what you go for a Camel not a Marlboro...
OK, guess I'm showing my age :P

Re: Redirection with Smoke And ... Smoking?

2006-08-17 16:45 • by Benzaholic
86682 in reply to 86656
noname:

The chief drawback is that mozilla/firefox won't show the pointing hand cursor to show that this is a link.


The two drawbacks are that mozilla/firefox won't show the pointing hand cursor to show that this is a link, and an inability activate the link besides the mouse.


The three drawbacks are that mozilla/firefox won't show the pointing hand cursor to show that this is a link, an inability to activate the link besides the mouse, and blatant disregard for the powers of CSS.



NOBODY expects the Spanish Inquisition....



(Captcha: Paula)

Re: Redirection with Smoke And ... Smoking?

2006-08-17 16:56 • by PumaCub
Here is the code on Cingular.com:

<form name="frmCingIdx" action="/index_b2b_orange" method="post">	
<input type="hidden" name="ClientIP" value="192.55.52.3" />
</form>
<script>
document.frmCingIdx.ClientIP.value = "192.55.52.3";
document.frmCingIdx.submit();
</script>
It renders a similar blank page in FireFox.

Re: Redirection with Smoke And ... Smoking?

2006-08-17 16:56 • by dafoo
The site seems to work fine in both konqueror and firefox.

Re: Redirection with Smoke And ... Smoking?

2006-08-17 16:59 • by Mike Rod
86694 in reply to 86625
cooldudman:

Incredible!!


Follow the example of the tobacco company. 


Only allow your website to be viewed in the BEST BROWSER EVER!



 


<Sarcasm>


Hehe how about "THE BROWSER YOU'LL EVER DESIRE"


<\Sarcasm>


(In honor to the flame wars follies)


 


Mike Rod

Re: Redirection with Smoke And ... Smoking?

2006-08-17 16:59 • by mlathe
86695 in reply to 86656
Anonymous:
Raven:
So what?

A leading IT recruitment company uses javascript for their links in the menu. To display a simple 'log in' link (in norwegian 'Logg inn') it looks like this.

<table node="" class="navi" onmouseover="this.className ='naviOver';" 
onmouseout
="this.className ='navi';"
onclick
="loadPage('/MPNet3/startContent.asp?','')"
border="0" cellpadding="0" cellspacing="0" width="148">
<tbody><tr><td align="left" valign="top" width="16">
<img src="Images/pixel.gif" alt="" border="0" height="1" width="16"></td>
<td style="padding: 2px 0px;" height="12" valign="middle" width="157">
Logg inn</td></tr></tbody></table>

The porpose might that the links should still have the same color after they have been clicked (btw; is this what they call AJAX??). The drawback is that mozilla/firefox won't show the pointing hand cursor to show that this is a link.

You can watch it here.

The chief drawback is that mozilla/firefox won't show the pointing hand cursor to show that this is a link.


The two drawbacks are that mozilla/firefox won't show the pointing hand cursor to show that this is a link, and an inability activate the link besides the mouse.


The three drawbacks are that mozilla/firefox won't show the pointing hand cursor to show that this is a link, an inability to activate the link besides the mouse, and blatant disregard for the powers of CSS.



another one that is annoying is that they broke the back button. That's why redirects should always be done using 301 directs and not this JS crap

« PrevPage 1 | Page 2 | Page 3 | Page 4Next »

Add Comment