No Source Code

JavaScript and client side scripting.

Moderator: General Moderators

User avatar
nathanr
Forum Contributor
Posts: 200
Joined: Wed Jun 07, 2006 5:46 pm

No Source Code

Post 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?
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

Image
User avatar
neophyte
DevNet Resident
Posts: 1537
Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota

Post by neophyte »

And the punchline is ...
User avatar
nathanr
Forum Contributor
Posts: 200
Joined: Wed Jun 07, 2006 5:46 pm

Post by nathanr »

what I mean is this:

http://www.dbpixels.net/sourceless.jpg

there is no punhline :twisted:
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post 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.
User avatar
nathanr
Forum Contributor
Posts: 200
Joined: Wed Jun 07, 2006 5:46 pm

Post 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.
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post 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
User avatar
nathanr
Forum Contributor
Posts: 200
Joined: Wed Jun 07, 2006 5:46 pm

Post by nathanr »

okay test here 8O
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

nathanr wrote:okay test here 8O
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? 8O 8)

EDIT | If I right click and choose to open in a new window I just get a blank page.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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?
User avatar
nathanr
Forum Contributor
Posts: 200
Joined: Wed Jun 07, 2006 5:46 pm

Post 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
User avatar
Oren
DevNet Resident
Posts: 1640
Joined: Fri Apr 07, 2006 5:13 am
Location: Israel

Post 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 :?
Roja
Tutorials Group
Posts: 2692
Joined: Sun Jan 04, 2004 10:30 pm

Post 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.
User avatar
nathanr
Forum Contributor
Posts: 200
Joined: Wed Jun 07, 2006 5:46 pm

Post 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? 8O
Post Reply