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

  • From: "Maciej Łebkowski" <m.lebkowski@xxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Mon, 22 Dec 2008 10:23:18 +0100

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: