I think you could also try
<form action="ImTooTiredToScrollDownToReadTheServletName">
<input type=submit src="image.gif" name=clicker>
</form>

And when the user clicks the img there will be an extra x and y
param passed.

It will call something like
http://metrony.com/ImTooTiredToScrollDownToReadTheServletName?x=1
2&y=14


-Aaron
----- Original Message -----
From: "Tim Roberts" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 14, 2002 1:40 PM
Subject: Re: [Webware-discuss] cookies and sessions


> 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
>


_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to