On Wed, 13 Mar 2002 12:17:51 -0800 (PST), Aleksandar Kacanski
<[EMAIL PROTECTED]> wrote:
>
>I already manipulated cookies and sessions in webkit and
>stuff works fine. I would like to avoid implementation of
>the uri as:
>URI = ( net_path | abs_path | rel_path ) [ "?" query ]
>
>When action happens in the servlet abc.py I would like to
>setup and pass cookie definitions to the new servlet:
>self.transaction().response().setCookie('','')
>
>What is unclear to me at this point is triggering mechanics
>in the code to achive that.
>Example would be image associated with uri
><a href="abc.py"><img src="http://xxx/image.png" border="0"></a>
>At this time I need a way to set cookie dict, because that
>is what abc.py servlet is going to work on.
Here's one other option to consider. You can have an <a> link trigger a form
send; that sometimes makes things easier:
<script>
function Submit(clicker) {
document.main.clicker = clicker;
document.main.submit();
}
</script>
<form name=main action="abc.py" method=post>
<input type=hidden name=clicker>
<input type=image src="/image.png" onClick="return Submit("image");">
<!-- OR: -->
<a href="javascript:Submit('image')">
<img src="/image.png" border=0>
</a>
<!-- OR: -->
<a href="javascript:" onClick="return Submit('image')">
<img src="/image.png" border=0>
</a>
--
- Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss