Click to See Complete Forum and Search --> : I thought it was cool


Daniel T
08-02-2005, 03:22 AM
I just spent the last hour and a half perfecting this little number, which will make no sense at all to you (atleast, upon first glance, it won't. hopefully). Can you figure it out?

Content without a source (http://www.thenamesdan.com/wtf/)

PS: I've already let Ben in on it, so Ben, you can't answer.

Stephen Philbin
08-02-2005, 11:01 AM
Without actually looking at the source, I'd say you include a javascript file that either writes the content directly or it uses the XMLhttprequest object.

Daniel T
08-02-2005, 12:10 PM
Nope.

Stephen Philbin
08-02-2005, 12:28 PM
Altered the external subset to add the content on parsing.

Sup3rkirby
08-02-2005, 06:22 PM
My Guess:

Something to do with either PHP or some server-side code that writes the page.

theuedimaster
08-02-2005, 06:27 PM
If php wrote the page, it would show in the source.

Mausau2000
08-02-2005, 10:53 PM
A java file running it????
I've seen things simular... that use java..

Jupac
08-02-2005, 11:05 PM
Your hacking us while we look at the source

Mausau2000
08-03-2005, 01:24 AM
Your hacking us while we look at the source
What???

PeOfEo
08-03-2005, 12:42 PM
Without actually looking at the source, I'd say you include a javascript file that either writes the content directly or it uses the XMLhttprequest object.

var p = new XMLHttpRequest();

?

edit: However, the content is still accessible with js disabled. So therefore the js file really has nothing to do with it.

sparq
08-03-2005, 01:25 PM
Sorry, im not cool enough :p

jeff_archer7
08-03-2005, 08:54 PM
I know what it is, and your a very naughty boy...

you may even go blind

Sup3rkirby
08-03-2005, 09:42 PM
well maybe not php, but possibly some server side script of some sort that writes the page when it loads.....

but still, just a guess

Also, the address is not an address to a webpage.... (.htm or .html or .anything)
The address points to a folder.... this goes along with my suspicion.....

Jupac
08-03-2005, 10:33 PM
nope its http://www.thenamesdan.com/wtf/index.php

Jeff Mott
08-04-2005, 01:02 AM
My guess would be... the style.css file is actually a PHP script that returns text/css data. And that you've found some clever way to differentiate between the browser requesting this file as a result of the @import command versus requesting it via the address bar. If it's accessed via @import then the PHP script returns the full set of styles (for the browser to process), but if it's accessed through the address bar then it returns a stripped down CSS document so the user can't see anything.

Jupac
08-04-2005, 01:07 AM
o yea i think dan showed me this before i think

Mausau2000
08-04-2005, 01:39 AM
is it a special thing only firefox can do???

Mausau2000
08-04-2005, 09:29 PM
I know what it is, and your a very naughty boy...

you may even go blind
What is it?
Ie goes to index.html automaticly does firefox do that? :confused:

BeachSide
08-04-2005, 10:35 PM
I must admit that you had me there for a second. Nice little trick. I'll have to keep it in mind!

::Edit:: Was I not supposed to post that? I mean this thread died since I posted showing the code! If I "spoiled" it sorry that wasn't my intent :o

LiLcRaZyFuZzY
08-05-2005, 09:04 PM
argh i cant even see it, im not home and only have IE

Sanim
08-05-2005, 10:48 PM
I was going to say he had

content: "Lalala.";

in his CSS, but apparently not, since it doesn't show up in the CSS file!!

BeachSide
08-05-2005, 11:04 PM
It is in the css you just don't see it.

I posted the relevant code up earlier but like I said the thread died so I felt bad :( lol

I'll post it up again if you want me to.

tinkerbell
08-06-2005, 02:11 AM
very nice...thanks for shariing

Jowka
08-06-2005, 12:48 PM
ohhhh im interested now, how do you do it?!