[ic] mv_click_map
Gert van der Spoel
gert at 3edge.com
Fri Mar 25 07:22:42 UTC 2011
>> Quoting Rick Bragg (lists at gmnet.net):
>> > Hi,
>> >
>> > Is there any documentation on mv_click_map or click map?
>> >
>> > Basically I am trying to do a form with a bunch of images as buttons.
>> > Setting the value of an <input type=image name=mv_click does not work
>> > with ie.
>> >
>> > I tried using a single hidden mv_click, and setting it with javascript
>> > but I have other javascript dynamically setting other variables on the
>> > form, and it seems maybe those other variables that are set (with
jquery
>> > draggable) are ignored or cleared as the form submits with my onclick.
>> > Anyway, here is my mv_click setup:
>> >
>> > <input type="hidden" id="mv_click" name="mv_click" value="" />
>> > <img src="button2image.jpg"
>> > onclick="document.getElementByID('mv_click').value = 'clickset1';
>> > document.form_name.submit(); return(false);"
>> > >
>> > <img src="button2image.jpg"
>> > onclick="document.getElementByID('mv_click').value = 'clickset2';
>> > document.form_name.submit(); return(false);"
>> > >
>> >
>> > Any ideas? Any docs on click mapping?
>>
>> There used to be, but I doubt it was retained. I don't think it has been
>> used for a decade.
>>
>> Basically, you do this:
>>
>> <input type=hidden name=mv_click_map value="aclickit aclackit
atisket atasket">
>>
>> <input type=image name="mv_click.aclickit" src="logo.gif">
>> <input type=image name="mv_click.aclackit" src="logo.gif">
>> <input type=image name="mv_click.atisket" src="logo.gif">
>> <input type=image name="mv_click.atasket" src="logo.gif">
>>
>> You should find that clicking the appropriate image will submit
>> mv_click.aclickit.x to come into the CGI variable stream, which will
>> cause the "aclickit" click to be run. Each image will cause a
>> different mv_click to run.
>>
> I still can't get it to work, Maybe I'm not naming my callback routine
> right? So far I have tried:
>
> [set aclickit]
> [set some-vars]test1[/set]
> [cgi name=to_do set=return hide=1]
> [/set]
>
> and
>
> [set mv_click.aclickit]
> [set some-vars]test1[/set]
> [cgi name=to_do set=return hide=1]
> [/set]
>
> These callbacks don't run. What could I be doing wrong?
>
Never used this functionality, but would it be aclickit.x then as that one
comes in the CGI variable stream as Mike mentions?
Also I saw the following:
http://www.interchange.rtfm.info/icdocs/Special_form_variables.html#mv_click
"mv_click_arg
Instead of defining individual callbacks and calling them by name, using the
mv_click variable, you can define a single mv_click callback and pass it an
argument via this variable.
The mv_click callback code can retrieve the value of the mv_click_arg
variable by either calling [scratch mv_click_arg] or by using
$Scratch->{mv_click_arg}."
Perhaps that could get you ahead?
CU,
Gert
More information about the interchange-users
mailing list