Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
when i click "link" a small window comes up and fives a 403 Forbidden...
You don't have permission to access /~iktorn/popup.asp on this server.
you should check the ownership and priveleges of the page and the folders that it is in to make sure that world has read privilege.
 
mnkeybsness said:
when i click "link" a small window comes up and fives a 403 Forbidden...

you should check the ownership and priveleges of the page and the folders that it is in to make sure that world has read privilege.
Ignore this - this is not the problem.
The problem is with popup "reusing".
 
mnkeybsness said:
perhaps you could explain this "reusing"?

Try to click several times on this link (without closing the popup). In IE/Netscape on Windows the old popup closes and new one comes up. On mac (as I was told) something goes wrong...

there is still a 403 Forbidden... and that IS a problem...

That IS NOT a problem - this page is just an example - the real site is not having 403.
 
iktorn said:
Try to click several times on this link (without closing the popup). In IE/Netscape on Windows the old popup closes and new one comes up. On mac (as I was told) something goes wrong..

On Safari 1.2.1 on Panther-

Clicking 'link' opens the pop-up...

Clicking 'link' again closes the pop-up...

Clicking 'link' yet again does nothing (until the page is refeshed, in which case the above can be repeated)

EDIT: Mac IE 5.2 behaves as Safari. Camino 0.7 behaves as you described it should, so I should imagine other Gecko browsers (like NS) will as well.

jx
 
couple thoughts. No need to use a boolean to check status. You can simply take advantage that [Object] evaluates to true. Also, to "reuse" a window, there's no need to close it, just change the location.


PHP:
<SCRIPT>

var so;

function popUp(page) {

var url = "http://chmes.poznan.pl/~iktorn/popup.asp?"+page;

if (so) 
  so.location.href=url;
else 
  so=window.open(url,"so","toolbar=0,scrollbars=0,location=0,status=0,menubars=0,resizable=1,width=400,height=460,top=100,left=400");

}
</SCRIPT>
 
I'll have to second that notion. What are you trying to accomplish?

Why close the popup to load another with the exact same characteristics? Like the script I provided, if the popup already exists, just change its URL. You could even give it focus if you wanted.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.