[ic] Re: TAG understanding problem
Stefan Hornburg
racke at linuxia.de
Wed Feb 22 04:26:40 EST 2006
Georg Brugger wrote:
> Dear all,
>
> currently I am trying to get familiar with interchange by playing around
> with a copy of the foundation shop. The example (testshop) works pretty
> fine.
>
> One problem I have: I want to click on a small picture in the selected
> product list in order to get a big one in a new window. I did:
>
> 1) Inserted a statement in the results-buylist to show the small picture
> (smallpic). In case you click the small picture the big one (bigpic) should
> show up in an extra window:
>
> <a href=javascript:void()> <img src="items/[item-field smallpic]" border=0
> onClick="window.open('[area BgrossJS [item-code]]'
> ,'Artikelbilder','scrollbars=auto, resizable=yes, scrollbars=yes
> status=no,width=400,height=500'); return false;" > </a>
>
> 2) Calling with the browser I can see the following code:
>
> <a href=javascript:void()> <img
> src="/testshop/images/items/a_009auferstehung_kl.jpg" border=0
> onClick="window.open('http://linuxserver/cgi-bin/testshop/BgrossJS.html?mv_a
> rg=A%2d009' ,'Artikelbilder','scrollbars=auto, resizable=yes, scrollbars=yes
> status=no,width=400,height=500'); return false;" > </a>
>
>
> 3) This is the content of the BgrossJS.html file
>
> <html>
> <head><title> </title>
> </head>
> <body>
>
> <IMG SRC="items/[item-field bigpic]" BORDER=0>
>
> </body>
> </html>
>
>
> Result: The result of the click is always an empty new window. I expected
> the Bigpic in the new window.
>
>
> Question: Can someone tell me what is wrong. I assume I have some wrong
> understanding with the [item-field ....] ??
For list tags like [item-field] you need a surrounding list. On the flypage
there is a implicit list with the selected product. You can simulate this
with enclose the whole BgrossJS.html file contents with:
[fly-list code="[data session arg]"]
[/fly-list]
Bye
Racke
More information about the interchange-users
mailing list