Hello,
I have a problem with a routine i used for a couple of years, without any problems. Just a few weeks ago people started to say they cant enter the code.
On my work i testted it and indeed it didn't worked anymore. but at home it works..
The problem start when you click on the button it gives a error, and displays null.html
The site is www.rvellinga.nl and wil be accessed by "klantcode" wich will be follewd by the button....
I think its has to do with IE 7 but i am no programmer..
And for test purpose i have made a page with a code geheim (small captions)
For your info i pasted trhe code herin...
And yes, there is a page wich the code will load.
Please can somebody help me??
Ricardo
first part :
<script language="JavaScript">
<!--
function SymError()
{
return true;
}
window.onerror = SymError;
var SymRealWinOpen = window.open;
function SymWinOpen(url, name, attributes)
{
return (new Object());
}
window.open = SymWinOpen;
//-->
</script>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
<SCRIPT LANGUAGE="JavaScript">
function wachtwoord()
{
var geheim = prompt("Wachtwoord:","");
location.href = geheim + ".html";
}
</script>
second part
Klanten........ text......
<FORM>
<INPUT TYPE="button" VALUE="Klantcode" onClick="wachtwoord()">
</FORM>
<p> </p>
</BODY>
<script language="JavaScript">
<!--
window.open = SymRealWinOpen;
//-->
</script>
3 1798
Has any debugging been done...?
You aren't very clear as to *what* is the actual error.
On my site www.rvellinga.nl is a link called "klantcode"
When you press it it wil show a second window with a button.
In old browsers it will function as programmed, you click the button and the you get a input field where you can enter a code "example geheim"
Then it will load page geheim.html ...
In (what i think happens only in IE7) it will open the second page wich has the button, but when you click on it it shows inmideatly the page "null.html".
You cant enter anything because it seems it skipped the input field.
Sorry for my english, but i hope that some one can help me...
Regards
Rick
-
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-
-
<html>
-
<head>
-
<title>Untitled</title>
-
</head>
-
-
<script>
-
-
function enterCode() {
-
var popup = window.open('','Popup','height=100,width=340,top=350,left=300,toolbar=no')
-
-
popupBody = popup.document.getElementsByTagName("body")[0]
-
-
inputText = popup.document.createElement("input")
-
inputText.type = "text"
-
popupBody.appendChild(inputText)
-
-
inputButton = popup.document.createElement("input")
-
inputButton.type = "button"
-
inputButton.value = "OK"
-
inputButton.onclick = this.parent.changeLocation
-
popupBody.appendChild(inputButton)
-
-
}
-
-
function changeLocation() {
-
value = inputText.value
-
self.location.href = "http://" + value + ".htm"
-
}
-
</script>
-
-
<body>
-
-
<a href="javascript:enterCode()">klantcode</a>
-
-
</body>
-
</html>
-
Try something like this
Hope that help you
Good luck
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Aaron Prohaska |
last post by:
I have just run into a problem where I have a page that posts back to
itself to execute code, except when the page does the post back it
somehow executes code that is in our home page for the site....
|
by: JesusFreak |
last post by:
From: us_traveller@yahoo.com (JesusFreak)
Newsgroups: microsoft.public.scripting.jscript
Subject: toolbar script problem
NNTP-Posting-Host: 192.92.126.136
Recently, I downloaded the following...
|
by: Julius Mong |
last post by:
Dear all, according to the ASV3 manual known problem section, to make an <a>
execute some Javascript onclick:
...
|
by: jpr |
last post by:
Friends,
I am having problems in exporting data from my Access db to a word
template.
On my form I have a check box named check1. On my word template a have
a box into which I need to export...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
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: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |