473,387 Members | 3,781 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

password script not working in IE7

I have set up a javascript on the home page of:
http://www.translease.com.au
The idea is to access the page required (a flash calculator) when you click button a dialogue box opens and a password is required (the password is the same name as the html file.
It's low level security but it works in Safari, Firefox, netscape but not in IE7??
Password dialogue did not come up but an alert message can't find page.
The page address was in the same folder as the page required but the file name was null.html instead of the requiredname.html.
Can anyone help me with this or do you need more info.
Aug 12 '08 #1
5 1492
r035198x
13,262 8TB
Post the code you used.
P.S Moving to the Javascript forum because Java != Javascript.
Aug 12 '08 #2
Post the code you used.
P.S Moving to the Javascript forum because Java != Javascript.

Here is the script:

Expand|Select|Wrap|Line Numbers
  1. <SCRIPT language="JavaScript"><!--
  2. function check() {
  3. // Prompt user for the password ...
  4.     pwd = prompt('Enter password before continuing','');
  5.  
  6.     location.href = 'http://www.translease.com.au/calculate/' + escape(pwd) + '.html';
  7. }
  8. // -->
  9. </SCRIPT>
  10.  
Here is html:

[HTML] <p><FORM class="pad" >
<INPUT class="login" type="Button" onClick="check()" value="Quick Calculator Login">
</FORM>
</p>
[/HTML]Here is URL:
http://www.translease.com.au/

It works in all browsers i checked BUT not IE ???


(Sorry i did not undersatnd you p.s as I am a bit of a novice! Am i posting in the wrong section?)
Aug 12 '08 #3
many thanks Rob

Here is the script:
Expand|Select|Wrap|Line Numbers
  1. <SCRIPT language="JavaScript"><!--
  2. function check() {
  3. // Prompt user for the password ...
  4. pwd = prompt('Enter password before continuing','');
  5.  
  6. location.href = 'http://www.translease.com.au/calculate/' + escape(pwd) + '.html';
  7. }
  8. // -->
  9. </SCRIPT>
Here is html:

[HTML]<p><FORM class="pad" >
<INPUT class="login" type="Button" onClick="check()" value="Quick Calculator Login">
</FORM>
</p>
[/HTML]Here is URL:
http://www.translease.com.au/
Aug 13 '08 #4
acoder
16,027 Expert Mod 8TB
I've merged your threads. Please do not double post. Your thread had already been moved to the JavaScript forum.

Also, remember to enclose your code in code tags. See How to Ask a Question. Thanks!

Moderator.
Aug 13 '08 #5
acoder
16,027 Expert Mod 8TB
It works in all browsers i checked BUT not IE ?
This is a problem with IE7 that prompt has been disabled by default. Either enable it for yourself (but that wouldn't solve the problem for your users) or create your own prompt. There are some examples you can find on the net.

By the way, P.S. means Postscript.

P.S. you shouldn't be using JavaScript for password scripts. ;)
Aug 13 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: juglesh | last post by:
<body><div align="center"> <?php if (!isset($password)){ ?><form action="<?php $_SERVER; ?>" method="post"> type password here&nbsp;<input name="password" type="text" size="8"> then <input...
10
by: Max | last post by:
Hello all, I am trying to protect a page within my site with a JS password scheme. Now I know JS can be quite easily "circumvented", but I came by a code below. My question is: 1. Is there...
7
by: Mike | last post by:
I've been trying for the past week to put a simple code together. I have done a LOT of searching, found scripts showing the functions I would like to use, however when I mix them it all goes wrong,...
1
by: patrickshroads | last post by:
I just started a new job and no one seems to know the SA password. Here's my plan to change it: 1. I've run a trace for a couple of days to verify that there are no jobs or processes that are...
0
by: serkan | last post by:
Guys, I am trying to get this password reset functionality wor for me but I am not successful at all. Please somebody help me. I get "Your password could not be reset - please try again later" so I...
6
by: chsadaki | last post by:
Hello I have a problem in retrieving a row form a table that I created in mysql db. I insert these values in the table 'Bell',password('123'). But the problem is in my php application I cant...
1
by: znadeem | last post by:
Hi, I am new to JavaScript and I am trying to control New Password fields. These fields are not allowed to except any symbols, especially @ / \. The current code I've is not working at all. Could...
4
by: custommx3 | last post by:
I have designed a site that requires users to login. Me being new to php, I hired a guy to help me setup the database. He set it up and it works flawlessly. Well.. instead of helping me finish the...
2
by: DarthPeePee | last post by:
Hello everyone. I am working on a Password Strength Meter and I am running into 1 problem that I would like to fix. When pressing the "Clear Password & Try Again" button, the password clears...
1
Vasuki Masilamani
by: Vasuki Masilamani | last post by:
Hi, Please find the simple code below for checking password. <HTML> <Body> <h2>Checking the Password</h2><br><hr> <Form name=form1> Enter the Password: <Input type=password name=text1> <br>
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
marktang
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,...
0
Oralloy
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,...
0
jinu1996
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 using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.