Author Topic: Javascript error ie_5up not defined  (Read 5601 times)

0 Members and 1 Guest are viewing this topic.

Offline Loet

  • Newbie
  • *
  • Posts: 24
    • View Profile
Javascript error ie_5up not defined
« on: April 23, 2008, 04:17:32 PM »
Hello,

After doing a fresh installation of the last version I get a lot of javascript errors about ie_5up not defined.
I get it on the admin page but also when I use the XP publishing wizard.

Loet
Loet van Oostende

Offline honda2000

  • 4images Guru
  • *******
  • Posts: 3.263
    • View Profile
    • Wir machen Internet!
Re: Javascript error ie_5up not defined
« Reply #1 on: April 23, 2008, 05:46:48 PM »
URL to galery please

Offline Loet

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Javascript error ie_5up not defined
« Reply #2 on: April 23, 2008, 08:51:13 PM »
URL to the script is http://locations.nl/locaties/

I get the ie_5up error in ACP.
On the frontend I get another error.

Loet
Loet van Oostende

Offline honda2000

  • 4images Guru
  • *******
  • Posts: 3.263
    • View Profile
    • Wir machen Internet!
Re: Javascript error ie_5up not defined
« Reply #3 on: April 23, 2008, 09:35:21 PM »
in header.html row: 31 return false; in JavaScript


find
Code: [Select]
<!-- function right(e) {
    if ((document.layers || (document.getElementById && !document.all)) && (e.which == 2 || e.which == 3)) {
      alert("© Copyright by Locations.nl");
      return false;
    }
    else if (event.button == 2 || event.button == 3) {
      alert("© Copyright by Locations.nl");
      return false;
    }
    return true;
  } -->

replace with:

Code: [Select]
{
    if ((document.layers || (document.getElementById && !document.all)) && (e.which == 2 || e.which == 3)) {
      alert("© Copyright by Locations.nl");
      return false;
    }
    else if (event.button == 2 || event.button == 3) {
      alert("© Copyright by Locations.nl");
      return false;
    }
    return true;
  }

disable right-klick

clear this:

Code: [Select]
if ((document.layers || (document.getElementById && !document.all)) && (e.which == 2 || e.which == 3)) {
      alert("© Copyright by Locations.nl");
      return false;
    }
    else if (event.button == 2 || event.button == 3) {
      alert("© Copyright by Locations.nl");
      return false;
    }
    return true;
  }

  if (document.layers){
    document.captureEvents(Event.MOUSEDOWN);
    document.onmousedown = right;
  }
  else if (document.all && !document.getElementById){
    document.onmousedown = right;
  }

document.oncontextmenu = new Function("alert('© Copyright by Locations.nl');return false");

an not a Comment i a Script
Code: [Select]
<!-- function right(e)  -->
an than, you have not a error

Offline Loet

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Javascript error ie_5up not defined
« Reply #4 on: April 24, 2008, 07:59:15 PM »
Thanks Honda,

I disabled the right cliks for testing and forgot to put it back.
It is OK now.
But the error ie_5up on the ACP still exists, btw only in explorer.
In Firefox no error.

I also did a new installation on another webserver and there no problem.
Could it be that can be caused by the configuration of the webserver?

Loet
Loet van Oostende

Offline honda2000

  • 4images Guru
  • *******
  • Posts: 3.263
    • View Profile
    • Wir machen Internet!
Re: Javascript error ie_5up not defined
« Reply #5 on: April 24, 2008, 08:23:00 PM »
Error regent in cache?