[dokuwiki] Re: window.open is not a function

  • From: "James Lin" <guanfenglin@xxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Tue, 23 Dec 2008 08:27:51 +1300

We have not made any changes or written any new scripts at all, except the
browsers updated themselves and the next morning the pop up suddenly stopped
working.

2008/12/22 Maciej Łebkowski <m.lebkowski@xxxxxxxxx>

> On Sun, Dec 21, 2008 at 23:22, James Lin <guanfenglin@xxxxxxxxx> wrote:
> > after the firefox and IE update, now the file upload pop up is not
> working,
> > the error is "window.open is not a function"
>
> Some userscript, popup blocker or another script on the page
> is overwriting the window.open method. Try inspecting it in firebug
> and find out what it holds (type the following in FB console):
>
> >>> window.open
> [fb will prompt the contents of this variable]
>
> You may copy window.open (before it is overwriten, so the <head>
> section of the template should be fine) to another variable, like:
> var copyOfWindowOpen = window.open
>
> and replace it in the upload-popup js code.
>
> window.open(...) -> copyOfWindowOpen(...)
>
> --
> Maciej Łebkowski, http://lebkowski.info/kontakt.php
>

Other related posts: