2009-02-03 89 views
0
  'display the left product image 
      if intImagePos = 2 then 
       response.write("<td class=""ProductImage"">" & vbcrlf) 
       'show image 
       if Len(objProduct.Image2) > 0 then 
       response.write("<a class=""thumbnail"" href=""javascript: void(0)"" onclick=""MM_openBrWindow('images/festool/KAPEXKS120-571287/KAPEXKS120-571287-Gallery/','scrollbars=no,resizable=no,width=840,height=580')""><img src=" & objProduct.Image1 & " border=""0""><br>See gallery of this product</a>") 
       else 
       response.write("<p>No Picture Available</p>") 
       end if 
       response.write("</td>") 
      end if 

错误代码是:为什么这个工作在Firefox而不是IE?在IE

Line: 28 Char: 3 Error: Invalid argument. Code: 0

第28行是:

var newWindow = window.open(theURL,winName,features+win_position); 

感谢您对解决这个问题的任何帮助,我不是在所有的程序员,而且不知道我正在看的东西,只是复制和粘贴和操纵文本,试图让我的东西如何工作。

+0

您确定行号吗? IE浏览器显示的行号通常不对应源代码。如果你有一个调试器,你可以找到问题出在哪里。 – 2009-02-03 19:39:54

回答

1

您对MM_openBrWindow()的调用只有两个参数,但它需要三个参数。尝试将其更改为:

MM_openBrWindow('images/festool/KAPEXKS120-571287/KAPEXKS120-571287-Gallery/','putsomenamehere','scrollbars=no,resizable=no,width=840,height=580'); 
+0

Doh!这是问题,没有窗口名称。 – scunliffe 2009-02-03 21:12:21

1

这只是一个猜测,但我记得在window.open中有一个问题,即winName变量中有一个空格。也许把一个警告(winName)之前检查。

+0

很可能...如果窗口名称有空格或制表符,IE将失败 http://webbugtrack.blogspot.com/2008/06/bug-289-popup-window-name-cant-have.html – scunliffe 2009-02-03 21:11:26

0

错误不在您的服务器端代码中。我会在页面呈现后寻找问题。

相关问题