Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 14th, 2006, 4:07 PM   #11
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
If it's processed at all .
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Apr 14th, 2006, 6:37 PM   #12
The Dark
Expert Programmer
 
Join Date: Jun 2005
Posts: 874
Rep Power: 4 The Dark is on a distinguished road
If I find a page that has the right click or view source disabled. I immediately disable JavaScript and look at the source, just to see what they are trying to do secretly, and often to laugh at why they thought their so-called "secret source" needed to be protected.
The Dark is offline   Reply With Quote
Old Apr 14th, 2006, 6:57 PM   #13
Booooze
Expert Programmer
 
Booooze's Avatar
 
Join Date: Mar 2006
Location: Igloo
Posts: 710
Rep Power: 3 Booooze is on a distinguished road
Send a message via MSN to Booooze
Quote:
Originally Posted by DaWei
If it's processed at all .
true.

Quote:
If I find a page that has the right click or view source disabled. I immediately disable JavaScript and look at the source, just to see what they are trying to do secretly, and often to laugh at why they thought their so-called "secret source" needed to be protected.
Yeah, I tend to do the same. Most of the time there isn't anything really that i strying to be hidden, they just do it for no reason, or maybe just to think they have out smarted most people :p
Booooze is offline   Reply With Quote
Old Apr 14th, 2006, 7:05 PM   #14
mongeau
Newbie
 
mongeau's Avatar
 
Join Date: Apr 2006
Location: Fargo, ND
Posts: 29
Rep Power: 0 mongeau is on a distinguished road
Send a message via MSN to mongeau
Quote:
Originally Posted by Booooze
Server side scripting is where the code (in languages such as PHP) is processed before the page is sent to the client. Client side scripting, such as javascript is processed on the client side ( in the browser).

No shit...?
__________________
I wish I was you, so I could be friends with me.
mongeau is offline   Reply With Quote
Old Apr 14th, 2006, 7:13 PM   #15
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Mongeau, you seem to have a problem with accepting the responses as relevant or meaningful. Perhaps you should read the OP's original post, as well as his other threads on the subject and reform your opinion on the knowledge and understanding of the concepts being dealt with. We occassionally have questions indicating that the poster (who is usually writing actual code) doesn't realize the client and server aren't in a continuous, interactive relationship.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Apr 14th, 2006, 7:58 PM   #16
Booooze
Expert Programmer
 
Booooze's Avatar
 
Join Date: Mar 2006
Location: Igloo
Posts: 710
Rep Power: 3 Booooze is on a distinguished road
Send a message via MSN to Booooze
Quote:
Originally Posted by mongeau
No shit...?
The reason I said that was to show how Server-Side Scripting was relevant to this topic. DBZ didn't seem to know that, since he didn't even know the difference between java and javascript. Wasn't nessacarily aimed at you.
Booooze is offline   Reply With Quote
Old Apr 15th, 2006, 3:10 AM   #17
bl00dninja
Programming Guru
 
bl00dninja's Avatar
 
Join Date: Oct 2004
Location: namespace std
Posts: 1,246
Rep Power: 6 bl00dninja is on a distinguished road
Quote:
I'm sorry, I don't follow this comment. How is server-side scripting relevant at all in this example?
how is it not relevant? by default it does exactly what the OP wants.

your asinine comment is the only irrelevant thing i see here. have an ass sandwich on me.
__________________
i put on my robe and wizard hat...

Have you ever heard of Plato, Aristotle, Socrates?...Morons.
bl00dninja is offline   Reply With Quote
Old Apr 15th, 2006, 11:54 PM   #18
Eryk
Programmer
 
Join Date: Jul 2005
Posts: 62
Rep Power: 4 Eryk is on a distinguished road
If I may inject what I think mongeau is getting at here, is that there is no way that a server-side language can protect your HTML layout, which is what this guy wants. Its not even javascript that he wants to protect.

Anyways, I have this little link that I made bookmarked for sites with right-clicks disabled:
javascript:document.onmousedown=null;document.onclick=null;document.oncontextmenu=null;void(0);

Works like a charm.
Eryk is offline   Reply With Quote
Old Apr 16th, 2006, 8:45 AM   #19
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Works like a charm if I let your Javascript run, you mean. The server side is the ONLY place you can protect your code. You can withhold sending it. Once you make it accessible, I can get it. I fail to see what is so hard to comprehend about this fact. No wonder the web is full of crap; it seems like a huge percentage of those involved have no clue regarding how it works.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Apr 16th, 2006, 12:23 PM   #20
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
DaWei, that code Eryk posted will re-enable right-clicking if it's been disabled by JavaScript, not disable it in the first place.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 9:37 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC