I have the below code to block the view source but its not working for me.
<html>
<head>
<script language="javascript">
function onKeyDown() {
// current pressed key
var pressedKey = String.fromCharCode(event.keyCode).toLowerCase();
if (event.ctrlKey && (pressedKey == "c" ||
pressedKey == "v")) {
// disable key press processing
event.returnValue = false;
} }
// onKeyDown
</script>
</head>
<body>
<DIV align=center> .....
I got some code that loads divs from other web pages into a particular div in my main page. In other words, I click on a button, and this tells jquery to load afragment of a particular page into my main page. For instance if I have 5 web pages onrock stars, I could have 5 buttons, and each button could load one rockstar's biography into a div on the main page (and replace whatever was there before). This works, and I do see the content that it loaded. But when I do 'view source' in IE, I do not see that content (the bio of the rock star). Another clue that this content is not really there, is when I try and run some code on that content. The content (from those external pages) have divs with specific names, and I try and make them into collapsible panels by running the following short function:
recently i noticed that all of my embedded JavaScript code and external style sheets are being shown IN "view source."
this happens in all browsers ( IE, FF, Chrome, and Safari [windows]) ... oddly enough it only happens when viewing on my vista or win2k3 machines. is this something added to these OS's or the result of an installed program? has anyone seen this before?
Is there any way by which I can display the source of a html page using the 'view:source' command, in an iframe?? I tried using this viewer.location = "view-source:" + viewer.location.href; where viewer is an iframe. but it opens the source in a notepad.
Instead of the source getting displayed in the notepad, I would like the iframe to display the source.
Is it possible to view the source as generated by the Javascript?? and how can I make it , coz I did a report table and I made the calculations from some values by javascript that are not displayed in the inner tags of the HTML source code; I have heard about "generated source code" but I don't know how to use it. Another problem that my web browser should be IE6 , so I m using this version only and I cant use firefox ..so I need to export this report to PDF or word file.
I made a table that retrieves some Data from the Database also I did some calculations for this data using Javascript and It works fine , but I can't see the calculated values in the source code. That's the Problem , cause I can't print it or export it without these values and the source code doesnt show it. So , what can I do , to view the generated values from JS in the source code? I'm using IE 6 only as a web browser and the Javascript Calculations are functions and Classes in a seperated file and I linked it to the Report page ...
I'm creating an extension on Firefox that wishes to parse the source of a page that the user is currently viewing for specific information. I've got as far as creating a simple extension with a button and when I click on it, it will show the url of the page I am currently viewing through: content.location.href. All the examples I've seen so far concerning viewing the source forces you to either use the 'view-source:' convention or the 'xmlhttprequest' method.
But these examples seems to be meant to be called within a web page and not an extension. When I cut and paste with these examples, I only get the source for the actual chrome portion of Firefox. I've tried modifying some of the examples to include 'content.document....etc' to reference what's being displayed in the browser, but it doesn't seem to work. Any sample or reference code so I can extract the page source of my current window from an extension?
How can you disable the menu that is normally displayed with a right mouse button click? I tried catching the event and then not bubbling it but the menu still appeared.
This is probably a REALLY stupid question for many of you - but I just don't know, and I can't find it in my book(s), but then again, I'm not sure what to look for.
I was visiting a real-estate site, and when I tried to view the source, the entire file was blank. Code:
why the elements which were added to the DOM by java script are not available when I try to view source? The element were there but are missing when try to view source.
I'm having a problem with Superfish on my locahost site. I'm at a loss as to what the problem might be located, what is the solution so...I'm hoping someone here might know how to fix this.
I was looking for a way to reduce the number of SF modules on my Joomla 1.5 site by modifying my module tag to look like this: <jdoc:include type="modules" name="sf-menu" style="html"?php echo $pageclass ? $pageclass : 'default'; ?>" > That last part works well in template div tags but now I know its deadly if included in a module positon.
When I looked into view source, it was blank. I've clawed back somewhat but the menu ul still does not show up in view source. Since then I've deleted SF modules, re-installed a backup version of Joomla and put in a new SF module. The site looks OK except no menu appears, nothing in view source that isn't already in Index.php. Also my backup did not load articles, they were all "undefined" which is a minor hassle since I have these in utf-8 text files.
Is this a js or php issue? do I need a Joomla re-install or a full Joomla / server re-install? I really don't know.
I have created and opened a new window using Javascript and written to it with the document.write Command. When I click "View" and then "Page Source" (Firefox) to view the source of it, however, it displays a blank page. How can I get the source of a window I created?
After lot of research I found that its impossible to disassemble the source code view in the window toolbar.. but finally I found this site that have the function that I am describing..
Start addy here: mortgagecalculators.ws / mortgage-payment-calculator . php End of addy:
The address is separated in pieces because I cant post links and don't forget to include the extension php with the dot at the end of the address but note that if you click on the back history button and then the forward. The java does not work. I get into the source looking for some java call... but nothing found related to security disable source code...
I am passing an araryList from c# code to javascript, but if i do viewsource on page i can see the value of Array, is there any i can hide it, dont what the user to see the values of javascript array if userdoes view source on the opage
Basically am working on the travel booking site,i written the lot of ajax scripts , so am little bit fear of that ajax ,becoz if some one tried to access anonymously So i dont want to user access or takeing my javascript fileTell me how to restrict the use get my javascript filecouple of days back i saw on site, in the i take that site js url , and when i typed on the Browser , the system say , you cant view this URL
Many ajax and javascript functions change the innerHTML of elements in the source, writing and rewriting things in the source
You can run any javascript function or action you want that would change the source, but when you view it, it will always show the original source before a JS function changed it
Is there a way to view the changed source after each time a JS functoin changes it??
for example: <span id="whatever">This is the original source code</span>
then you may run this piece of JS: whatever.innerHTML= 'Changed source code!'
but when you right click and press 'view source" you will always get this: <span id="whatever">This is the original source code</span>
I want to get the changed source code, maybe its possible to write the changed source code to another file, or use some kind of HTTP prog to read the changes on an html page?
View source code of external files in html like *.js and *.css For example: In this page I am Posting to, there are 24 *.js files. They are loaded but you can't see them. I would like to view some of these external javascript files for study. Not necessarily on this site, but where ever I find them.
i am looking for a tutorial or example file i can download that features the following mouseover effect: [URL] i have tried googling for tutorials and have tried to view source on the above page but when pasted into dreamweaver i cannot seem to get the effect to work.
I've got some Javascript within a div that's displayed by a Modal Popup Extender. The Javascript is throwing an error. When I go to 'View Source', it appears that the source for the Modal Popup Extender and the Javascript contained therein isn't there. How can I view the source then? The Modal Popup Extender *is* being rendered.
I use .append() and .prepend() to automatically add content to a existing html tag with id. In IE the function is working fine but when i viewed it using view source i can't see the content. When i tried it with Chrome, i can immediately see the content. Is there something i missed out?