[Zope] Zope Goblin Caught Red-Handed!

beno zope@thewebsons.com
Wed, 26 Feb 2003 07:02:54 -0400


Hi;
Okay, prove me wrong on this one! I wrote a short Python script that I call 
like this:

<p tal:replace="structure 
python:here.templateImageJS(here.size(),'sauder_tv',280,280)" />

which renders to the page like this:

<a href='#' onClick="popWindow('sauder_tv')"><img 
src='images_1024/sauder_tv_1024.jpg' width='166' height='103' alt='' 
style='' border='0' /></a>


The page also contains code that looks like this:

<script language="javascript">
<!--
var broyhill_office = new String();
var sauder_tv = new String();

broyhill_office.src = "popUp.dtml?popper=broyhill_office"
sauder_tv.src = "popUp.dtml?popper=sauder_tv"

function popWindow(image){
     pic = eval(image + ".src")
     newWindow = 
window.open(pic,"","toolbar=0,menubar=0,width=550,height=550,scrollbars=0,status=0,location=0,directories=0,left=100,top=100");
}
-->
</script>

Now: This code WORKS JUST FINE throughout the ENTIRE site EXCEPT on one 
certain page where it only works in the *entertainment* section. The rest 
of the time it throws this error:

Cannot locate object at: 
http://web.vi/best_furniture/1024/s/c/x/en-us/undefined

Why??? Here's a URL to it:
http://web.vi/best_furniture/1024/s/c/x/en-us/Living_Room_frame.pt
TIA,
beno