# Problems with Kirupa centered popup tutorial

**URL:** <https://forum.kirupa.com/t/problems-with-kirupa-centered-popup-tutorial/120711>\
**Category:** Uncategorized\
**Created:** [August 26, 2004, 7:02pm UTC](https://forum.kirupa.com/t/problems-with-kirupa-centered-popup-tutorial/120711 "2004-08-26T19:02:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![typofonic](https://avatars.discourse-cdn.com/v4/letter/t/cdc98d/32.png) [@typofonic](https://forum.kirupa.com/u/typofonic)\
**Post date:** [August 26, 2004, 7:02pm UTC](https://forum.kirupa.com/t/problems-with-kirupa-centered-popup-tutorial/120711/1 "2004-08-26T19:02:25Z")

</div>

Hi,

I have a problem with the popups at my portfolio site [http://typofonic.dev.deskol.dk](http://typofonic.dev.deskol.dk). I have a viewer window that can popup for each project by clicking the “Open Picture Browser Window” buttons on the right side and on my project pages. When I click the first project the window opens fine, but when I click on a second project the popup window doesn’t update with the correct content for the new project.

On each button I have the following actionscript:  
_on (release) {  
address = “popups/project\_1.htm”;  
width = 555;  
height = 414;  
\_root.openPopUp(address, winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable);  
}_

and in the first frame of the \_root timeline I have the following script:  
\*winName = “popUp”;  
toolbar = 0;  
location = 0;  
directories = 0;  
status = 0;  
menubar = 0;  
scrollbars = 0;  
resizable = 1;

msg=window.open("",“msg”,“height=200,width=200,left=80,top=80”)  
function openPopUp(url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable) {  
getURL(“javascript:var myWin; if(!myWin || myWin.closed){myWin = window.open(’”+url+"’,’"+winName+"’,’"+“width=”+w+",height="+h+",toolbar="+toolbar+",location="+location+",directories="+directories+",status="+status+",menubar="+menubar+",scrollbars="+scrollbars+",resizable="+resizable+",top=’+10+’,left=’+0+’"+"’)}else{myWin.focus();};void(0);");  
}

Does anybody know what’s wrong with my scripts?

Best regards

Anders

B.t.w.: As a new user to this forum I couldn’t find the “Post New Thread” button. It seems that the button doesn’t appear in Safari, so I need to use FireFox for this forum. Is anybody else experiencing this problem?  
\*
