Page 1 of 2
No Source Code
Posted: Fri Jun 16, 2006 3:31 am
by nathanr
I've finally managed to develop a web application that has no front end source code, well none that anybody can see in a web browser, its literally a file size of 0kb and completely blank. Has anybody else managed this? is it useful, should i redistribute the methods used? what's it worth?
any opinions people?
Posted: Fri Jun 16, 2006 3:50 am
by JayBird
Posted: Fri Jun 16, 2006 3:56 am
by neophyte
And the punchline is ...
Posted: Fri Jun 16, 2006 3:57 am
by nathanr
what I mean is this:
http://www.dbpixels.net/sourceless.jpg
there is no punhline
Posted: Fri Jun 16, 2006 4:02 am
by JayBird
Some clue to what you have done would be helpful to know whether it is worth anything.
You may just be using one of the many available methods to do this, therefor no.
Presumably if the data stream is downloadable by the browser to be rendered, then it is available to the user to see as well.
Posted: Fri Jun 16, 2006 4:21 am
by nathanr
ack maybe its rubbish then, extensive javascript/ajax and DOM nodes, force a dom node containing a script into the header of a blank page, when node initialises it pulls in the content in the usual manner, trickyt bit was getting that initial script node into the dom.
Posted: Fri Jun 16, 2006 4:24 am
by JayBird
Perhaps if you give us a test page for us to try and "aquire" the source code, then you can gauge how useful it it
Posted: Fri Jun 16, 2006 6:10 am
by nathanr
Posted: Fri Jun 16, 2006 6:27 am
by Chris Corbyn
Ok how the hell did you do that?? I'm intrigued. I'd never actually use it since it must require JS or something. What else is weird is that when the window opens it closes again and replaces my DevNetwork window. Where's the code that loads in that page?
EDIT | If I right click and choose to open in a new window I just get a blank page.
Posted: Fri Jun 16, 2006 6:32 am
by Chris Corbyn
Code: Select all
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/javascript">
window.opener.location.href = '/test';
setTimeout('initit()',400);
function initit() {
var a = window.opener.document.getElementsByTagName('head')[0];
var stylesh = window.opener.document.createElement('script');
stylesh.setAttribute('type','text/javascript');
stylesh.setAttribute('src','/test/nr.js.php');
a.appendChild(stylesh);
window.close(false);
}
</script>
</head>
<body>
</body>
</html>
So it actually creates a <script> node in the parent window and then uses that to get the data? Interesting.
Posted: Fri Jun 16, 2006 6:37 am
by Chris Corbyn
Yeah I just got around that quite easily I'm afraid. Granted, it's a clever idea that would prevent your casual script kiddie from viewing your HTML source. But that leads me to one question: Why try to hide your HTML source?
Posted: Fri Jun 16, 2006 7:30 am
by nathanr
ahh why not just wante to see if it could be done, also for search engines you can use the same methods to load a page with seo content, then remove the main dom node containing everything and bang in a nice friendly user interface for normal users.. not cheating at all
Posted: Fri Jun 16, 2006 8:00 am
by Oren
d11wtq wrote:Ok how the hell did you do that?? I'm intrigued.
What are you talking about? I can see the source

Posted: Fri Jun 16, 2006 8:04 am
by Roja
nathanr wrote:ahh why not just wante to see if it could be done, also for search engines you can use the same methods to load a page with seo content, then remove the main dom node containing everything and bang in a nice friendly user interface for normal users.. not cheating at all
That is almost word-for-word the very definition most search engines are giving for cheating.
Its showing a spider (the search engine) totally different content than the user will see - regardless of technical handwaving,
that is cheating.
Not to mention, it breaks usability for anyone not using javascript, causes accessibility problems for screen readers, makes your site slower...
All just to lie to a search engine, or hide your output?
Bad idea.
Posted: Fri Jun 16, 2006 10:09 am
by nathanr
Roja wrote:nathanr wrote:ahh why not just wante to see if it could be done, also for search engines you can use the same methods to load a page with seo content, then remove the main dom node containing everything and bang in a nice friendly user interface for normal users.. not cheating at all
That is almost word-for-word the very definition most search engines are giving for cheating.
Its showing a spider (the search engine) totally different content than the user will see - regardless of technical handwaving,
that is cheating.
Not to mention, it breaks usability for anyone not using javascript, causes accessibility problems for screen readers, makes your site slower...
All just to lie to a search engine, or hide your output?
Bad idea.
is sarcasm really that hard to convey?
