All,

        Replying to myself here, but maybe some more information will
help you guys help me :). In the generated html it seems like the
popuplink creates multiple functions with the same name/signature. Here
is what I mean:

function $PopupLink_popup()
{
        aWindow = window.open('%5Cimages%5CPatStore%5Cwall10000.jpg',
'popuplink_window',
'resizable,scrollbars,top=100,left=100,height=640,width=480', false);
        aWindow.focus();
}

function $PopupLink_popup()
{
        aWindow = window.open('%5Cimages%5CPatStore%5Cwall17.jpg',
'popuplink_window',
'resizable,scrollbars,top=100,left=100,height=640,width=480', false);
        aWindow.focus();
}



And the actual links are:

<a href="javascript:$PopupLink_popup();">
<img src="\images\PatStore\wall10000_tmb.jpg"></img>
</a>

<a href="javascript:$PopupLink_popup();">
<img src="\images\PatStore\wall17_tmb.jpg"></img>
</a>

Etc.


Each call to PopupLink_popup() calls the first function which is my
problem. Any way around this? Possibly pass image name (file name) into
javascript function or something similar, or should I just write my own
javascript?

Thanks,
Adrian



-----Original Message-----
From: Marti, Adrian (Adrian) 
Sent: Thursday, August 25, 2005 1:45 PM
To: Tapestry users
Subject: RE: Question about @contrib:popuplink inside Foreach

Geoff,

        Thanks for the quick reply, unfortunately I just checked and all
the files and thumbnail filename values are different. Each thumbnail
value corresponding one-to-one to a regular filename value. I think I
may be confused with how the javascript function is being created. 

Adrian

-----Original Message-----
From: Geoff Longman [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 25, 2005 1:29 PM
To: Tapestry users
Subject: Re: Question about @contrib:popuplink inside Foreach

You sure that the fileName values are not all the same? If they were
the same but the thumbnailName values were all different you would see
the behaviour you have described.

Geoff

On 8/25/05, Marti, Adrian (Adrian) <[EMAIL PROTECTED]> wrote:
> Hey all,
> 
> 
> 
>             I'm not an expert by any stretch and tried searching Gmane
> to no avail. I am trying to iterate over a set of images to show their
> thumbnails on the page with each image being a link to the full size
> version of the image. The thumbnails show up fine but the links
created,
> using popuplink, all popup a window showing the last image to be
> iterated. For example, 4 images (a,b,c,d) all show thumbnails fine but
> clicking on any of them all show the popup window with picture d.
> 
> 
> 
> Heres my html that I'm sure has some problems.
> 
> 
> 
>             <span jwcid="@Foreach" source="ognl:allLinkedImages"
> 
>             value="ognl:Image" >
> 
>       <tr>
> 
> 
> 
>             <td>
> 
>                   <a href="ognl:applicationBasePath + Image.fileName"
> 
> jwcid="@contrib:PopupLink"
>
features='ognl:"resizable,scrollbars,top=100,left=100,height=800,width=6
> 00"'>
> 
>                   <img jwcid="@Any" src="ognl:applicationBasePath +
> Image.thumbnailName"/>
> 
>                   </a>
> 
>             </td>
> 
>       </tr>
> 
>       </span>
> 
> 
> 
> Is it not possible to do this? Should I just use standard html links?
> 
> 
> 
> 
> 
> Thanks,
> 
> Adrian
> 
> 
> 


-- 
The Spindle guy.           http://spindle.sf.net
Get help with Spindle:   
http://lists.sourceforge.net/mailman/listinfo/spindle-user
Announcement Feed:    
http://www.jroller.com/rss/glongman?catname=/Announcements
Feature Updates:            http://spindle.sf.net/updates

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to