This is really not a pop up (new window or tab). It's an AJAX import to facebox. These (highlighted, when imported via AJAX) will have no meaning:
Code:
<link rel="shortcut icon" href="/favicon.ico" />
<script src="facefiles/jquery-1.2.2.pack.js" type="text/javascript"></script>
<script src="JS/larger.js" type="text/javascript"></script>
<script src="JS/teedata.js" type="text/javascript"></script>
<link rel="stylesheet" href="CSS/larger.css" type="text/css" />
</head>
<body onLoad="testpploading()">
Anyways, the easiest way to get javascript to work on imported content is to use iframe. There are other facebox-like scripts that can import via iframe. One such script is Lightwindow. Also, Lytebox and Thickbox, there are probably at least several others. Google the ones I've mentioned to see if any will work for you. These scripts also do other sorts of imports. Make sure you are using them with their iframe method for this, otherwise you will have similar issues as you are currently having with facebox, or possibly other issues.
Now, it can probably be made to work with facebox. For that we would need to put the external scripts and styles on the 'top' page (faceboxbreaksinit.html in this case I believe), and fire the body onload of the imported page (larger.html) as a callback of launching its content in facebox. This last would probably require editing the facebox script.
Bookmarks