Hi all guys....
I am trying to do a little trick on javascrip but i am finding
dificulties....
I want a webpage to display a validation box while it charges.... I want
that, as the page is requested, the first thing that appears is a box that
asks for a name and a password. If the password supplied is wrong, then the
javascrip sends you to a 'forbidden acces' page, else it displays the
contents of the page. The thing is that it all has to be in the same page. I
have programmed a lot under C and C++ so I only have some problems with
knowing which functions to use. Any guidelines, or help? Does anybody know
how to do this, which should be fairly simple....?
Cheers!
Yodai 7 1245
Yodai wrote: I want a webpage to display a validation box while it charges.... I want that, as the page is requested, the first thing that appears is a box that asks for a name and a password. If the password supplied is wrong, then the javascrip sends you to a 'forbidden acces' page, else it displays the contents of the page.
This sounds to me like something you should be doing server-side (e.g. with
PHP).
In most cases, I'm all for client-side form validation wherever possible,
complemented with server-side validation of course, but in this particular case,
you are relying on your client-side validation (eg. via JavaScript) as an
authentication mechanism. If someone has JavaScript turned off, they would
completely by-pass your security mechanisms.
In article <o4*******************@news04.bloor.is.net.cable.r ogers.com>, no*****@noreply.com enlightened us with... In most cases, I'm all for client-side form validation wherever possible, complemented with server-side validation of course, but in this particular case, you are relying on your client-side validation (eg. via JavaScript) as an authentication mechanism. If someone has JavaScript turned off, they would completely by-pass your security mechanisms.
Not to mention they can view the source and get the password.
--
--
~kaeli~
Dijon vu - the same mustard as before. http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace
Thank's guys... But I already know all that... What I am trying to do is to
get a validation for a personal webpage, which is not intended to be a
secure authentication sistem, but more of a fancy-like feature for
identification of users which I already know (customers and family) since
there's no sensible information anyway.
Any idea?
Cheers...
Yodai
In article <S7***********************@telenews.teleline.es> , yo***@spamnot.mail.vu enlightened us with... Thank's guys... But I already know all that... What I am trying to do is to get a validation for a personal webpage, which is not intended to be a secure authentication sistem, but more of a fancy-like feature for identification of users which I already know (customers and family) since there's no sensible information anyway.
Any idea?
Well, you could have a page that prompts for a password. If correct,
loads one page. If not, loads the other.
3 pages all together.
More complicated would be a dynamic write of contents - then you start
having to worry about browser types. Do they all use IE5+?
Remember that both are insecure as hell. :)
--
--
~kaeli~
Press any key to continue or any other key to quit http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace
"kaeli" <ti******@NOSPAM.comcast.net> escribió en el mensaje
news:MP************************@nntp.lucent.com... In article <S7***********************@telenews.teleline.es> , yo***@spamnot.mail.vu enlightened us with... Thank's guys... But I already know all that... What I am trying to do is
to get a validation for a personal webpage, which is not intended to be a secure authentication sistem, but more of a fancy-like feature for identification of users which I already know (customers and family)
since there's no sensible information anyway.
Any idea?
Well, you could have a page that prompts for a password. If correct, loads one page. If not, loads the other. 3 pages all together.
More complicated would be a dynamic write of contents - then you start having to worry about browser types. Do they all use IE5+?
Remember that both are insecure as hell. :)
Yup... I know... As a matter of a fact, they all use IE5+, or I can make
them use so... The thing is, it must be only one page.... I've thought maybe
could be a grey box covering the actual page with the authentication, if
correct, then it shows what has already been downloaded. Later I will see if
I make some sort of personalization depending on the username... The thing
is that it will all go on a webserver of an embbedded system I have
designed. The thing with this server is that it can only attend one call at
a time, and it can only contain one file, since my emmbedded doesn't have a
file system....
So?....
Cheers....
Yodai
In article <Sw***********************@telenews.teleline.es> , yo***@spamnot.mail.vu enlightened us with... Yup... I know... As a matter of a fact, they all use IE5+, or I can make them use so...
Well, then, have the prompt check for a proper login. If it is correct,
write to a div the proper content. If it is not, write an error.
Extremely simple example with no error checking:
<html>
<head>
<title> test </title>
<script type="text/javascript">
function checkLogin()
{
var a=prompt("enter the password");
if (a=="noway") writeSuccess();
else writeFail();
}
function writeSuccess()
{
document.getElementById("writeArea").innerHTML="Su ccess!";
}
function writeFail()
{
document.getElementById("writeArea").innerHTML="Fa il!";
}
</script>
</head>
<body onLoad="checkLogin()">
<div id="writeArea"></div>
</body>
</html>
--
--
~kaeli~
Who is General Failure and why is he reading my hard disk? http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace
Cheers! I'll give it a try....
Yodai <html> <head> <title> test </title> <script type="text/javascript"> function checkLogin() { var a=prompt("enter the password"); if (a=="noway") writeSuccess(); else writeFail(); } function writeSuccess() { document.getElementById("writeArea").innerHTML="Su ccess!"; } function writeFail() { document.getElementById("writeArea").innerHTML="Fa il!"; } </script> </head>
<body onLoad="checkLogin()"> <div id="writeArea"></div> </body> </html>
-- -- ~kaeli~ Who is General Failure and why is he reading my hard disk? http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: EviL KerneL |
last post by:
Hi -
I am trying to figure out a way to enforce the validation included for
this form based on whether the user chooses "email" or "phone" as the
contact choice. Right now it is set to enforce...
|
by: Tim Meagher |
last post by:
I am trying to use both validation controls and to add submit button
attributes, but when I add the button attributes, the javascript fpr the
validation controls is no longer created for the page. ...
|
by: Hosh |
last post by:
I have a form on a webpage and want to use JavaScript validation for the
form fields.
I have searched the web for form validation scripts and have come up with
scripts that only validate...
|
by: Nedu N |
last post by:
Hi,
I want to have confirmation(Yes/No) on a button of the webform in which
there are many validation controls. I want all the validation controls to be
triggered first and then Yes/No...
|
by: Dnna |
last post by:
I have a table which is bound to an Internet Explorer XML
data island. I'm using ASP.NET's client-side validators
for an input field in the table. The problem is that if
the input fields are in...
|
by: Matt |
last post by:
I want to know if ASP.NET Web Forms Validation Controls are Server-Side or
Client-Side form validation? Since I think each validator control can select
either 1) JavaScript based error dialog or 2)...
|
by: usl2222 |
last post by:
Hi folks,
I appreciate any assistance in the following problem:
I have a form with a bunch of dynamic controls on it. All the controls
are dynamically generated on a server, including all...
|
by: Martyn Fewtrell |
last post by:
Dear All
I have a Windows 2003 Server with IIS6 where the validation controls on
ASP.Net pages no longer work.
I believe it to be specific to the server as if I create an ASP.Net page on
the...
|
by: Kyle |
last post by:
On my Development System, all the page validation controls work fine
(WinXP Pro + SP2, VS.NET 2003, .NET v1.1.4322).
On the Production System, none of the page validation controls are
working...
|
by: Peter Afonin |
last post by:
Hello,
I'm not an expert in Javascript, so I'm seeking an advice.
As I mentioned in my previous post, I use Javascript to check whether at
least one checkbox in the datagrid has been checked....
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
| |