[albatross-users] ctx.req_equals() question.
Michael C. Neel
neel at mediapulse.com
Thu Nov 28 01:48:55 EST 2002
Okay, I'll try the ".x" part. Hopefully that will work and not run into
the other req_equals issue I'm having. I do think it's a bit counter
intuitive, to work this way. I had assumed that mybutton was a 2 arg
tuple od (x,y) since that's what it returns as ctx.locals.mybutton.
It's great that there is a lot of documentation, but the layout is very
hard to use for reference. I would expect this under 5.1.2.7 <al-input
type="image"> rather than 4.3 The Popview App. Input file was the same
way, I had to play around with it to figure out how to access the data
sent.
BTW, how is this abusing html? This is how you would implement
server-side image maps, and is nothing new. It's also the basis of how
prev and next buttons.
Mike
> -----Original Message-----
> From: Andrew McNamara [mailto:andrewm at object-craft.com.au]
> Sent: Wednesday, November 27, 2002 12:24 AM
> To: albatross-users at object-craft.com.au
> Subject: Re: [albatross-users] ctx.req_equals() question.
>
>
> >> 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/
> _______________________________________________
> Albatross-users mailing list
> Albatross-users at object-craft.com.au
> https://www.object-craft.com.au/cgi-bin/mailman/listinfo/albat
ross-users
More information about the Albatross-users
mailing list