[Zope] Passing paramaters ...
Tino Wildenhain
tino@wildenhain.de
Thu, 22 Feb 2001 22:32:09 +0100
Hi,
what about <dtml-in "yourimages.objectValues('Image')">
<a href="showpic?pic=<dtml-var id>"><dtml-var "thumbnails[id()].tag()"></a>
</dtml-in>
providing you have the (big) images in "yourimages" and the thumbnails in
"thumbnails".
Even better you get a bit more familar with writing zclass products, so
you can derive an object from image or create a new class containing two
images, one the big and one the thumbnail. So you could override the
index_html of your image product and simply use something like that:
<dtml-in "yourimages.objectValues()">
<a href="<dtml-var absulute_url>"><dtml-var thumbnail_tag></a>
</dtml-in>
HTH
Tino Wildenhain
--On Donnerstag, 22. Februar 2001 12:32 -0800 michael7669
<michael7669@prodigy.net> wrote:
> Hi, I'm not sure if you are the right person to ask, but how on earth
> does one go about passing form data outside one page and into another
> (via javascript, if necessary)? I had acquired this bit of code that is
> supposed to accomplish this, but (as usual) it didn't work:
>
> <form name=form1 action="" method=GET>
> <input type=hidden name=pic value="http://www.anywhere.com/js/pic1.gif">
>
> <input type=submit>
> </form>
>
> *** And the below code would be on the second page that is the action of
> the above form:
> <script>
> _src =
> unescape(document.location.toString().split("?")[1].split("=")[1]);
> document.write("Image = "+_src+"<BR>");
> document.write("<img src='"+_src+"' border=1>");
> </script>
>
> All I'm trying to do is have all thumbnailed images link to a single
> html page that displays the related larger image (so I don't have to
> have a mini page for every singe image file). Any ideas/suggestions?
> Thanks.
>
> --Michael
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )