[Zope] - Testing for query variable existance in dhtml
Brad Clements
bkc@murkworks.com
Thu, 14 Jan 1999 23:23:18 -0500
I have a document that is called with or without a query value.
http://myhost/mydocument?list=thislist
or
http://myhost/mydocument
What's the best way to determine if list is defined in the request? I tried
<!--#if REQUEST.has_key(list)-->
That didn't work, either with or without quotes
Also, whats the correct way to determine if list points to a valid object, I
tried this.
<!--#with REQUEST-->
<!--#if _.has_key(list)-->
<!--#var _.getitem(list,1)-->
This seems to work if list is pointing to a valid object, but I get "Sorry,
Zope is offline" error if list is an invalid object name.
What I really want to know is if list names something IN the current
Folder that contains the current document..
Any suggestions?
Could I use
<!--#if _.has_key(PARENT[0].[list])-->
??
Thanks
Brad Clements, bkc@murkworks.com (315)268-1000
http://www.murkworks.com (315)268-9812 Fax
netmeeting: ils://ils.murkworks.com ICQ: 14856937
We must come down from our heights, and leave our straight
paths, for the byways and low places of life, if we would
learn truths by strong contrasts; and in hovels, in forecastles,
and among our own outcasts in foreign lands, see what has been
wrought upon our fellow-creatures by accident, hardship, or vice.
- Richard Henry Dana, Jr. 1836