'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
Error code in IE is:
IE中的错误代码是:
Line: 28 Char: 3 Error: Invalid argument. Code: 0
行:28字符:3错误:参数无效。代码:0
Line 28 is:
第28行是:
var newWindow = window.open(theURL,winName,features+win_position);
Thanks for any help in solving this matter, I'm not a programmer at all and have no idea what I'm looking at, just copy and pasting and manipulating text to try and get stuff to work how I want.
感谢任何帮助解决这个问题,我根本不是一个程序员,不知道我在看什么,只是复制和粘贴和操纵文本,试着让我的工作得到我想要的东西。
4 个解决方案
#1
Your call to MM_openBrWindow() only has two parameters, but it takes three. Try changing it to this:
您对MM_openBrWindow()的调用只有两个参数,但需要三个参数。尝试将其更改为:
MM_openBrWindow('images/festool/KAPEXKS120-571287/KAPEXKS120-571287-Gallery/','putsomenamehere','scrollbars=no,resizable=no,width=840,height=580');
#2
This is just a guess, but I recall having a problem with window.open in ie where the winName variable had a space in it. Maybe put an alert(winName) before it to check.
这只是猜测,但我记得在window.open中遇到问题,即winName变量中有空格。也许在它之前放一个警报(winName)来检查。
#3
You might want to watch the error in Firefox's javascript debugger:
您可能希望在Firefox的javascript调试器中观察错误:
Firefox often fails silently on javascript errors. So it might not be an IE only issue.
Firefox经常在javascript错误上无声地失败。所以它可能不是IE唯一的问题。
#4
The error is not in your server-side code. I'd look for the problem after the page is rendered.
该错误不在您的服务器端代码中。在呈现页面后我会查找问题。
#1
Your call to MM_openBrWindow() only has two parameters, but it takes three. Try changing it to this:
您对MM_openBrWindow()的调用只有两个参数,但需要三个参数。尝试将其更改为:
MM_openBrWindow('images/festool/KAPEXKS120-571287/KAPEXKS120-571287-Gallery/','putsomenamehere','scrollbars=no,resizable=no,width=840,height=580');
#2
This is just a guess, but I recall having a problem with window.open in ie where the winName variable had a space in it. Maybe put an alert(winName) before it to check.
这只是猜测,但我记得在window.open中遇到问题,即winName变量中有空格。也许在它之前放一个警报(winName)来检查。
#3
You might want to watch the error in Firefox's javascript debugger:
您可能希望在Firefox的javascript调试器中观察错误:
Firefox often fails silently on javascript errors. So it might not be an IE only issue.
Firefox经常在javascript错误上无声地失败。所以它可能不是IE唯一的问题。
#4
The error is not in your server-side code. I'd look for the problem after the page is rendered.
该错误不在您的服务器端代码中。在呈现页面后我会查找问题。