Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

View Source disabled

Status
Not open for further replies.

jjob

Programmer
Joined
Jul 16, 2002
Messages
157
Location
GB
Whilst searching the site for a way to disable the 'back button' I noticed a number of posts saying it is impossible to disable menu buttons, in particular the View. As I write, I have in my browser a page that somehow has disabled the View source from both the menu and the right mouse click. It is only this page, if I move off to other pages I can see the source, so I don't believe it is the 'temp/offline files' problem, although it could be a bug of some sort. If I can find the developer (he's not around at the moment) I'll find out if this is intended and if so, how it's done. It hasn't actually stopped me seeing the code however, as I saved the page as an HTML file and looked at it, but still can't see how it is done.
 
trust me, it isn't disabled by anything on that page. try clearing your Temporary Internet Files and view the page again. also view in Mozilla.



=========================================================
-jeff
try { succeed(); } catch(E) { tryAgain(); }
 
Hi Jeff,

I have cleared the temp files, and can move off this page into sub menu pages where View Source works - but I go back to menu page and neither work, and it appears to be the same for a colleague next to me. I wondered if it was some form of modal window, but can't find anything in the source that looks as though it's intended to do this, mind you I've not spent masses of time looking, as I hope to see the developer when he comes back from holiday. Also can't view in Mozilla as this is on an intranet and only IE allowed.

regards

John
 
The line

Response.CacheControl = "no-cache"

is the culprit, removing this from the top of the ASP source code lets me get to the browser HTML source.

 
check ur body tag, i also had the same problem for no reasons at all (TODAY)...

Known is handfull, Unknown is worldfull
 
Seems fine now, I can switch it on and off.
 
I'm not sure what you mean by "what page", so if this reply is not the answer to your question, my apologies. The page it's an HTML/Javascript page on an Intranet, viewed in IE, rendered from VBScript on ASP.
 
o its on the intranet...ive something like that done but i can't remember how it was done or anything...i thought u said it was on the internet and i just wanted to know what site it was..sorry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top