[Zope] can one pass values through the 'action' property?
Steve Spicklemire
steve@spvi.com
Sat, 4 Aug 2001 06:29:51 -0500
Hi Tommy,
'Nuther thought. I'm not at all sure *what* you're doing, I think
another track you might follow that's a little more "OO" is making a
"game object" (e.g., a ZClass, or a Python Product, or even just a DTML
Document or Folder that is playing the role of a specialized object.
When someone wants to play your game... create a new game object for
them with a unique ID, then point their browser to their own personal
object that keeps state for them. More complex then sessions, but maybe
better in some ways..
good luck!
-steve
On Saturday, August 4, 2001, at 06:04 AM, Steve Spicklemire wrote:
>
> Hi Tommy,
>
> Four choices:
>
> 1) If you don't have too much data.. use "GET" rather than
> "POST", then you can append to the URL as you've done.
>
> 2) Use hidden form fields.
>
> 3) Use cookies (again... if not too much data)
>
> 4) Use sessions
>
> -steve
>
> On Friday, August 3, 2001, at 10:34 PM, Tommy Johnson wrote:
>
>> Ok, I copied your scenario, and then printed out the REQUEST object.
>> The
>> only variable that shows up is submit, which means that Zope doesn't
>> allow
>> you to append querystring info in your form tag. That sucks.
>>
>> I've always used hidden fields, but I see that you don't particularly
>> care
>> for that approach. Hmmmm..... any other ideas community?
>>
>> Tommy
>>
>> Innovation:
>> The Best Way To Predict The Future ...
>> Is To Create It.
>>
>>
>>> -----Original Message-----
>>> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of
>>> Albert Ting
>>> Sent: Friday, August 03, 2001 4:49 PM
>>> To: zope@zope.org
>>> Subject: [Zope] can one pass values through the 'action' property?
>>>
>>>
>>>
>>> I'm trying to do this:
>>>
>>> <form action="get_row?row=3" method="POST">
>>> ...
>>> <input type="submit" name="submit" value="submit">
>>> ....
>>> </form>
>>>
>>> However, "row" does not show up in the REQUEST namespace, even
>>> though a
>>> similar syntax works in a HREF tag. Can this be done? I know I can
>>> add a
>>> hidden input tag, but it's a little messier.
>>>
>>>
>>> Thanks,
>>> Albert
>>>
>>> _______________________________________________
>>> 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 )
>>
>>
>> _______________________________________________
>> 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 )
>
> _______________________________________________
> 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 )