[albatross-users] ctx.req_equals() question.

Andrew McNamara andrewm at object-craft.com.au
Wed Nov 27 16:24:09 EST 2002


>>	ctx.req_equals("mybutton") 
>>will return false while
>>	dir(ctx.locals).has_key("mybutton")
>>will return true
>
>You probably need to use 
>	ctx.req_equals("mybutton.x")
>as is mentioned in passing about half way through Sec 4.3 in the manual.

Yep - the "image" inputs return the co-ordinates of where, within the
image, the user clicked. So you get mybutton.x and mybutton.y in the
Request class. A pain in the bottom, generally, but that's what you get
for abusing HTML... 8-)

-- 
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au/



More information about the Albatross-users mailing list