Forum Moderators: open

Message Too Old, No Replies

forbidden

link to image works in IE, not Netscape 7

         

halfandhalf

8:32 pm on Jul 26, 2004 (gmt 0)

10+ Year Member



I am using Javascript to open a smaller pop-up window with an image inside. The images resides on a popular image site, Ofoto. Links work in IE, but not Netscape.

Any idea why? Here's my code:

<script language="JavaScript">
<!-- go to j-scripts.com
var winWidth = "620"
var winHeight = "420"
var winScrollbars = "yes"
var winToolbar = "yes"
var winResizable = "yes"
var winLocation = "yes"
var winStatus = "yes"
function doWin(winURL) {
window.open(winURL,"","width="+winWidth+",height="+winHeight+",scrollbars="+winScrollbars+",toolbar="+winToolbar+",resizable="+winResizable+",location="+winLocation+",status="+winStatus)
}
//-->
</script>

in the body I link to image like this:
<a href="javascript:doWin('http://images.ofoto.com/photos717/1/7/46/93/10/1/110934607103_0_ALB.jpg')">photo</a>

encyclo

12:31 am on Jul 27, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



go to j-scripts.com

Just a wild guess here... Have you tried removing the above part of the script - it is not preceeded by a Javascript comment (just the HTML one) and it could be confusing things.

Also, when you say "Netscape", which version are you talking about? Things are very different between Netscape 4.x and Netscape 7.x.

halfandhalf

12:49 am on Jul 27, 2004 (gmt 0)

10+ Year Member



Thanks for your help -- the problem is with Netscape 7 (see discussion title). This message appears in the pop-up window I've generated in NN7, but this does not happen in IE 6:

Forbidden
You don't have permission to access /photos717/1/7/46/93/10/7/710934607103_0_ALB.jpg on this server.

Apache/1.3.27 Server at im66.ofoto.com Port 80

I have taken the comments line out of the code but it's still not working. Is it possible that the URL I'm linking to just prohibits me from doing so in NN7?

halfandhalf

3:55 pm on Jul 27, 2004 (gmt 0)

10+ Year Member



bump

halfandhalf

4:56 pm on Jul 28, 2004 (gmt 0)

10+ Year Member



Is it possible that a site like Ofoto would block me from linking directly to their jpgs, as opposed to linking to a page they generate containing the photos in my album?

Or is there something wrong with my code?

flashfan

5:01 pm on Jul 28, 2004 (gmt 0)

10+ Year Member



It's because NS has popup blocker enabled?

halfandhalf

5:14 pm on Jul 28, 2004 (gmt 0)

10+ Year Member



Good question. I've looked in the preferences but can't find anything that looks like that. Other pop-ups work in NN, just not in the site I'm building. Is there something I can put in the Javascript to override the pop-up blocker?

Span

10:59 pm on Jul 28, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Forbidden
You don't have permission to access ... on this server.
Apache/1.3.27 Server at im66.ofoto.com Port 80

1. Looks like a 403 to me. Has nothing to do with pop-up blocking.
2. Copied and pasted your script and link and it works for me. Mac/Netscape 7.

halfandhalf

2:17 pm on Jul 29, 2004 (gmt 0)

10+ Year Member



but not on PC (of course)

thanks though