Hide The Source When User Click On Viewsource?
Nov 8, 2008how to hide the source when user click on viewsource ex
<script LANGUAGE="javascript">
document.write("hello");
</script>
how to hide the source when user click on viewsource ex
<script LANGUAGE="javascript">
document.write("hello");
</script>
Am trying to display the div tag and its content by clicking it. the code below displays the whole source code when cliked on the div with id = softros. I want to make this script to display the div in view source format of the browser when clicked on any div.
<html>
<head>
<script>
function viewSource()
It's possible to protect the source code of a js file? With PHP?
View 15 Replies View Related"No right-click" scripts only end up annoying the users... Is it possible to hide the source code..... without showing the JavaScript source!!!!!
View 14 Replies View RelatedBasically 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
View 2 Replies View RelatedI'm working on a webpage which is completely self-sufficient. This means if you copied the source you would be able to load it locally without any glitches from your computer. I want to embed a "Save As" feature into this document using only javascript or jquery. For various reasons I do not have access to a server-side language to perform this action. I've done some research but can't seem to find a definitive way to do this.
My goal:
User clicks "Save As HTML" button which triggers jquery to copy the source of the page and present it to the user as a mypage.html download. My fall back approach will be to open a new tab with just the desired html and instruct the user to manually "File -> Save As". However, this is very undesirable and I would like to find a solution to fulfill the goal above.
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
View 2 Replies View RelatedI know nothing about javascript but I was able to handle the instructions to install the login/password feature: http://www.javascriptkit.com/script/script2/loginpass2.shtml
works great! however, when someone views the source code, they're able to see what the password is. additionally they can see the url of the page it would take them if they entered the password. how do i protect against this vulnerability?
I need to play sounds with javascript. When the user clicks the button it will run the function and play a sound either from the source or embedded into the website (which ever way works).
View 4 Replies View RelatedHow to show/hide several paragraphs when the user clicks next and then the reverse when the user clicks prev.
View 1 Replies View RelatedI'll make this short and simple.
1. Disable right-click in my webpage,
2. Disable "View Page Source" option.
I've seen point no.1 implied in many websites, but haven't seen point no.2 anywhere.
I currently have several instances of a video player placed on the page by number of XML nodes. Each player has a source of one of 2 video codecs, dependent on browser as to which one will be read. The issue I am having is that on click of a thumb 1 video player and its corresponding sources is animated into view and plays. That is all fine, yet when selecting a different thumb the previous video continues to play unless I place the statement in green into my click function. This works until I add another node into my xml, and or place more video.pause without videos actually being in the xml (undefined, of coarse). I have been trying to find the syntax to replace the source with the corresponding thumb id (url, url2) and utilize only one player, but I have failed in my searches. Is it possible to swap the source upon clicking on the thumbs? $('video').player.pause(); is not recognized.
$(function() {
$('li.video-thumb').live('mouseover', function() {
$(this).animate({
zIndex:10,
[Code].....
What I've doing wrong, on first click it detects that the div is hidden and makes it visible, button on second click it does nothing:
View 1 Replies View RelatedI have this code:
$
(
'#region_dc').
click
[code]....
The click works fine. Check the checkbox, the hidden div displays. But when I uncheck the checkbox, I want it to go away.
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:
var IdentifyPanels = function() {
$("DIV.ContainerPanel > DIV.collapsePanelHeader > DIV.ArrowExpand").toggle(
function() {
[code]....
As my question states, I want to disable my ad from showing if the user clicked to my site via certain portals such as google search or digg.com. How can I do this?
View 3 Replies View Relatedi don't know so much about jquery so just i use them with indication from their web site. so my problem is how can i use multiple source of jquery without one source stop the other,and that what i need:
[Code]....
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?
When the user visits a page, an iframe will be displayed. What is the best way to force the user to click something in this iframe? I suppose I could do that thing where the mouse always has a part of a div "glued" to it, so wherever they click, the certain area is clicked. But, then they could just hit the back button.
View 6 Replies View RelatedI have a list where I want to reorder the list on each user click. for example,
<ul>
<li name="li_one"><a href="one.html">one </a></li>
<li name="li_two"><a href="two.html">two</a></li>
<li name="li_three"><a href="three.html">three</a></li>
</ul>
If the user selects "two", then the list order should be sorted as follows
[Code]...
the selected item should always appear first in the list. Is it possible to do with javascript?.
I have a website that I frequently visit (FWIW, Firefox 3.x is my browser of choice) with many image sources referring to URLs that end with "-thumbnail.jpg". However, for better image quality, I am trying to use Greasemonkey to replace all instances of "-thumbnail.jpg" in the source of images on this site with "-bigthumbnail.jpg". The closest I could think of was to somehow use getElementsByTagName and innerHTML.replace, but realized that innerHTML does not do HTML, only content.
Below is as far as I tried to get on my own,
var as,ae;
as = document.getElementsByTagName("img");
for (var i = 0; i < as.length; i++) {
ae = as[i];
ae.innerHTML = ae.innerHTML.replace(/-thumbnail/gi, "-bigthumbnail");
}
})();
So basically I want to make a side navigation that has a button that can hide the whole layer (making more room for text). Saw it done before but forget how it was done. More info:
Along the side of that div is the button to hide the div, i know that that will be in its own div, that will have a script to hide (or somehow change a value in the css) to make the side bar and its conetent not visible.
I am maintaining a site which is written in ASP. Now i have to create
some new pages.
In one page we have a table with many rows. Now, I want to enable or
disable(showing and hiding also) 2 rows of this table depending upon
the value selected by the user from a drop down list.
The issue is that I want to hide a div tag once click anywhere else, exactly like Jquery UI Datepicker.
View 12 Replies View RelatedI am programming a website. On there website the users will be able to click "Add as friend". I am basically wanting it so that when my users click "Add as friend" the link will dis-appear and then it will visit a page on the iframe that I have already coded with a variable (addfriend.php?pid=CODEHERE).
If there is anyone that knows how I can make the code dis-appear using Ajax.
I'm using the <div> command, but I would like that, when the page opens, this <div> is closed.
The main goal is that the user can open this <div> with a button.