Hide The Source When User Click On Viewsource?

Nov 8, 2008

how to hide the source when user click on viewsource ex

<script LANGUAGE="javascript">
document.write("hello");
</script>

View 3 Replies


ADVERTISEMENT

Display A Particular Div From Viewsource?

Sep 26, 2011

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()

View 1 Replies View Related

Hide Source Code

Jul 23, 2005

It's possible to protect the source code of a js file? With PHP?

View 15 Replies View Related

How To Hide Your Source Code?

Oct 6, 2004

"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 Related

Restrict End User Access File From View Source?

Jul 31, 2009

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

View 2 Replies View Related

Jquery :: Save As HTML - Copy Source And Present To User

Feb 23, 2011

I'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.

View 1 Replies View Related

How To Hide Script Code In View Source

Jun 2, 2010

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 Related

Hide Script Login Password In Source Code?

Sep 19, 2009

I 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?

View 10 Replies View Related

Playing Sounds On Button Click From Source

Oct 14, 2010

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 Related

Array - Show / Hide Several Paragraphs When The User Clicks Next And Then The Reverse When The User Clicks Prev?

Feb 22, 2011

How to show/hide several paragraphs when the user clicks next and then the reverse when the user clicks prev.

View 1 Replies View Related

Disable Right Click And View Page Source Option?

Jun 17, 2011

I'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.

View 4 Replies View Related

JQuery :: JsVideo Swap Video Source On A Click Event?

Sep 28, 2011

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].....

View 1 Replies View Related

Hide/Show Div - On First Click It Detects That Div Is Hidden And Makes It Visible - Button On Second Click It Does Nothing

Mar 8, 2010

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 Related

JQuery :: Simple Click(display) And Click(hide) Not Working?

Aug 15, 2011

I 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.

View 3 Replies View Related

JQuery :: Can't See Source (with View Source) When Loads External Html Into A Div?

Feb 23, 2011

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]....

View 2 Replies View Related

Disable My Ad / Hide Div Based On Where User Came From?

May 6, 2011

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 Related

JQuery :: Multiple Source Without One Source Stop The Other

Aug 30, 2010

i 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]....

View 2 Replies View Related

Embedded Source Showing In View Source?

Jul 11, 2009

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?

View 9 Replies View Related

Forcing A User To Click A Link

Apr 2, 2011

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 Related

Reorder The List On Each User Click?

Sep 6, 2009

I 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?.

View 4 Replies View Related

Replace Image Source With Other Source

Nov 23, 2009

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");
}
})();

View 2 Replies View Related

Hide Div On Click

Dec 24, 2006

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.

View 4 Replies View Related

How To Hide/show The Rows Of A Table Depending On The Value Selected By A User From A Drop Down List??

Feb 15, 2006

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.

View 4 Replies View Related

JQuery :: Hide DIV Tag When Click Outside

Jul 25, 2011

The issue is that I want to hide a div tag once click anywhere else, exactly like Jquery UI Datepicker.

View 12 Replies View Related

Hide A Link After Click?

Jul 21, 2010

I 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.

View 2 Replies View Related

Hide A Div Via Button Click?

Sep 2, 2009

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.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved