473,395 Members | 1,413 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,395 software developers and data experts.

Problem with Javascript and proberly IE7

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>&nbsp;</p>
</BODY>
<script language="JavaScript">
<!--
window.open = SymRealWinOpen;
//-->
</script>
Jul 3 '07 #1
3 1798
kovik
1,044 Expert 1GB
Has any debugging been done...?

You aren't very clear as to *what* is the actual error.
Jul 3 '07 #2
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
Jul 4 '07 #3
Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2.  
  3. <html>
  4. <head>
  5.     <title>Untitled</title>
  6. </head>
  7.  
  8. <script>
  9.  
  10. function enterCode() {
  11. var popup = window.open('','Popup','height=100,width=340,top=350,left=300,toolbar=no')
  12.  
  13. popupBody = popup.document.getElementsByTagName("body")[0]
  14.  
  15. inputText = popup.document.createElement("input")
  16. inputText.type = "text"
  17. popupBody.appendChild(inputText)
  18.  
  19. inputButton = popup.document.createElement("input")
  20. inputButton.type = "button"
  21. inputButton.value = "OK"
  22. inputButton.onclick = this.parent.changeLocation
  23. popupBody.appendChild(inputButton)
  24.  
  25. }
  26.  
  27. function changeLocation() {
  28. value = inputText.value
  29. self.location.href = "http://" + value + ".htm"
  30. }
  31. </script>
  32.  
  33. <body>
  34.  
  35. <a href="javascript:enterCode()">klantcode</a>
  36.  
  37. </body>
  38. </html>
  39.  
Try something like this
Hope that help you

Good luck
Jul 4 '07 #4

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

Similar topics

7
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....
4
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...
1
by: Julius Mong | last post by:
Dear all, according to the ASV3 manual known problem section, to make an <a> execute some Javascript onclick: ...
1
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...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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...
0
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...
0
tracyyun
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...

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.