dbTalk Databases Forums  

Javascript examples

comp.databases.pick comp.databases.pick


Discuss Javascript examples in the comp.databases.pick forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
michael@preece.net
 
Posts: n/a

Default Re: Javascript examples - 11-10-2005 , 03:36 PM







Glen B wrote:

Quote:
A large portion of web sites that deploy major JS tend to
attempt to (?)

Quote:
hide it with file
includes so people won't leech ideas.
unless they know to look in the temp internet folder for the .js file.
Is there a better way to hide it than this? Like - you can't put js
functions in an invisible frame can you? They have to be put up top,
where everyone can see them, or in a file include where people can dig
them out - don't they? We tried to hide *all* of our source by running
things in our own "bare" window (no "View" tab) and disabling
right-click, but that only worked for some browsers. Seems a bit of a
challenge to hide code securely on the web. I don't mind that really.
The stuff that *really* matters is the stuff on the application server.
Incidentally - this brings me to something else I've been meaning to
mention: I would *strongly* recommend that, whatever validation you do
on the client - with javascript or whatever, and on the web-server -
with PHP or whatever, you really *must* validate it all again on the
DBMS.

Mike.



Reply With Quote
  #12  
Old   
Tom deL
 
Posts: n/a

Default Re: Javascript examples - 11-10-2005 , 04:17 PM






Hi Mike,

Quote:
hide it with file
includes so people won't leech ideas.

unless they know to look in the temp internet folder for the .js file.
Or just view source and pull the js directly into the browser via the
url field.

Quote:
Is there a better way to hide it than this? Like - you can't put js
functions in an invisible frame can you? They have to be put up top,
where everyone can see them, or in a file include where people can dig
them out - don't they? We tried to hide *all* of our source by running
things in our own "bare" window (no "View" tab) and disabling
right-click, but that only worked for some browsers. Seems a bit of a
challenge to hide code securely on the web. I don't mind that really.
The stuff that *really* matters is the stuff on the application server.
This reminds me of the discussions on the photography forums about
keeping people from downloading your photos. There really isn't a way.
It can be made more difficult (breaking picture into bits, 'encrypting'
js source, etc.) but if you want people to see the photos or execute
the js code, they can download the pics or see the code.

That was what I alluded to in another thread about javaScript's 'guts
hanging out' in the browser.

Quote:
Incidentally - this brings me to something else I've been meaning to
mention: I would *strongly* recommend that, whatever validation you do
on the client - with javascript or whatever, and on the web-server -
with PHP or whatever, you really *must* validate it all again on the
DBMS.
And I am still sort of on the fence about even doing heavy validation
in the browser. AJAX takes away my complaints about needing to load
those huge libraries on every call because you can load them in the
body once then use them everywhere but still ... as you say, you are
going to end up doing some validation on the server anyway.
-Tom



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.